Closed ulielitay closed 1 year ago
Terraform doesn't support the usage of variables inside of lifecycle
ignore_changes
, so we can't make it part of the module.
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is your request related to a new offering from AWS?
Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.
Is your request related to a problem? Please describe.
I'm using ecr images, each time i want to run the TF the ecr image + environment variables are changed to the TF one and not the already exist by the pipeline
Describe the solution you'd like.
add life cycle to the resources so we can "one time deploy" (or add the option to add to the module from our side what to ignore https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle
i have it in my own personal module i've created
environment { variables = var.environment_variables }
lifecycle { ignore_changes = [ environment, filename, source_code_hash, source_code_size, last_modified, image_uri ] }