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

resource/aws_route53_health_check: Add disable_healthcheck argument #10436

Closed
wants to merge 1 commit into from

Conversation

michael-allenNVM
Copy link

@michael-allenNVM michael-allenNVM commented Oct 9, 2019

[original]### Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

The Route53 API supports the "Disabled" argument, which will stop health checks from being performed on the endpoint and set the Health Check to be considered Healthy. Combined with invert_healthcheck, this makes it possible to effectively stop routing traffic to a specific record.

Changes proposed in this pull request:

  • docs/resource/aws_route53_health_check: Add information on disable_healthcheck argument
  • resource/aws_route53_health_check: Add support for Disabled argument
  • tests/resource/aws_route53_health_check: Enhanced existing tests for disable_healthcheck argument

Release note for CHANGELOG:

ENHANCEMENT
resource/aws_route53_health_check: Add disable_healthcheck argument

Output from acceptance testing:

# make testacc TEST=./aws TESTARGS='-run=TestAccAWSRoute53HealthCheck'                                     ==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSRoute53HealthCheck -timeout 120m
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
=== RUN   TestAccAWSRoute53HealthCheck_basic
=== PAUSE TestAccAWSRoute53HealthCheck_basic
=== RUN   TestAccAWSRoute53HealthCheck_withSearchString
=== PAUSE TestAccAWSRoute53HealthCheck_withSearchString
=== RUN   TestAccAWSRoute53HealthCheck_withChildHealthChecks
=== PAUSE TestAccAWSRoute53HealthCheck_withChildHealthChecks
=== RUN   TestAccAWSRoute53HealthCheck_withHealthCheckRegions
=== PAUSE TestAccAWSRoute53HealthCheck_withHealthCheckRegions
=== RUN   TestAccAWSRoute53HealthCheck_IpConfig
=== PAUSE TestAccAWSRoute53HealthCheck_IpConfig
=== RUN   TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck
=== PAUSE TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck
=== RUN   TestAccAWSRoute53HealthCheck_withSNI
=== PAUSE TestAccAWSRoute53HealthCheck_withSNI
=== CONT  TestAccAWSRoute53HealthCheck_basic
=== CONT  TestAccAWSRoute53HealthCheck_IpConfig
=== CONT  TestAccAWSRoute53HealthCheck_withSNI
=== CONT  TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck
=== CONT  TestAccAWSRoute53HealthCheck_withChildHealthChecks
=== CONT  TestAccAWSRoute53HealthCheck_withHealthCheckRegions
=== CONT  TestAccAWSRoute53HealthCheck_withSearchString
--- PASS: TestAccAWSRoute53HealthCheck_IpConfig (26.08s)
--- PASS: TestAccAWSRoute53HealthCheck_withHealthCheckRegions (26.17s)
--- PASS: TestAccAWSRoute53HealthCheck_withChildHealthChecks (28.85s)
--- PASS: TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck (32.30s)
--- PASS: TestAccAWSRoute53HealthCheck_basic (41.08s)
--- PASS: TestAccAWSRoute53HealthCheck_withSearchString (41.48s)
--- PASS: TestAccAWSRoute53HealthCheck_withSNI (55.70s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       55.751s


...

Would close these issues:
#10117
#8937

@michael-allenNVM michael-allenNVM requested a review from a team October 9, 2019 13:05
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/route53 Issues and PRs that pertain to the route53 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Oct 9, 2019
@DuplicatePR-bot
Copy link

Hi there! This pull request looks like it might be a duplicate of #8939, since it has the same issue number , a similar title, and similar commits.

To improve our bot, you can help us out by clicking one of the options below:
- This pull request is a duplicate, so this comment was useful. check
- This pull request is not a duplicate, but this comment was useful nevertheless. check
- This pull request is not a duplicate, so this comment was not useful. check
- I do not need this service, so this comment was not useful. check

This bot is currently in its alpha stage, and we are only sending at most one comment per repository. If you are interested in using our bot in the future, please subscribe. If you would like to learn more, see our web page.

@bflad
Copy link
Contributor

bflad commented Dec 6, 2019

Hi @michael-allenNVM 👋 Thank you for submitting this pull request. This appears to be a very similar implementation to an existing pull request (#8939). In these situations, the maintainers prefer to work in chronological order to ensure fair credit is given unless the original author is unresponsive. For now, I'm going to close this pull request in preference of the earlier one, but we can revisit/reopen this one if necessary. Thanks again for the contribution.

@bflad bflad closed this Dec 6, 2019
@michael-allenNVM
Copy link
Author

Hi @bflad The PR that this PR was closed in favour of has been closed due to inactivity.

Are you still interested in looking at this change, if so can this PR be re-opened and I will progress it?

@ghost
Copy link

ghost commented Jan 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Jan 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/route53 Issues and PRs that pertain to the route53 service. size/XS Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants