To create resource without further updating it, use "ignore_changes" lifecycle property.
There are two cases we used this as a workaround. First, the lambdas are created with Terraform, but the code and configuration updates are in separate process. To prevent Terraform from overwriting code, the source_code_hash property can be ignored.
Another
(
Read more... )