terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
886 stars 656 forks source link

Add suppurt f #480

Closed ulielitay closed 1 year ago

ulielitay commented 1 year ago

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 ] }

antonbabenko commented 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.

github-actions[bot] commented 11 months ago

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.