Closed tkasuz closed 5 months ago
@tkasuz I think is the same issue : https://github.com/terraform-aws-modules/terraform-aws-lambda/issues/517
I created a pull request https://github.com/terraform-aws-modules/terraform-aws-lambda/pull/518 but no response from the reviewer
Fixed in https://github.com/terraform-aws-modules/terraform-aws-lambda/pull/518 by @IlyesDemineExtVeolia
@IlyesDemineExtVeolia Thanks! I've checked out if your changes don't trigger to replace docker_image
resource but docker_image
resource seems to still has problem that I mentioned here while docker_registry_image
will be updated properly based on the new trigger you changed though π€
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 problem? Please describe.
I've been trying to use docker-build submodule to build a container image in GitHub Actions, and deploy it with CodeDeploy using
deploy
module butdocker_image
resource which will be automatically created bydocker-build
module will be forcibly replaced every time when CI pipeline get triggered withtout changing any code becausedocker_image
refaers to local image, and so the local iamge will be reseted every CI process.Describe the solution you'd like.
To avoid the avobe behavior, It would be better to have an option to specify whether local docker image is stored on local or not by using
ignore_changes
of terraform lifecycle. Sinceignore_changes
doesn't support dynamic paramter on it currently, I think one of the workaround to implement this is like the following:If there is another workaround for this problem, or I misunderstand something, please correct me. Thanks!