hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.58k stars 9.54k forks source link

TF plan with AWs provider never authentiates #23699

Closed mpechner closed 4 years ago

mpechner commented 4 years ago

Seems to have worked for a bit. a terraform apply worked. When I ran destroy, the issue started. Any command, plan or apply causes the issue.

Terraform Version

mpechner@mpechner16 ecs % terraform -v 2019/12/16 21:44:31 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. Use TF_LOG=TRACE to see Terraform's internal logs.

2019/12/16 21:44:31 [INFO] Terraform version: 0.12.18
2019/12/16 21:44:31 [INFO] Go runtime version: go1.12.13 2019/12/16 21:44:31 [INFO] CLI args: []string{"/usr/local/bin/terraform", "-v"} 2019/12/16 21:44:31 [DEBUG] Attempting to open CLI config file: /Users/mpechner/.terraformrc 2019/12/16 21:44:31 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2019/12/16 21:44:31 [INFO] CLI command args: []string{"version", "-v"} Terraform v0.12.18 2019/12/16 21:44:31 [DEBUG] checking for provider in "." 2019/12/16 21:44:31 [DEBUG] checking for provider in "/usr/local/bin" 2019/12/16 21:44:31 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" 2019/12/16 21:44:31 [DEBUG] found provider "terraform-provider-aws_v2.42.0_x4" 2019/12/16 21:44:31 [DEBUG] found valid plugin: "aws", "2.42.0", "/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4"

...

Terraform Configuration Files

Versions.tf terraform { required_version = ">= 0.12" }

Provider.tf

provider "aws" { profile = "default" region = "us-east-1" version = "~> 2.0" }

Debug Output

mpechner@mpechner16 ecs % terraform plan 2019/12/16 21:46:11 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. Use TF_LOG=TRACE to see Terraform's internal logs.

2019/12/16 21:46:11 [INFO] Terraform version: 0.12.18
2019/12/16 21:46:11 [INFO] Go runtime version: go1.12.13 2019/12/16 21:46:11 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"} 2019/12/16 21:46:11 [DEBUG] Attempting to open CLI config file: /Users/mpechner/.terraformrc 2019/12/16 21:46:11 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2019/12/16 21:46:11 [INFO] CLI command args: []string{"plan"} 2019/12/16 21:46:11 [DEBUG] New state was assigned lineage "144ca3a9-2e34-89b0-b1ee-bfb85edc0a3b" 2019/12/16 21:46:11 [DEBUG] checking for provider in "." 2019/12/16 21:46:11 [DEBUG] checking for provider in "/usr/local/bin" 2019/12/16 21:46:11 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" 2019/12/16 21:46:11 [DEBUG] found provider "terraform-provider-aws_v2.42.0_x4" 2019/12/16 21:46:11 [DEBUG] found valid plugin: "aws", "2.42.0", "/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4" 2019/12/16 21:46:11 [DEBUG] checking for provisioner in "." 2019/12/16 21:46:11 [DEBUG] checking for provisioner in "/usr/local/bin" 2019/12/16 21:46:11 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64" 2019/12/16 21:46:11 [INFO] backend/local: starting Plan operation 2019-12-16T21:46:11.999-0800 [INFO] plugin: configuring client automatic mTLS 2019-12-16T21:46:12.020-0800 [DEBUG] plugin: starting plugin: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 args=[/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4] 2019-12-16T21:46:12.028-0800 [DEBUG] plugin: plugin started: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 pid=2133 2019-12-16T21:46:12.028-0800 [DEBUG] plugin: waiting for RPC address: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 2019-12-16T21:46:12.048-0800 [INFO] plugin.terraform-provider-aws_v2.42.0_x4: configuring server automatic mTLS: timestamp=2019-12-16T21:46:12.048-0800 2019-12-16T21:46:12.072-0800 [DEBUG] plugin: using plugin: version=5 2019-12-16T21:46:12.072-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin address: address=/var/folders/cm/fb7hh8jd5vg0vv968q_9cwxw0000gn/T/plugin200324056 network=unix timestamp=2019-12-16T21:46:12.072-0800 2019-12-16T21:46:12.162-0800 [DEBUG] plugin: plugin process exited: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 pid=2133 2019-12-16T21:46:12.162-0800 [DEBUG] plugin: plugin exited 2019/12/16 21:46:12 [INFO] terraform: building graph: GraphTypeValidate 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_autoscaling_group.webserver" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_iam_role.ecs_example_task_role" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_iam_role_policy_attachment.AmazonECSTaskExecutionRolePolicy2" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_launch_configuration.webserver" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_ecs_task_definition.webserver" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_iam_role_policy_attachment.AmazonEC2ContainerServiceRole2" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "data.aws_subnet.def_1a" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_ecs_service.webserver" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_security_group.webserver" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_iam_role_policy_attachment.AmazonEC2ContainerServiceRole" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "data.aws_ami.amazon-linux-2" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_iam_role_policy_attachment.AmazonECSTaskExecutionRolePolicy" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_iam_role.ecs_example_ec2" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_iam_instance_profile.ecs_example_ec2" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "data.aws_vpc.default" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "aws_ecs_cluster.webserver" (terraform.NodeValidatableResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_ecs_task_definition.webserver" references: [aws_iam_role.ecs_example_task_role aws_iam_role.ecs_example_task_role] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.AmazonEC2ContainerServiceRole" references: [aws_iam_role.ecs_example_ec2] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_iam_instance_profile.ecs_example_ec2" references: [aws_iam_role.ecs_example_ec2] _example_ec2] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_autoscaling_group.webserver" references: [data.aws_subnet.def_1a aws_launch_configuration.webserver] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_security_group.webserver" references: [data.aws_vpc.default] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_iam_role.ecs_example_ec2" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "var.region" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.AmazonEC2ContainerServiceRole2" references: [aws_iam_role.ecs_example_task_role] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_ecs_cluster.webserver" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "data.aws_subnet.def_1a" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "data.aws_ami.amazon-linux-2" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "data.aws_vpc.default" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "provider.aws" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_ecs_service.webserver" references: [aws_ecs_task_definition.webserver aws_ecs_cluster.webserver] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_iam_role.ecs_example_task_role" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.AmazonECSTaskExecutionRolePolicy2" references: [aws_iam_role.ecs_example_task_role] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.AmazonECSTaskExecutionRolePolicy" references: [aws_iam_role.ecs_example_ec2] 2019/12/16 21:46:12 [DEBUG] Starting graph walk: walkValidate 2019-12-16T21:46:12.168-0800 [INFO] plugin: configuring client automatic mTLS 2019-12-16T21:46:12.189-0800 [DEBUG] plugin: starting plugin: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 args=[/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4] 2019-12-16T21:46:12.195-0800 [DEBUG] plugin: plugin started: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 pid=2136 2019-12-16T21:46:12.195-0800 [DEBUG] plugin: waiting for RPC address: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 2019-12-16T21:46:12.215-0800 [INFO] plugin.terraform-provider-aws_v2.42.0_x4: configuring server automatic mTLS: timestamp=2019-12-16T21:46:12.215-0800 2019-12-16T21:46:12.240-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin address: network=unix address=/var/folders/cm/fb7hh8jd5vg0vv968q_9cwxw0000gn/T/plugin641318103 timestamp=2019-12-16T21:46:12.240-0800 2019-12-16T21:46:12.240-0800 [DEBUG] plugin: using plugin: version=5 2019-12-16T21:46:12.356-0800 [DEBUG] plugin: plugin process exited: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 pid=2136 2019-12-16T21:46:12.356-0800 [DEBUG] plugin: plugin exited 2019/12/16 21:46:12 [INFO] backend/local: plan calling Refresh 2019/12/16 21:46:12 [INFO] terraform: building graph: GraphTypeRefresh Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage. 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "data.aws_subnet.def_1a" (terraform.NodeRefreshableDataResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "data.aws_ami.amazon-linux-2" (terraform.NodeRefreshableDataResource) needs provider.aws 2019/12/16 21:46:12 [DEBUG] ProviderTransformer: "data.aws_vpc.default" (*terraform.NodeRefreshableDataResource) needs provider.aws

2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "data.aws_ami.amazon-linux-2" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "data.aws_vpc.default" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "data.aws_subnet.def_1a" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "var.region" references: [] 2019/12/16 21:46:12 [DEBUG] ReferenceTransformer: "provider.aws" references: [] 2019/12/16 21:46:12 [DEBUG] Starting graph walk: walkRefresh 2019-12-16T21:46:12.357-0800 [INFO] plugin: configuring client automatic mTLS 2019-12-16T21:46:12.378-0800 [DEBUG] plugin: starting plugin: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 args=[/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4] 2019-12-16T21:46:12.387-0800 [DEBUG] plugin: plugin started: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 pid=2137 2019-12-16T21:46:12.387-0800 [DEBUG] plugin: waiting for RPC address: path=/Users/mpechner/dev/terraform_ansible/ecs/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.42.0_x4 2019-12-16T21:46:12.407-0800 [INFO] plugin.terraform-provider-aws_v2.42.0_x4: configuring server automatic mTLS: timestamp=2019-12-16T21:46:12.407-0800 2019-12-16T21:46:12.430-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin address: address=/var/folders/cm/fb7hh8jd5vg0vv968q_9cwxw0000gn/T/plugin990963764 network=unix timestamp=2019-12-16T21:46:12.430-0800 2019-12-16T21:46:12.430-0800 [DEBUG] plugin: using plugin: version=5 2019-12-16T21:46:12.509-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:12 [INFO] No assume_role block read from configuration 2019-12-16T21:46:12.509-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:12 [INFO] Building AWS auth structure 2019-12-16T21:46:12.509-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:12 [INFO] Setting AWS metadata API timeout to 100ms 2019-12-16T21:46:14.097-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:14 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id 2019-12-16T21:46:14.097-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:14 [INFO] AWS Auth provider used: "SharedCredentialsProvider" 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:14 [DEBUG] Trying to get account information via sts:GetCallerIdentity 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:14 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details: 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ---[ REQUEST POST-SIGN ]----------------------------- 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: POST / HTTP/1.1 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Host: sts.amazonaws.com 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: User-Agent: aws-sdk-go/1.25.50 (go1.13.4; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.18 (+https://www.terraform.io) 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Length: 43 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=AKIA6NNIRNFUEMUZWFH3/20191217/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=48d316652760a23799c3a659dd5b0d9a1dbc1342eb91cb789b1a6658498babc7 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: X-Amz-Date: 20191217T054614Z 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Accept-Encoding: gzip 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Action=GetCallerIdentity&Version=2011-06-15 2019-12-16T21:46:14.098-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ----------------------------------------------------- 2019-12-16T21:46:24.102-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:24 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, attempt 0/25, error RequestError: send request failed 2019-12-16T21:46:24.102-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: caused by: Post https://sts.amazonaws.com/: dial tcp: lookup sts.amazonaws.com on 10.6.9.1:53: read udp 10.6.7.24:51940->10.6.9.1:53: i/o timeout 2019-12-16T21:46:24.151-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:24 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 1 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:24 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details: 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ---[ REQUEST POST-SIGN ]----------------------------- 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: POST / HTTP/1.1 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Host: sts.amazonaws.com 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: User-Agent: aws-sdk-go/1.25.50 (go1.13.4; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.18 (+https://www.terraform.io) 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Length: 43 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=AKIA6NNIRNFUEMUZWFH3/20191217/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=c9b2aca6cb64cf094decf0d415f6640d42ec34fb79085c1b6cb4b56b9603dbb7 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: X-Amz-Date: 20191217T054624Z 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Accept-Encoding: gzip 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Action=GetCallerIdentity&Version=2011-06-15 2019-12-16T21:46:24.152-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ----------------------------------------------------- 2019-12-16T21:46:34.161-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:34 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, attempt 1/25, error RequestError: send request failed 2019-12-16T21:46:34.161-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: caused by: Post https://sts.amazonaws.com/: dial tcp: lookup sts.amazonaws.com on 10.6.9.1:53: read udp 10.6.7.24:57538->10.6.9.1:53: i/o timeout 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:34 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 2 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:34 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details: 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ---[ REQUEST POST-SIGN ]----------------------------- 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: POST / HTTP/1.1 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Host: sts.amazonaws.com 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: User-Agent: aws-sdk-go/1.25.50 (go1.13.4; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.18 (+https://www.terraform.io) 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Length: 43 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=AKIA6NNIRNFUEMUZWFH3/20191217/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=ac063ba88e831567534e87a8e7df7729b5beb67d6ee0d5f364a9f0d67de708ee 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: X-Amz-Date: 20191217T054634Z 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Accept-Encoding: gzip 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Action=GetCallerIdentity&Version=2011-06-15 2019-12-16T21:46:34.262-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ----------------------------------------------------- 2019-12-16T21:46:44.268-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:44 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, attempt 2/25, error RequestError: send request failed 2019-12-16T21:46:44.268-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: caused by: Post https://sts.amazonaws.com/: dial tcp: lookup sts.amazonaws.com on 10.6.9.1:53: read udp 10.6.7.24:61665->10.6.9.1:53: i/o timeout 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:44 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 3 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:44 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details: 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ---[ REQUEST POST-SIGN ]----------------------------- 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: POST / HTTP/1.1 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Host: sts.amazonaws.com 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: User-Agent: aws-sdk-go/1.25.50 (go1.13.4; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.18 (+https://www.terraform.io) 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Length: 43 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=AKIA6NNIRNFUEMUZWFH3/20191217/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=49478aa0939eb800c77e6b2e90b0befcbf1e1fe41a431207044fb471ca06f43b 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: X-Amz-Date: 20191217T054644Z 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Accept-Encoding: gzip 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Action=GetCallerIdentity&Version=2011-06-15 2019-12-16T21:46:44.461-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ----------------------------------------------------- ^CInterrupt received. Please wait for Terraform to exit or data loss may occur. 2019-12-16T21:46:52.690-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin received interrupt signal, ignoring: count=1 timestamp=2019-12-16T21:46:52.690-0800 Gracefully shutting down... ^C2019-12-16T21:46:52.872-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin received interrupt signal, ignoring: count=2 timestamp=2019-12-16T21:46:52.872-0800 Two interrupts received. Exiting immediately. Note that data loss may have occurred. ^C2019-12-16T21:46:52.999-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin received interrupt signal, ignoring: count=3 timestamp=2019-12-16T21:46:52.999-0800 ^C2019-12-16T21:46:53.168-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin received interrupt signal, ignoring: count=4 timestamp=2019-12-16T21:46:53.168-0800 ^C2019-12-16T21:46:53.707-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: plugin received interrupt signal, ignoring: count=5 timestamp=2019-12-16T21:46:53.707-0800 2019-12-16T21:46:54.466-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:54 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, attempt 3/25, error RequestError: send request failed 2019-12-16T21:46:54.466-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: caused by: Post https://sts.amazonaws.com/: dial tcp: lookup sts.amazonaws.com on 10.6.9.1:53: read udp 10.6.7.24:59322->10.6.9.1:53: i/o timeout 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:54 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 4 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019/12/16 21:46:54 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details: 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: ---[ REQUEST POST-SIGN ]----------------------------- 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: POST / HTTP/1.1 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Host: sts.amazonaws.com 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: User-Agent: aws-sdk-go/1.25.50 (go1.13.4; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.18 (+https://www.terraform.io) 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Length: 43 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=AKIA6NNIRNFUEMUZWFH3/20191217/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=33a8c6144a95c7003ef01950f8402b145c9ed77231aa321e9f9ae98abdfa3d1a 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: X-Amz-Date: 20191217T054654Z 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Accept-Encoding: gzip 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: Action=GetCallerIdentity&Version=2011-06-15 2019-12-16T21:46:54.806-0800 [DEBUG] plugin.terraform-provider-aws_v2.42.0_x4: -----------------------------------------------------

Crash Output

Expected Behavior

terraform plan should have worked

Actual Behavior

Hangs in the authentication loop

Steps to Reproduce

terraform plan

Additional Context

So yes, my creds for the default profile work just fine. mpechner@mpechner16 ecs % aws s3 ls 2012-08-09 23:12:18 www.mikey.com 2012-08-09 23:12:00 www.pcloudservices.com

References

ghost commented 4 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-aws#11328 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-aws#11328.

ghost commented 4 years ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.