ahzhezhe / terraform-generator

Generate Terraform configurations with Node.js.
ISC License
98 stars 19 forks source link

write issue on environment variables #14

Closed kyriakosdem closed 3 years ago

kyriakosdem commented 3 years ago

When trying to add environment details for a function, the terraform file that is being generated it doesnt add the = sign. ex:

 tfg.resource('aws_lambda_function', lambdaName, {
...
environment: { 
                                variables: { 
                                    environment: "${var.environment}"
                                }
                            }
}

Results to:

resource "aws_lambda_function" "someName" { ... environment { variables { environment = var.environment } } }

As you can see above.. variables should be followed by an = sign