Hi,
Is it possible (with terraform 0.12) to have a dynamic ignore_changes in a lifecycle block?
What I’m hoping to achieve is to make ignoring changes to “user_data” optional in one of our modules.
I’ve tried variants of this:
lifecycle {
ignore_changes = [<<-EOT
tags.FQDN,
tags.InstanceInfo,
tags,
var.extra_lifecycle_ignore
EOT
]
But get the error “A static list expression is required”.
I’ve also tried dynamic blocks but get the error “Unsupported block type … Blocks of type “lifecycle” are not expected here”
Kind regards,
Magnus