Docs
Integrations

Terraform Provider

Overview

Terraform is an open-source infrastructure as code (IaC) tool that allows you to define and provision infrastructure using a high-level configuration language. The Terraform provider integrates the capabilities of the API with Terraform, enabling you to manage your infrastructure using Terraform's declarative configuration files.

What is emma Terraform Provider?

emma Terraform provider is a plugin that enables Terraform to interact with emma APIs of various services. It translates the Terraform configuration files into API calls, which create and manage the resources of the project. The emma Terraform provider acts as a bridge between Terraform and the API, allowing you to define your infrastructure as code and manage it efficiently.

Emma Terraform Provider Documentation

emma Terraform provider documentation: Terraform Registry

How to Use emma Terraform Provider

  1. Get the Client ID and Client Secret in the service application, as described above.
  2. Install Terraform. Download and install Terraform from the official website: https://developer.hashicorp.com/terraform/install?product_intent=terraform
  3. Install emma Terraform provider. To install emma provider, create a folder, and create a main.tf file in the folder, copy and paste this code into your file.
terraform {
  required_providers {
    emma = {
      source = "emma-community/emma"
      version = "0.0.1-alpha"
    }
  }
}
provider "emma" {
  # Configuration options
}
  1. Open the command line in the folder and run terraform init. The provider will be installed.
  2. Define Resources. Use the Terraform configuration main.tf file to define the infrastructure resources you want to manage (as described in the provider documentation).
  3. Apply Configuration. Open the command line in the folder and run terraform apply to provision and manage your infrastructure based on the defined configuration.
  4. Enter client_id and client_secret received earlier.
How is this guide?

Last updated on 10 Sept 2024

On this page