Open SergioBergaminiCodeploy opened 5 months ago
Voting for Prioritization
Volunteering to Work on This Issue
For those who need this functionality, a temporary solution could be the following:
locals {
apiEnvVars = tomap({
ENV_KEY_1: "ENV_VALUE_1"
})
}
resource "null_resource" "example_api_env" {
provisioner "local-exec" {
command = <<EOT
aws appsync put-graphql-api-environment-variables \
--api-id ${aws_appsync_graphql_api.example.id} \
--environment-variables \
'${jsonencode(local.apiEnvVars)}'
EOT
}
triggers = local.apiEnvVars
}
+1 this is a pretty basic feature that should already be implemented
As we do more and more work in AppSync, the need for this grows. I hope this will be implemented soon.
+1 for this
Description
Add support for AWS AppSync environment variables
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
Would you like to implement a fix?
None