Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Terraform plan/apply stuck in loop when getting access denied #16458

Closed
rhyspowell opened this issue Oct 26, 2017 · 2 comments
Closed

Terraform plan/apply stuck in loop when getting access denied #16458

rhyspowell opened this issue Oct 26, 2017 · 2 comments

Comments

@rhyspowell
Copy link

rhyspowell commented Oct 26, 2017

While the cause of the access denied is within our configuration, there is no indication that there is an issue with getting access. On an original apply the process was still running after an hour. Now, when running plan, it appears to freeze even ctrl+c not allowing the program to stop

Terraform version

../../terraform -v
2017/10/26 11:44:21 [INFO] Terraform version: 0.10.7  5f9bf20ba6aaa174600109a95cc77f7788d4959b+CHANGES
2017/10/26 11:44:21 [INFO] Go runtime version: go1.9
2017/10/26 11:44:21 [INFO] CLI args: []string{"/opt/terraform/terraform", "-v"}
2017/10/26 11:44:21 [DEBUG] Attempting to open CLI config file: /home/ec2-user/.terraformrc
2017/10/26 11:44:21 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/10/26 11:44:21 [DEBUG] CLI Config is main.Config{Providers:map[string]string{}, Provisioners:map[string]string{}, DisableCheckpoint:false, DisableCheckpointSignature:false, PluginCacheDir:""}
2017/10/26 11:44:21 [INFO] CLI command args: []string{"version", "-v"}
2017/10/26 11:44:21 [DEBUG] plugin: waiting for all plugin processes to complete...
Terraform v0.10.7

Error being reported

2017-10-26T11:42:20.726Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: X-Amz-Target: AnyScaleFrontendService.DescribeScalingPolicies
2017-10-26T11:42:20.726Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: Accept-Encoding: gzip
2017-10-26T11:42:20.726Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4:
2017-10-26T11:42:20.726Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: -----------------------------------------------------
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: 2017/10/26 11:42:20 [DEBUG] [aws-sdk-go] DEBUG: Response autoscaling/DescribeScalingPolicies Details:
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: ---[ RESPONSE ]--------------------------------------
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: HTTP/1.1 400 Bad Request
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: Connection: close
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: Content-Length: 565
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: Content-Type: application/x-amz-json-1.1
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: Date: Thu, 26 Oct 2017 11:43:26 GMT
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: X-Amzn-Requestid: e1033176-ba42-11e7-ac0a-71a73ccd5044
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4:
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4:
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: -----------------------------------------------------
2017-10-26T11:42:20.834Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: 2017/10/26 11:42:20 [DEBUG] [aws-sdk-go] {"__type":"FailedResourceAccessException","Message":"Unable to retrieve alarms for scalin
g policy arn:aws:autoscaling:us-west-2:XXXXXXXXX:scalingPolicy:3443302c-9b6c-4b77-94b2-eca72bb7dfda:resource/dynamodb/table/name_policies:policyName/table/name_policies due to reason: U
ser: arn:aws:sts::XXXXXXXXX:assumed-role/DynamoDBAutoscale/AutoScaling-DescribeAlarms is not authorized to perform: cloudwatch:DescribeAlarms (Service: AmazonCloudWatch; Status Code: 403; Error Cod
e: AccessDenied; Request ID: e10d9132-ba42-11e7-8a29-e1025d574ea4)"}
2017/10/26 11:42:26 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"
2017/10/26 11:42:29 [TRACE] dag/walk: vertex "provider.aws (close)", waiting for: "module.config_api.aws_appautoscaling_policy.dynamodb_write_policy"
2017/10/26 11:42:31 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"
2017/10/26 11:42:34 [TRACE] dag/walk: vertex "provider.aws (close)", waiting for: "module.config_api.aws_appautoscaling_policy.dynamodb_write_policy"
2017/10/26 11:42:36 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"
2017/10/26 11:42:39 [TRACE] dag/walk: vertex "provider.aws (close)", waiting for: "module.config_api.aws_appautoscaling_policy.dynamodb_write_policy"
2017/10/26 11:42:41 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"
2017/10/26 11:42:44 [TRACE] dag/walk: vertex "provider.aws (close)", waiting for: "module.config_api.aws_appautoscaling_policy.dynamodb_write_policy"
2017/10/26 11:42:46 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"
2017/10/26 11:42:49 [TRACE] dag/walk: vertex "provider.aws (close)", waiting for: "module.config_api.aws_appautoscaling_policy.dynamodb_write_policy"
2017/10/26 11:42:51 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"

When ctrl+c is pressed

2017/10/26 11:43:19 [TRACE] dag/walk: vertex "provider.aws (close)", waiting for: "module.config_api.aws_appautoscaling_policy.dynamodb_write_policy"
2017/10/26 11:43:21 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"
^C2017-10-26T11:43:23.157Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: 2017/10/26 11:43:23 [DEBUG] plugin: received interrupt signal (count: 20). Ignoring.
2017-10-26T11:43:23.158Z [DEBUG] plugin.terraform: plugin received interrupt signal, ignoring: timestamp=2017-10-26T11:43:23.157Z count=20
^C2017-10-26T11:43:23.775Z [DEBUG] plugin.terraform: plugin received interrupt signal, ignoring: timestamp=2017-10-26T11:43:23.775Z count=21
2017-10-26T11:43:23.775Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: 2017/10/26 11:43:23 [DEBUG] plugin: received interrupt signal (count: 21). Ignoring.
^C2017-10-26T11:43:24.101Z [DEBUG] plugin.terraform: plugin received interrupt signal, ignoring: timestamp=2017-10-26T11:43:24.101Z count=22
2017-10-26T11:43:24.102Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: 2017/10/26 11:43:24 [DEBUG] plugin: received interrupt signal (count: 22). Ignoring.
^C2017-10-26T11:43:24.357Z [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: 2017/10/26 11:43:24 [DEBUG] plugin: received interrupt signal (count: 23). Ignoring.
2017-10-26T11:43:24.358Z [DEBUG] plugin.terraform: plugin received interrupt signal, ignoring: timestamp=2017-10-26T11:43:24.357Z count=23
2017/10/26 11:43:24 [TRACE] dag/walk: vertex "provider.aws (close)", waiting for: "module.config_api.aws_appautoscaling_policy.dynamodb_write_policy"
2017/10/26 11:43:26 [TRACE] dag/walk: vertex "root", waiting for: "provider.aws (close)"
@hashibot
Copy link
Contributor

This issue has been automatically migrated to hashicorp/terraform-provider-aws#2068 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to this issue and let us know.

@ghost
Copy link

ghost commented Apr 6, 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 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.

@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants