Search code examples
amazon-web-servicesemrterraform

Is it Possible to Pass Additional Info to the EMR Cluster using Terraform?


We are trying to create an AWS EMR Cluster using Terraform (v0.9.11) and wanted to know if there is a way to Pass Additional Info like below via Terraform -

{  
   'ami64':'ami-XXXXX',
   'amiHvm64':'ami-XXXXXXX',
   'customAMI':true,
   'hadoopConfigurationVersion':'4.0',
   'instanceAwsClientConfiguration':{  
      'proxyPort':8099,
      'proxyHost':'XXXXXXXX'
   }
}

Could anyone please help us with above query?


Solution

  • Let me know if you are fine to use configurations in resource aws_emr_cluster

    configurations = "test-fixtures/emr_configurations.json"
    

    Save the JSON to test-fixtures/emr_configurations.json.

    By the way, seems you need to change from single quotes to double quotes in your json data.

    For the configuration usage, you need to read this document: Amazon EMR Configuring Applications

    Refer:

    aws_emr_cluster - configurations

    Amazon EMR Configuring Applications