Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

aws_route53_zone_association seems unable to import association when it is one of many #14884

Closed
curator opened this issue Aug 28, 2020 · 3 comments · Fixed by #14885
Closed
Labels
bug Addresses a defect in current functionality. service/route53 Issues and PRs that pertain to the route53 service.
Milestone

Comments

@curator
Copy link
Contributor

curator commented Aug 28, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v0.13.1

  • provider registry.terraform.io/hashicorp/aws v3.4.0

Affected Resource(s)

  • aws_route53_zone_association

Terraform Configuration Files

### SNIPPET FORM (more detail on request) ###

locals {
  # local.zones - A set of domain names to create in this account/region,
  # and then optionally share to other region(s) or account(s)
  zones = toset([
  ### ~160 zones here...
  ])
}

resource "aws_route53_zone" "private-hosted-zone-usw2" {
  for_each = local.zones
  provider = aws.nonprod-nonprod01-usw2
  name     = each.key
  tags     = local.common_tags

  vpc {
    vpc_id = data.aws_vpc.nonprod-nonprod01-usw2.id
  }

  # Have to ignore lifecycle changes due to multiple, cross-account associations
  lifecycle {
    ignore_changes = [vpc]
  }
}
resource "aws_route53_zone_association" "private-hosted-zone-use1" {
  for_each   = local.zones
  provider   = aws.nonprod-nonprod01-use1
  zone_id    = aws_route53_zone.private-hosted-zone-usw2[each.key].zone_id
  vpc_id     = data.aws_vpc.nonprod-nonprod01-use1.id
  vpc_region = "us-east-1"
}

Debug Output

This appears to be the cruz of the issue:

aws_route53_zone_association.private-hosted-zone-use1["one-of-many-domains.example"]: Importing from ID "Z123456789ABCD:vpc-aaaaaaaa:us-east-1"...
aws_route53_zone_association.private-hosted-zone-use1["one-of-many-domains.example"]: Import prepared!
  Prepared aws_route53_zone_association for import
aws_route53_zone_association.private-hosted-zone-use1["one-of-many-domains.example"]: Refreshing state... [id=Z123456789ABCD:vpc-aaaaaaaa:us-east-1]
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:04 [DEBUG] [aws-sdk-go] DEBUG: Request route53/ListHostedZonesByVPC Details:
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ REQUEST POST-SIGN ]-----------------------------
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: GET /2013-04-01/hostedzonesbyvpc?vpcid=vpc-aaaaaaaa&vpcregion=us-east-1 HTTP/1.1
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Host: route53.amazonaws.com
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: User-Agent: aws-sdk-go/1.34.10 (go1.14.5; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.13.1 (+https://www.terraform.io)
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amz-Date: 20200827T234804Z
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Accept-Encoding: gzip
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:04.627-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:05.498-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:05 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2020-08-27T16:48:05.498-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ RESPONSE ]--------------------------------------
2020-08-27T16:48:05.498-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: HTTP/1.1 200 OK
2020-08-27T16:48:05.498-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Connection: close
2020-08-27T16:48:05.498-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Length: 455
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: text/xml
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Date: Thu, 27 Aug 2020 23:48:05 GMT
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amzn-Requestid: 44ca4109-870e-49c5-9f5b-383620212fd0
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:05 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   <GetCallerIdentityResult>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <Arn>arn:aws:sts::999999999999:assumed-role/admin/1598572083656927000</Arn>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <UserId>AROAAAAAAAAAAAAAAAAAA:1598572083656927000</UserId>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <Account>999999999999</Account>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   </GetCallerIdentityResult>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   <ResponseMetadata>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <RequestId>44ca4109-870e-49c5-9f5b-383620212fd0</RequestId>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   </ResponseMetadata>
2020-08-27T16:48:05.499-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: </GetCallerIdentityResponse>
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:05 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeAccountAttributes Details:
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ REQUEST POST-SIGN ]-----------------------------
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: POST / HTTP/1.1
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Host: ec2.us-east-1.amazonaws.com
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: User-Agent: aws-sdk-go/1.34.10 (go1.14.5; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.13.1 (+https://www.terraform.io)
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Length: 87
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amz-Date: 20200827T234805Z
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Accept-Encoding: gzip
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Action=DescribeAccountAttributes&AttributeName.1=supported-platforms&Version=2016-11-15
2020-08-27T16:48:05.504-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:05 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:05 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ REQUEST POST-SIGN ]-----------------------------
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: POST / HTTP/1.1
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Host: sts.amazonaws.com
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: User-Agent: aws-sdk-go/1.34.10 (go1.14.5; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.13.1 (+https://www.terraform.io)
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Length: 43
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amz-Date: 20200827T234805Z
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Accept-Encoding: gzip
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2020-08-27T16:48:05.690-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:05 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeAccountAttributes Details:
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ RESPONSE ]--------------------------------------
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: HTTP/1.1 200 OK
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Connection: close
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Length: 540
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: text/xml;charset=UTF-8
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Date: Thu, 27 Aug 2020 23:48:05 GMT
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Server: AmazonEC2
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amzn-Requestid: e5e65483-6998-446d-bdc9-fbcf191011c4
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:05 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: <DescribeAccountAttributesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <requestId>e5e65483-6998-446d-bdc9-fbcf191011c4</requestId>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <accountAttributeSet>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:         <item>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:             <attributeName>supported-platforms</attributeName>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:             <attributeValueSet>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:                 <item>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:                     <attributeValue>VPC</attributeValue>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:                 </item>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:             </attributeValueSet>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:         </item>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     </accountAttributeSet>
2020-08-27T16:48:05.900-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: </DescribeAccountAttributesResponse>
2020-08-27T16:48:05.901-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:05.905-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74626
2020-08-27T16:48:05.905-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:06 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ RESPONSE ]--------------------------------------
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: HTTP/1.1 200 OK
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Connection: close
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Length: 455
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: text/xml
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Date: Thu, 27 Aug 2020 23:48:05 GMT
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amzn-Requestid: 7ad5ab1d-52ac-4a26-9e1c-d5a61d0ba3d6
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:06 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   <GetCallerIdentityResult>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <Arn>arn:aws:sts::999999999999:assumed-role/admin/1598572070254434000</Arn>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <UserId>AROAJ2QFZ3HXYESUM3IAS:1598572070254434000</UserId>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <Account>999999999999</Account>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   </GetCallerIdentityResult>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   <ResponseMetadata>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <RequestId>7ad5ab1d-52ac-4a26-9e1c-d5a61d0ba3d6</RequestId>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:   </ResponseMetadata>
2020-08-27T16:48:06.032-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: </GetCallerIdentityResponse>
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:06 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeAccountAttributes Details:
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ REQUEST POST-SIGN ]-----------------------------
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: POST / HTTP/1.1
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Host: ec2.us-west-2.amazonaws.com
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: User-Agent: aws-sdk-go/1.34.10 (go1.14.5; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.13.1 (+https://www.terraform.io)
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Length: 87
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amz-Date: 20200827T234806Z
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Accept-Encoding: gzip
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Action=DescribeAccountAttributes&AttributeName.1=supported-platforms&Version=2016-11-15
2020-08-27T16:48:06.035-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:06 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeAccountAttributes Details:
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ RESPONSE ]--------------------------------------
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: HTTP/1.1 200 OK
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Connection: close
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Length: 540
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: text/xml;charset=UTF-8
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Date: Thu, 27 Aug 2020 23:48:05 GMT
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Server: AmazonEC2
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amzn-Requestid: 5445e194-4a9c-44de-89c0-882a9b228add
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:06 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: <DescribeAccountAttributesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <requestId>5445e194-4a9c-44de-89c0-882a9b228add</requestId>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     <accountAttributeSet>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:         <item>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:             <attributeName>supported-platforms</attributeName>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:             <attributeValueSet>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:                 <item>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:                     <attributeValue>VPC</attributeValue>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:                 </item>
2020-08-27T16:48:06.285-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:             </attributeValueSet>
2020-08-27T16:48:06.286-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:         </item>
2020-08-27T16:48:06.286-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:     </accountAttributeSet>
2020-08-27T16:48:06.286-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: </DescribeAccountAttributesResponse>
2020-08-27T16:48:06.288-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.293-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74628
2020-08-27T16:48:06.293-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.294-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.299-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74276
2020-08-27T16:48:06.299-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.299-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.304-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74629
2020-08-27T16:48:06.304-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.305-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.310-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74279
2020-08-27T16:48:06.310-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.311-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.315-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74281
2020-08-27T16:48:06.315-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.316-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.320-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74275
2020-08-27T16:48:06.320-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.320-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.325-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74273
2020-08-27T16:48:06.325-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:06.327-0700 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-08-27T16:48:06.331-0700 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/3.4.0/darwin_amd64/terraform-provider-aws_v3.4.0_x5 pid=74280
2020-08-27T16:48:06.331-0700 [DEBUG] plugin: plugin exited
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:10 [DEBUG] [aws-sdk-go] DEBUG: Response route53/ListHostedZonesByVPC Details:
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: ---[ RESPONSE ]--------------------------------------
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: HTTP/1.1 200 OK
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Connection: close
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Transfer-Encoding: chunked
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Content-Type: text/xml
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Date: Thu, 27 Aug 2020 23:48:10 GMT
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: Vary: accept-encoding
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: X-Amzn-Requestid: c7c6a87b-0d1e-4da9-b353-43ad85e4a5ee
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5:
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: -----------------------------------------------------
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:10 [DEBUG] [aws-sdk-go] <?xml version="1.0"?>
Lc2vC6rcpjPsANdjgQTzTfEYLOQyD2yz99Q0ftOqHK5vZi21deM8X/niuh5OfoiCU7MirH43nGXvducj9rPYaZpw8thTrVjo6U0IxAoBaVjt/jhok34XV8BcOxu5Or+HeKV+INVrnLCn30zl527YDtoqRucR84veGq5QKmbMCBx81ktExzYzGhIa6O1NJah5rkQs2Mb23m9Ljya7v5WwIBoiEcG3w</NextToken></ListHostedZonesByVPCResponse>
2020-08-27T16:48:10.762-0700 [DEBUG] plugin.terraform-provider-aws_v3.4.0_x5: 2020/08/27 16:48:10 [WARN] Route 53 Hosted Zone (Z123456789ABCD) Association (vpc-aaaaaaaa) not found, removing from state
2020/08/27 16:48:10 [ERROR] eval: *terraform.EvalImportStateVerify, err: Cannot import non-existent remote object: While attempting to import an existing object to aws_route53_zone_association.private-hosted-zone-use1["one-of-many-domains.example"], the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
2020/08/27 16:48:10 [ERROR] eval: *terraform.EvalSequence, err: Cannot import non-existent remote object: While attempting to import an existing object to aws_route53_zone_association.private-hosted-zone-use1["one-of-many-domains.example"], the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.

Error: Cannot import non-existent remote object

Panic Output

N/A

Expected Behavior

The association should be imported. The zone, vpc and region are all properly set.

Actual Behavior

Error: Cannot import non-existent remote object

Steps to Reproduce

  1. tf import 'aws_route53_zone_association.private-hosted-zone-use1["one-of-many-domains.example"]' Z123456789ABCD:vpc-aaaaaaaa:us-east-1

Important Factoids

This might be any easy fix... If I'm reading the debug output correctly, it's calling ListHostedZonesByVPC, and receiving a NextToken, but not using it to get further pages. When I run this call via the awscli I note that the afflicted domain, among many, is on subsequent pages of results. Assuming the order is relatively consistent between each call via API and API via CLI, this would explain the mystery.

References

N/A

@ghost ghost added the service/route53 Issues and PRs that pertain to the route53 service. label Aug 28, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 28, 2020
@bflad bflad linked a pull request Aug 28, 2020 that will close this issue
@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 28, 2020
@bflad bflad added this to the v3.5.0 milestone Aug 31, 2020
@bflad
Copy link
Contributor

bflad commented Aug 31, 2020

The fix for this has been merged and will release with version 3.5.0 of the Terraform AWS Provider, later this week. Thanks to @curator for the implementation. 👍

@ghost
Copy link

ghost commented Sep 3, 2020

This has been released in version 3.5.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Sep 30, 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 as resolved and limited conversation to collaborators Sep 30, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Addresses a defect in current functionality. service/route53 Issues and PRs that pertain to the route53 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants