Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zhanmer-olo/516e29d8a4ded73742caff97b6878d51 to your computer and use it in GitHub Desktop.
Save zhanmer-olo/516e29d8a4ded73742caff97b6878d51 to your computer and use it in GitHub Desktop.
Bug in aws_acmpca_certificate_authority
2021-06-04T16:01:12.918-0400 [DEBUG] Adding temp file log sink: /var/folders/x4/6tnvjy_90ys57lkqkdwzbb3c0000gp/T/terraform-log855174470
2021-06-04T16:01:12.918-0400 [INFO] Terraform version: 0.15.5
2021-06-04T16:01:12.918-0400 [INFO] Go runtime version: go1.16.4
2021-06-04T16:01:12.919-0400 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/2.0.0/versions/0.15.5/terraform", "plan"}
2021-06-04T16:01:12.919-0400 [DEBUG] Attempting to open CLI config file: /terraform/.terraformrc
2021-06-04T16:01:12.919-0400 [INFO] Loading CLI configuration from /terraform/.terraformrc
2021-06-04T16:01:12.920-0400 [INFO] Loading CLI configuration from /terraform/.terraform.d/credentials.tfrc.json
2021-06-04T16:01:12.920-0400 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-06-04T16:01:12.920-0400 [DEBUG] ignoring non-existing provider search directory /terraform/.terraform.d/plugins
2021-06-04T16:01:12.920-0400 [DEBUG] ignoring non-existing provider search directory /terraform/Library/Application Support/io.terraform/plugins
2021-06-04T16:01:12.920-0400 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2021-06-04T16:01:12.921-0400 [INFO] CLI command args: []string{"plan"}
2021-06-04T16:01:12.922-0400 [DEBUG] New state was assigned lineage "5793f793-104c-49ec-552f-dd674c50f42e"
2021-06-04T16:01:13.379-0400 [DEBUG] checking for provisioner in "."
2021-06-04T16:01:13.379-0400 [DEBUG] checking for provisioner in "/usr/local/Cellar/tfenv/2.0.0/versions/0.15.5"
2021-06-04T16:01:13.380-0400 [INFO] Failed to read plugin lock file .terraform/plugins/darwin_amd64/lock.json: open .terraform/plugins/darwin_amd64/lock.json: no such file or directory
2021-06-04T16:01:13.380-0400 [INFO] backend/local: starting Plan operation
2021-06-04T16:01:13.382-0400 [DEBUG] created provider logger: level=debug
2021-06-04T16:01:13.382-0400 [INFO] provider: configuring client automatic mTLS
2021-06-04T16:01:13.412-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5]
2021-06-04T16:01:13.426-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 pid=69130
2021-06-04T16:01:13.426-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5
2021-06-04T16:01:13.468-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: configuring server automatic mTLS: timestamp=2021-06-04T16:01:13.468-0400
2021-06-04T16:01:13.504-0400 [DEBUG] provider.terraform-provider-aws_v3.44.0_x5: plugin address: address=/var/folders/x4/6tnvjy_90ys57lkqkdwzbb3c0000gp/T/plugin912669545 network=unix timestamp=2021-06-04T16:01:13.504-0400
2021-06-04T16:01:13.505-0400 [DEBUG] provider: using plugin: version=5
2021-06-04T16:01:13.621-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-06-04T16:01:13.624-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 pid=69130
2021-06-04T16:01:13.624-0400 [DEBUG] provider: plugin exited
2021-06-04T16:01:13.625-0400 [INFO] terraform: building graph: GraphTypeValidate
2021-06-04T16:01:13.625-0400 [DEBUG] ProviderTransformer: "data.aws_acmpca_certificate_authority.ca" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2021-06-04T16:01:13.626-0400 [DEBUG] ReferenceTransformer: "data.aws_acmpca_certificate_authority.ca" references: []
2021-06-04T16:01:13.626-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/aws\"]" references: []
2021-06-04T16:01:13.626-0400 [DEBUG] Starting graph walk: walkValidate
2021-06-04T16:01:13.626-0400 [DEBUG] created provider logger: level=debug
2021-06-04T16:01:13.626-0400 [INFO] provider: configuring client automatic mTLS
2021-06-04T16:01:13.657-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5]
2021-06-04T16:01:13.673-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 pid=69131
2021-06-04T16:01:13.674-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5
2021-06-04T16:01:13.725-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: configuring server automatic mTLS: timestamp=2021-06-04T16:01:13.725-0400
2021-06-04T16:01:13.764-0400 [DEBUG] provider: using plugin: version=5
2021-06-04T16:01:13.764-0400 [DEBUG] provider.terraform-provider-aws_v3.44.0_x5: plugin address: address=/var/folders/x4/6tnvjy_90ys57lkqkdwzbb3c0000gp/T/plugin693602230 network=unix timestamp=2021-06-04T16:01:13.764-0400
2021-06-04T16:01:13.953-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-06-04T16:01:13.956-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 pid=69131
2021-06-04T16:01:13.956-0400 [DEBUG] provider: plugin exited
2021-06-04T16:01:13.957-0400 [INFO] backend/local: plan calling Plan
2021-06-04T16:01:13.957-0400 [INFO] terraform: building graph: GraphTypePlan
2021-06-04T16:01:13.957-0400 [DEBUG] ProviderTransformer: "data.aws_acmpca_certificate_authority.ca (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2021-06-04T16:01:13.958-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/aws\"]" references: []
2021-06-04T16:01:13.958-0400 [DEBUG] ReferenceTransformer: "data.aws_acmpca_certificate_authority.ca (expand)" references: []
2021-06-04T16:01:13.958-0400 [DEBUG] Starting graph walk: walkPlan
2021-06-04T16:01:13.958-0400 [DEBUG] created provider logger: level=debug
2021-06-04T16:01:13.959-0400 [INFO] provider: configuring client automatic mTLS
2021-06-04T16:01:13.990-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5]
2021-06-04T16:01:14.011-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 pid=69132
2021-06-04T16:01:14.011-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5
2021-06-04T16:01:14.065-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: configuring server automatic mTLS: timestamp=2021-06-04T16:01:14.064-0400
2021-06-04T16:01:14.104-0400 [DEBUG] provider.terraform-provider-aws_v3.44.0_x5: plugin address: address=/var/folders/x4/6tnvjy_90ys57lkqkdwzbb3c0000gp/T/plugin141725827 network=unix timestamp=2021-06-04T16:01:14.104-0400
2021-06-04T16:01:14.104-0400 [DEBUG] provider: using plugin: version=5
2021-06-04T16:01:14.282-0400 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/aws\"]" changed the config value, but that value is unused
2021-06-04T16:01:14.284-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [INFO] assume_role configuration set: (ARN: "", SessionID: "terraform", ExternalID: "terraform"): timestamp=2021-06-04T16:01:14.284-0400
2021-06-04T16:01:14.284-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [INFO] Attempting to use session-derived credentials: timestamp=2021-06-04T16:01:14.284-0400
2021-06-04T16:01:14.526-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [INFO] Successfully derived credentials from session: timestamp=2021-06-04T16:01:14.526-0400
2021-06-04T16:01:14.526-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [INFO] AWS Auth provider used: "AssumeRoleProvider": timestamp=2021-06-04T16:01:14.526-0400
2021-06-04T16:01:14.526-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [INFO] Attempting to AssumeRole (SessionName: "terraform", ExternalId: "terraform"): timestamp=2021-06-04T16:01:14.526-0400
2021-06-04T16:01:14.526-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] [aws-sdk-go] DEBUG: Request sts/AssumeRole Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: sts.amazonaws.com
User-Agent: aws-sdk-go/1.38.53 (go1.16; darwin; amd64)
Content-Length: 178
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-06-04T16:01:14.526-0400
2021-06-04T16:01:14.625-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] [aws-sdk-go] DEBUG: Response sts/AssumeRole Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 1052
Content-Type: text/xml
Date: Fri, 04 Jun 2021 20:01:13 GMT
X-Amzn-Requestid:
-----------------------------------------------------: timestamp=2021-06-04T16:01:14.625-0400
2021-06-04T16:01:14.625-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] [aws-sdk-go] <AssumeRoleResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<AssumeRoleResult>
<AssumedRoleUser>
<AssumedRoleId></AssumedRoleId>
<Arn></Arn>
</AssumedRoleUser>
<Credentials>
<AccessKeyId></AccessKeyId>
<SecretAccessKey></SecretAccessKey>
<SessionToken></SessionToken>
<Expiration></Expiration>
</Credentials>
</AssumeRoleResult>
<ResponseMetadata>
<RequestId></RequestId>
</ResponseMetadata>
</AssumeRoleResponse>: timestamp=2021-06-04T16:01:14.625-0400
2021-06-04T16:01:14.625-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] Trying to get account information via sts:GetCallerIdentity: timestamp=2021-06-04T16:01:14.625-0400
2021-06-04T16:01:14.625-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: sts.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.15.5 (+https://www.terraform.io) terraform-provider-aws/3.44.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.38.53 (go1.16; darwin; amd64)
Content-Length: 43
Authorization:
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20210604T200114Z
X-Amz-Security-Token:
Accept-Encoding: gzip
Action=GetCallerIdentity&Version=2011-06-15
-----------------------------------------------------: timestamp=2021-06-04T16:01:14.625-0400
2021-06-04T16:01:14.714-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 448
Content-Type: text/xml
Date: Fri, 04 Jun 2021 20:01:13 GMT
X-Amzn-Requestid:
-----------------------------------------------------: timestamp=2021-06-04T16:01:14.713-0400
2021-06-04T16:01:14.714-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] [aws-sdk-go] <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<GetCallerIdentityResult>
<Arn></Arn>
<UserId></UserId>
<Account></Account>
</GetCallerIdentityResult>
<ResponseMetadata>
<RequestId></RequestId>
</ResponseMetadata>
</GetCallerIdentityResponse>: timestamp=2021-06-04T16:01:14.714-0400
2021-06-04T16:01:14.715-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:14 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeAccountAttributes Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.15.5 (+https://www.terraform.io) terraform-provider-aws/3.44.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.38.53 (go1.16; darwin; amd64)
Content-Length: 87
Authorization:
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date:
X-Amz-Security-Token:
Accept-Encoding: gzip
Action=DescribeAccountAttributes&AttributeName.1=supported-platforms&Version=2016-11-15
-----------------------------------------------------: timestamp=2021-06-04T16:01:14.715-0400
2021-06-04T16:01:15.045-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:15 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeAccountAttributes Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 540
Cache-Control: no-cache, no-store
Content-Type: text/xml;charset=UTF-8
Date: Fri, 04 Jun 2021 20:01:14 GMT
Server: AmazonEC2
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Amzn-Requestid:
-----------------------------------------------------: timestamp=2021-06-04T16:01:15.045-0400
2021-06-04T16:01:15.045-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:15 [DEBUG] [aws-sdk-go] <?xml version="1.0" encoding="UTF-8"?>
<DescribeAccountAttributesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId></requestId>
<accountAttributeSet>
<item>
<attributeName>supported-platforms</attributeName>
<attributeValueSet>
<item>
<attributeValue>VPC</attributeValue>
</item>
</attributeValueSet>
</item>
</accountAttributeSet>
</DescribeAccountAttributesResponse>: timestamp=2021-06-04T16:01:15.045-0400
2021-06-04T16:01:15.045-0400 [DEBUG] Resource instance state not found for node "data.aws_acmpca_certificate_authority.ca", instance data.aws_acmpca_certificate_authority.ca
2021-06-04T16:01:15.046-0400 [DEBUG] ReferenceTransformer: "data.aws_acmpca_certificate_authority.ca" references: []
2021-06-04T16:01:15.047-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:15 [DEBUG] Reading ACM PCA Certificate Authority: {
CertificateAuthorityArn: "arn:aws:acm-pca:us-east-1:000000000000:certificate-authority/00000000-0000-0000-0000-000000000000"
}: timestamp=2021-06-04T16:01:15.046-0400
2021-06-04T16:01:15.047-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:15 [DEBUG] [aws-sdk-go] DEBUG: Request acm-pca/DescribeCertificateAuthority Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: acm-pca.us-east-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.15.5 (+https://www.terraform.io) terraform-provider-aws/3.44.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.38.53 (go1.16; darwin; amd64)
Content-Length: 127
Authorization:
Content-Type: application/x-amz-json-1.1
X-Amz-Date: 20210604T200115Z
X-Amz-Security-Token:
X-Amz-Target: ACMPrivateCA.DescribeCertificateAuthority
Accept-Encoding: gzip
{"CertificateAuthorityArn":"arn:aws:acm-pca:us-east-1:000000000000:certificate-authority/00000000-0000-0000-0000-000000000000"}
-----------------------------------------------------: timestamp=2021-06-04T16:01:15.047-0400
2021-06-04T16:01:15.231-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:15 [DEBUG] [aws-sdk-go] DEBUG: Response acm-pca/DescribeCertificateAuthority Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Content-Length: 726
Content-Type: application/x-amz-json-1.1
Date: Fri, 04 Jun 2021 20:01:15 GMT
X-Amzn-Requestid:
-----------------------------------------------------: timestamp=2021-06-04T16:01:15.231-0400
2021-06-04T16:01:15.231-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:15 [DEBUG] [aws-sdk-go] {"CertificateAuthority":{"Arn":"arn:aws:acm-pca:us-east-1:000000000000:certificate-authority/00000000-0000-0000-0000-000000000000","CertificateAuthorityConfiguration":{"KeyAlgorithm":"RSA_2048","SigningAlgorithm":"SHA256WITHRSA","Subject":{"CommonName":"staging.domain.local","Locality":"New York","Organization":"Organization","OrganizationalUnit":"Engineering","State":"New York"}},"CreatedAt":1.562068465449E9,"KeyStorageSecurityStandard":"FIPS_140_2_LEVEL_3_OR_HIGHER","LastStateChangeAt":1.562068481284E9,"NotAfter":1.87768768E9,"NotBefore":1.56206488E9,"OwnerAccount":"000000000000","RevocationConfiguration":{"CrlConfiguration":{"Enabled":false}},"Serial":"156044854037683441862540895311829376437","Status":"ACTIVE","Type":"ROOT"}}: timestamp=2021-06-04T16:01:15.231-0400
2021-06-04T16:01:15.232-0400 [INFO] provider.terraform-provider-aws_v3.44.0_x5: 2021/06/04 16:01:15 [ERROR] setting state: Invalid address to set: []string{"revocation_configuration", "0", "crl_configuration", "0", "s3_object_acl"}: timestamp=2021-06-04T16:01:15.231-0400
2021-06-04T16:01:15.232-0400 [INFO] backend/local: plan operation completed
│ Error: error setting tags: Invalid address to set: []string{"revocation_configuration", "0", "crl_configuration", "0", "s3_object_acl"}
│ with data.aws_acmpca_certificate_authority.ca,
│ on test.tf line 21, in data "aws_acmpca_certificate_authority" "ca":
│ 21: data aws_acmpca_certificate_authority ca {
2021-06-04T16:01:15.233-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-06-04T16:01:15.237-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.44.0/darwin_amd64/terraform-provider-aws_v3.44.0_x5 pid=69132
2021-06-04T16:01:15.237-0400 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment