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

Draft: Deprecates health_check_custom_config.failure_threshold #40777

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Bexanderthebex
Copy link

@Bexanderthebex Bexanderthebex commented Jan 5, 2025

Description

This PR will try to resolve the issue with the aws_service_discovery_service resource where setting the health_check_custom_config.failure_threshold to a value other than 1 results into the following behaviors:

  • During resource creation, the value is getting ignored as the AWS SDK overrides it to 1
  • After the initial resource creation, the resource always gets recreated as terraform detects that the value written in the terraform file is not on par with the setting in the AWS Cloudformation Stack. This causes uninteded terraform apply failures since terraform will try to destroy and then recreate the resource again even with tight depedencies that terraform won't simply allow.

Relations

Closes #37955

References

#35559

Output from Acceptance Testing

% make testacc TESTS=TestAccXXX PKG=ec2

...

@Bexanderthebex Bexanderthebex requested a review from a team as a code owner January 5, 2025 13:56
Copy link

github-actions bot commented Jan 5, 2025

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added service/servicediscovery Issues and PRs that pertain to the servicediscovery service. needs-triage Waiting for first response or review from a maintainer. labels Jan 5, 2025
@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Jan 5, 2025
@Bexanderthebex Bexanderthebex marked this pull request as draft January 5, 2025 14:44
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Introduces or discusses updates to documentation. service/servicediscovery Issues and PRs that pertain to the servicediscovery service.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

r/aws_service_discovery_service: Deprecate health_check_custom_config.failure_threshold
2 participants