hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

[Bug]: Cannot create `aws_route53_health_check` with `child_health_threshold` set to 0 when the type is `CALCULATED` #39428

Open neo-nikita opened 1 month ago

neo-nikita commented 1 month ago

Terraform Core Version

1.9.1

AWS Provider Version

5.68.0

Affected Resource(s)

aws_route53_health_check

Expected Behavior

Terraform should be able create calculated aws_route53_health_check with child_health_threshold value set to 0, because that is stated in the provider documentation of the resource and that can be done in AWS Web Management Console. In my case I want to set the value to 0, so the health-check will always report healthy.

Actual Behavior

Terraform is able to plan the resource, but during the apply stage it states that the threshold must be specified and exits with error below.

Relevant Error/Panic Output Snippet

Error: creating Route53 Health Check: operation error Route 53: CreateHealthCheck, https response error StatusCode: 400, RequestID: 177b0e78-763a-4d9d-8335-26129a14b456, InvalidInput: Invalid parameter : Calculated health checks must have a health threshold specified.

Terraform Configuration Files

main.tf

resource "aws_route53_health_check" "random_healthcheck" {
  type               = "HTTP"
  fqdn               = "www.google.com"
  invert_healthcheck = true
  resource_path      = "/404"
  port               = 80
  failure_threshold  = 10
  request_interval   = 30

  tags = {
    "Name" = "test 1"
  }
}

resource "aws_route53_health_check" "result_healthcheck" {
  type                   = "CALCULATED"
  child_health_threshold = 0 #     <== Change to 1 for workaround
  child_healthchecks = [
    aws_route53_health_check.random_healthcheck.id,
  ]

  tags = {
    "Name" = "Resulting health check"
  }
}

version.tf

terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
      version = "5.68.0"
    }
  }
  required_version = "1.9.1"
}

Steps to Reproduce

Workaround

Debug Output

2024-09-20T13:30:33.166-0600 [INFO]  backend/local: apply calling Apply
2024-09-20T13:30:33.166-0600 [DEBUG] Building and walking apply graph for NormalMode plan
2024-09-20T13:30:33.166-0600 [DEBUG] Resource state not found for node "aws_route53_health_check.result_healthcheck", instance aws_route53_health_check.result_healthcheck
2024-09-20T13:30:33.166-0600 [DEBUG] ProviderTransformer: "aws_route53_health_check.random_healthcheck (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2024-09-20T13:30:33.166-0600 [DEBUG] ProviderTransformer: "aws_route53_health_check.result_healthcheck (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2024-09-20T13:30:33.166-0600 [DEBUG] ProviderTransformer: "aws_route53_health_check.result_healthcheck" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/aws"]
2024-09-20T13:30:33.166-0600 [DEBUG] ReferenceTransformer: "aws_route53_health_check.random_healthcheck (expand)" references: []
2024-09-20T13:30:33.167-0600 [DEBUG] ReferenceTransformer: "aws_route53_health_check.result_healthcheck (expand)" references: [aws_route53_health_check.random_healthcheck (expand)]
2024-09-20T13:30:33.167-0600 [DEBUG] ReferenceTransformer: "aws_route53_health_check.result_healthcheck" references: [aws_route53_health_check.random_healthcheck (expand)]
2024-09-20T13:30:33.167-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/aws\"]" references: []
2024-09-20T13:30:33.167-0600 [DEBUG] Starting graph walk: walkApply
2024-09-20T13:30:33.167-0600 [DEBUG] created provider logger: level=debug
2024-09-20T13:30:33.167-0600 [INFO]  provider: configuring client automatic mTLS
2024-09-20T13:30:33.173-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.68.0/darwin_arm64/terraform-provider-aws_v5.68.0_x5 args=[".terraform/providers/registry.terraform.io/hashicorp/aws/5.68.0/darwin_arm64/terraform-provider-aws_v5.68.0_x5"]
2024-09-20T13:30:33.208-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.68.0/darwin_arm64/terraform-provider-aws_v5.68.0_x5 pid=26415
2024-09-20T13:30:33.208-0600 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/hashicorp/aws/5.68.0/darwin_arm64/terraform-provider-aws_v5.68.0_x5
2024-09-20T13:30:33.325-0600 [INFO]  provider.terraform-provider-aws_v5.68.0_x5: configuring server automatic mTLS: timestamp=2024-09-20T13:30:33.324-0600
2024-09-20T13:30:33.329-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: plugin address: address=/var/folders/4d/912v7_6n0kb3pq_4thn70rk80000gq/T/plugin2124050815 network=unix timestamp=2024-09-20T13:30:33.329-0600
2024-09-20T13:30:33.329-0600 [DEBUG] provider: using plugin: version=5
2024-09-20T13:30:33.400-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Configuring Terraform AWS Provider: tf_mux_provider="*schema.GRPCProviderServer" tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:144 @module=aws tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_rpc=ConfigureProvider timestamp=2024-09-20T13:30:33.400-0600
2024-09-20T13:30:33.400-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Resolving credentials provider: tf_mux_provider="*schema.GRPCProviderServer" tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:47 tf_provider_addr=registry.terraform.io/hashicorp/aws @module=aws.aws-base timestamp=2024-09-20T13:30:33.400-0600
2024-09-20T13:30:33.400-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Loading configuration: tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b @module=aws.aws-base tf_mux_provider="*schema.GRPCProviderServer" tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:47 timestamp=2024-09-20T13:30:33.400-0600
2024-09-20T13:30:33.401-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Retrieving credentials: @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:47 @module=aws.aws-base tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_mux_provider="*schema.GRPCProviderServer" tf_rpc=ConfigureProvider timestamp=2024-09-20T13:30:33.401-0600
2024-09-20T13:30:33.401-0600 [INFO]  provider.terraform-provider-aws_v5.68.0_x5: Retrieved credentials: @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:39 tf_aws.credentials_source="SharedConfigCredentials: /Users/rAnDoM_UsEr/.aws/credentials" tf_rpc=ConfigureProvider @module=aws.aws-base tf_mux_provider="*schema.GRPCProviderServer" tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b timestamp=2024-09-20T13:30:33.401-0600
2024-09-20T13:30:33.401-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Loading configuration: tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:47 @module=aws.aws-base tf_mux_provider="*schema.GRPCProviderServer" tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_rpc=ConfigureProvider timestamp=2024-09-20T13:30:33.401-0600
2024-09-20T13:30:33.403-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Creating AWS SDK v1 session: @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:168 @module=aws tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_rpc=ConfigureProvider tf_mux_provider="*schema.GRPCProviderServer" tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2024-09-20T13:30:33.403-0600
2024-09-20T13:30:33.404-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Retrieving AWS account details: @module=aws tf_mux_provider="*schema.GRPCProviderServer" tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-provider-aws/internal/conns/config.go:183 timestamp=2024-09-20T13:30:33.404-0600
2024-09-20T13:30:33.404-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: Retrieving caller identity from STS: @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:47 @module=aws.aws-base tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_mux_provider="*schema.GRPCProviderServer" tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider timestamp=2024-09-20T13:30:33.404-0600
2024-09-20T13:30:33.404-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: HTTP Request Sent: http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.9.1 (+https://www.terraform.io) terraform-provider-aws/5.68.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.30.5 os/macos lang/go#1.22.7 md/GOOS#darwin md/GOARCH#arm64 api/sts#1.30.8" tf_aws.sdk=aws-sdk-go-v2 @module=aws.aws-base rpc.service=STS tf_mux_provider="*schema.GRPCProviderServer" http.request.header.x_amz_date=20240920T193033Z tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ConfigureProvider aws.region=ca-central-1 http.request.header.amz_sdk_request="attempt=1; max=25" http.method=POST http.request.header.amz_sdk_invocation_id=3f6ef49a-cf17-4be6-873c-0c029dde248c tf_aws.signing_region="" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************PEGQ/20240920/ca-central-1/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=*****" http.request.header.x_amz_security_token="*****" rpc.method=GetCallerIdentity rpc.system=aws-api
  http.request.body=
  | Action=GetCallerIdentity&Version=2011-06-15
   http.url=https://sts.ca-central-1.amazonaws.com/ net.peer.name=sts.ca-central-1.amazonaws.com tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:47 http.request_content_length=43 http.request.header.content_type=application/x-www-form-urlencoded timestamp=2024-09-20T13:30:33.404-0600
2024-09-20T13:30:33.632-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: HTTP Response Received: aws.region=ca-central-1 http.duration=227 http.status_code=200 @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:47 http.response_content_length=510 rpc.method=GetCallerIdentity tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_mux_provider="*schema.GRPCProviderServer" tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b @module=aws.aws-base http.response.header.x_amzn_requestid=9684e1d1-c234-4347-9123-aa3f5c8dbec1
  http.response.body=
  | <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
  |   <GetCallerIdentityResult>
  |     <Arn>arn:aws:sts::775229019922:assumed-role/AWSReservedSSO_admin_**************/nikkie-issue-submitter@org.com</Arn>
  |     <UserId>AROA*************62MH:nikkie.sinburt@org.com</UserId>
  |     <Account>775229019922</Account>
  |   </GetCallerIdentityResult>
  |   <ResponseMetadata>
  |     <RequestId>9684e1d1-c234-4347-9123-aa3f5c8dbec1</RequestId>
  |   </ResponseMetadata>
  | </GetCallerIdentityResponse>
   http.response.header.content_type=text/xml rpc.service=STS tf_rpc=ConfigureProvider tf_provider_addr=registry.terraform.io/hashicorp/aws http.response.header.date="Fri, 20 Sep 2024 19:30:32 GMT" rpc.system=aws-api timestamp=2024-09-20T13:30:33.632-0600
2024-09-20T13:30:33.633-0600 [INFO]  provider.terraform-provider-aws_v5.68.0_x5: Retrieved caller identity from STS: tf_mux_provider="*schema.GRPCProviderServer" @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:39 @module=aws.aws-base tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=5f456169-ac90-8bfb-ea8a-a65ab9ae875b tf_rpc=ConfigureProvider timestamp=2024-09-20T13:30:33.632-0600
2024-09-20T13:30:33.654-0600 [WARN]  Provider "registry.terraform.io/hashicorp/aws" produced an invalid plan for aws_route53_health_check.result_healthcheck, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .measure_latency: planned value cty.False for a non-computed attribute
      - .disabled: planned value cty.False for a non-computed attribute
aws_route53_health_check.result_healthcheck: Creating...
2024-09-20T13:30:33.654-0600 [INFO]  Starting apply for aws_route53_health_check.result_healthcheck
2024-09-20T13:30:33.655-0600 [DEBUG] aws_route53_health_check.result_healthcheck: applying the planned Create change
2024-09-20T13:30:33.657-0600 [INFO]  provider.terraform-provider-aws_v5.68.0_x5: overriding region: override_region=us-east-1 tf_req_id=fa50c024-7890-f6ce-b577-b17bc0529aca tf_resource_type=aws_route53_health_check tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-provider-aws/internal/service/route53/service_package.go:28 @module=aws original_region=ca-central-1 tf_aws.service_package=route53 tf_mux_provider="*schema.GRPCProviderServer" timestamp=2024-09-20T13:30:33.657-0600
2024-09-20T13:30:33.658-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: HTTP Request Sent: http.method=POST net.peer.name=route53.amazonaws.com tf_resource_type=aws_route53_health_check tf_rpc=ApplyResourceChange @module=aws aws.region=us-east-1 rpc.method=CreateHealthCheck tf_aws.sdk=aws-sdk-go-v2 tf_req_id=fa50c024-7890-f6ce-b577-b17bc0529aca http.request.header.authorization="AWS4-HMAC-SHA256 Credential=ASIA************PEGQ/20240920/us-east-1/route53/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=*****" http.request.header.x_amz_date=20240920T193033Z @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:45 http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.9.1 (+https://www.terraform.io) terraform-provider-aws/5.68.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.30.5 os/macos lang/go#1.22.7 md/GOOS#darwin md/GOARCH#arm64 api/route53#1.43.3" tf_aws.signing_region="" tf_provider_addr=registry.terraform.io/hashicorp/aws http.request.header.amz_sdk_invocation_id=8f8143b9-7879-4e0f-8332-6a164cbaed48 http.request.header.content_type=application/xml rpc.service="Route 53" tf_mux_provider="*schema.GRPCProviderServer"
  http.request.body=
  | <CreateHealthCheckRequest xmlns="https://route53.amazonaws.com/doc/2013-04-01/"><CallerReference>terraform-20240920193033657500000001</CallerReference><HealthCheckConfig><ChildHealthChecks><ChildHealthCheck>d05388ad-7068-49a8-a55a-6ec70a0e4df8</ChildHealthCheck></ChildHealthChecks><Type>CALCULATED</Type></HealthCheckConfig></CreateHealthCheckRequest>
   http.request.header.amz_sdk_request="attempt=1; max=25" http.request.header.x_amz_security_token="*****" http.request_content_length=352 rpc.system=aws-api http.url=https://route53.amazonaws.com/2013-04-01/healthcheck timestamp=2024-09-20T13:30:33.658-0600
2024-09-20T13:30:33.940-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: HTTP Response Received: @module=aws http.response.header.x_amzn_requestid=b66eacb5-d36b-4ff2-bc9a-bfe6cf0fcdf0 rpc.method=CreateHealthCheck tf_req_id=fa50c024-7890-f6ce-b577-b17bc0529aca aws.region=us-east-1
  http.response.body=
  | <?xml version="1.0"?>
  | <ErrorResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"><Error><Type>Sender</Type><Code>InvalidInput</Code><Message>Invalid parameter : Calculated health checks must have a health threshold specified.</Message></Error><RequestId>b66eacb5-d36b-4ff2-bc9a-bfe6cf0fcdf0</RequestId></ErrorResponse>
   http.response.header.content_type=text/xml http.response_content_length=328 http.status_code=400 rpc.system=aws-api @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:45 http.response.header.x_amzn_actiontrace=amzn1.tr.ce241950-7786-11ef-a351-0af6c2350200.-1.y4dn3c.o7YsYn tf_resource_type=aws_route53_health_check tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/hashicorp/aws http.duration=280 http.response.header.date="Fri, 20 Sep 2024 19:30:33 GMT" rpc.service="Route 53" tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" tf_mux_provider="*schema.GRPCProviderServer" timestamp=2024-09-20T13:30:33.939-0600
2024-09-20T13:30:33.940-0600 [DEBUG] provider.terraform-provider-aws_v5.68.0_x5: request failed with unretryable error https response error StatusCode: 400, RequestID: b66eacb5-d36b-4ff2-bc9a-bfe6cf0fcdf0, InvalidInput: Invalid parameter : Calculated health checks must have a health threshold specified.: tf_aws.sdk=aws-sdk-go-v2 tf_provider_addr=registry.terraform.io/hashicorp/aws aws.region=us-east-1 rpc.method=CreateHealthCheck rpc.system=aws-api tf_req_id=fa50c024-7890-f6ce-b577-b17bc0529aca @module=aws tf_rpc=ApplyResourceChange tf_resource_type=aws_route53_health_check @caller=github.com/hashicorp/aws-sdk-go-base/v2@v2.0.0-beta.57/logging/tf_logger.go:45 rpc.service="Route 53" tf_mux_provider="*schema.GRPCProviderServer" timestamp=2024-09-20T13:30:33.940-0600
2024-09-20T13:30:33.941-0600 [ERROR] provider.terraform-provider-aws_v5.68.0_x5: Response contains error diagnostic: diagnostic_summary="creating Route53 Health Check: operation error Route 53: CreateHealthCheck, https response error StatusCode: 400, RequestID: b66eacb5-d36b-4ff2-bc9a-bfe6cf0fcdf0, InvalidInput: Invalid parameter : Calculated health checks must have a health threshold specified." tf_provider_addr=registry.terraform.io/hashicorp/aws tf_resource_type=aws_route53_health_check @module=sdk.proto diagnostic_detail="" diagnostic_severity=ERROR tf_proto_version=5.6 tf_req_id=fa50c024-7890-f6ce-b577-b17bc0529aca @caller=github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/diag/diagnostics.go:58 tf_rpc=ApplyResourceChange timestamp=2024-09-20T13:30:33.940-0600
2024-09-20T13:30:33.949-0600 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-09-20T13:30:33.949-0600 [ERROR] vertex "aws_route53_health_check.result_healthcheck" error: creating Route53 Health Check: operation error Route 53: CreateHealthCheck, https response error StatusCode: 400, RequestID: b66eacb5-d36b-4ff2-bc9a-bfe6cf0fcdf0, InvalidInput: Invalid parameter : Calculated health checks must have a health threshold specified.
╷
│ Error: creating Route53 Health Check: operation error Route 53: CreateHealthCheck, https response error StatusCode: 400, RequestID: b66eacb5-d36b-4ff2-bc9a-bfe6cf0fcdf0, InvalidInput: Invalid parameter : Calculated health checks must have a health threshold specified.
│
│   with aws_route53_health_check.result_healthcheck,
│   on main.tf line 15, in resource "aws_route53_health_check" "result_healthcheck":
│   15: resource "aws_route53_health_check" "result_healthcheck" {
│
╵
2024-09-20T13:30:33.956-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-09-20T13:30:33.966-0600 [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/aws/5.68.0/darwin_arm64/terraform-provider-aws_v5.68.0_x5 id=26415
2024-09-20T13:30:33.966-0600 [DEBUG] provider: plugin exited

Panic Output

╷
│ Error: creating Route53 Health Check: operation error Route 53: CreateHealthCheck, https response error StatusCode: 400, RequestID: aa7f4d4d-9e7d-4d09-b0d6-53b2ee12aa55, InvalidInput: Invalid parameter : Calculated health checks must have a health threshold specified.
│
│   with aws_route53_health_check.result_healthcheck,
│   on main.tf line 15, in resource "aws_route53_health_check" "result_healthcheck":
│   15: resource "aws_route53_health_check" "result_healthcheck" {
│
|

Would you like to implement a fix?

Not yet

Additional Notes

Same issue on the lower versions, down to 0.9

Apparently this issue only occurs in terraform resource because in API/CLI there is an additional HealthThreshold field that is not available in terraform, assuming it gets set behind the scenes. And it's only gets set when the value is >= 0, but API will allow 0

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

neo-nikita commented 1 month ago

Checked the API doc for creating a health-check. Apparently you can specify HealthThreshold in API/CLI, which will work as expected, terraform resource seems to set this value only when child_health_threshold is >= 1.