Skip to content
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

fix: Adding a health_check generates a new task definition revision on every terraform apply #149

Conversation

sestrella
Copy link
Contributor

@sestrella sestrella commented Dec 19, 2023

Description

The current PR explicitly adds the interval,retries, and timeout parameters to the healthCheck block when they are not supplied to prevent mismatches between the Terraform state and AWS, which results in a new task revision during each terraform apply.

Note: The default values are taken from the official documentation.

Motivation and Context

Breaking Changes

No breaking changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@bryantbiggs bryantbiggs merged commit 492e323 into terraform-aws-modules:master Dec 21, 2023
14 checks passed
antonbabenko pushed a commit that referenced this pull request Dec 21, 2023
### [5.7.4](v5.7.3...v5.7.4) (2023-12-21)

### Bug Fixes

* Adding a `health_check` generates a new task definition revision on every `terraform apply` ([#149](#149)) ([492e323](492e323))
@antonbabenko
Copy link
Member

This PR is included in version 5.7.4 🎉

@sestrella sestrella deleted the default_values_for_health_check branch December 22, 2023 00:49
sestrella added a commit to stackbuilders/terraform-aws-ecs that referenced this pull request Dec 29, 2023
sestrella added a commit to stackbuilders/terraform-aws-ecs that referenced this pull request Dec 29, 2023
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a health_check generates a new task definition revision on every terraform apply
3 participants