-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Add Ignore changes for docker_image tag #12
Comments
Hello, Thank you for this issue, this is a tricky one. Waiting for this, you can implement a data source in your Terraform code to fetch the deployed version and pass it to the app service Terraform module. |
Hi, Another suggestion would be in
also after line https://github.com/claranet/terraform-azurerm-app-service/blob/master/modules/container-web-app/r-appservice.tf#L646 to be added
|
Indeed, but this implies that you cannot change the image anymore in Terraform. |
You're right, thank you . We will wait for hashicorp/terraform#27360 to be implemented. |
I reopen this issue to keep track of this limitation, which is pretty annoying. |
I quite surprisingly find here actually none of the Claranet azurerm modules supports a custom ignore_changes, which makes this Terraform feature useless. Sometimes it can be quite useful for example when you want Terraform to generate an initial password (VM, DB...) then leave it there. You definitely wouldn't like Terraform to set it back after it's been changed or do other crazy stuffs in your pipelines to prevent Terraform from doing so in its next apply. |
Hello @xi4n As stated earlier, dynamic lifecycle meta argument is not supported and therefore cannot be used as module input. Be sure we'll update the modules accordingly as soon as OpenTofu get rid of it since we also wait it for a long time. |
Community Note
Description
Hi,
We would like to request a new feature that will ignore docker image tag if the the tag has been changed outside of terraform. For example, we created the resources with terraform and we use azure devops pipeline to build and deploy the app where the tag is changed and applied on app service but terraform knows about the old image.
Thank you
New or Affected Resource(s)/Data Source(s)
app_service_linux_container
Potential Terraform Configuration
No response
References
No response
The text was updated successfully, but these errors were encountered: