Closed lebenitza closed 5 months ago
Totally understandable. The root issue is 3 years old now, I have no faith is going to be fixed any time soon so I'll keep the fork with this ugly workaround in the meantime.
Yes, we have to have various workarounds for this. Unfortunately.
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Duplicated the whole lambda resource in order to have one with:
This is an workaround to https://github.com/hashicorp/terraform/issues/27360 and would fix:
Motivation and Context
Doing continuous delivery from terraform is a bit tedious. We use lambda with container images but we update those image outside of the terraform state using other toolings and automations.
This kind of workaround already exists in other aws terraform modules.
Breaking Changes
No breaking change. When
ignore_image_uri
is set totrue
, it is going to recreate the existing terraform lambda resources!How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectsignore_image_uri = true
and applying.pre-commit run -a
on my pull requestYou might not want to accept this at all or in its current form but it might help somebody.