githubEdit

8515527788__why-are-environment-variables-from-terraform-not-applying-to-duplocloud-resources

Why are environment variables from Terraform not applying to DuploCloud resources?

If your environment variables set through Terraform are not being applied to your DuploCloud resources, this is likely because the environment attribute is included in the ignore_changes lifecycle block in your Terraform configuration. To resolve this issue: Locate your Terraform configuration file where the resource is defined Find the lifecycle block in your resource configuration Remove environment from the ignore_changes list Example configuration fix: resource "duplocloud_lambda_function" "example" {

... other configuration ...

lifecycle { ignore_changes = [

Remove "environment" from this list

description, memory_size, timeout ] } } After making this change, your environment variables defined in Terraform will properly sync with your DuploCloud resources when you apply your Terraform configuration.

Last updated

Was this helpful?