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
923 stars 684 forks source link

Ignore image_uri changes #622

Open richardgavel-ordinaryexperts opened 1 month ago

richardgavel-ordinaryexperts commented 1 month ago

Is your request related to a new offering from AWS?

No

Is your request related to a problem? Please describe.

Support external CI/CD process that updates the image for a container based Lambda without interfering with TF. Similar to design doc https://github.com/terraform-aws-modules/terraform-aws-ecs/tree/master/docs#service-1

Describe the solution you'd like.

var ignore_image_uri changes.

Additional context

A couple times in duplicate issues, you've mentioned not being able to support this because lifecycle section does not support variables. However, you already got past this issue in https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/master/modules/service/main.tf by having two different versions of the aws_ecs_service resource, one to ignore task definition changes and one not to, and only create one or the other based on the incoming var.

github-actions[bot] commented 6 days ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days