Closed N4R3N closed 7 years ago
Found the actual culprit, it is not an issue with Terraform. The role was mapped wrongly to a bucket policy. It is a very dubious error from AWS. I am still baffled as to why it is 403 and not a 400. Anyway it is not an issue so closing it.
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.
Provider
AWS
Terraform Version
v0.9.8
tf file
Expected Behavior
Create ETS pipeline while using the keys of a user with admin privileges.
Actual Behavior
aws_elastictranscoder_pipeline.hls: Error creating Elastic Transcoder Pipeline: AccessDeniedException: User: arn:aws:iam::12345678901:user/abcd is not authorized to access this resource status code: 403, request id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Steps to Reproduce
terraform apply
Important Factoids
Using the same user keys I can create the pipeline through AWS CLI, but Terraform v0.9.8 fails creating the pipeline throwing a 403 Using S3 as the remote backend with a state file for VPC and its resources and a remote state file for the buckets and iam resources All other resources viz. SNS, IAM role got created in the same
terraform apply
but creating the transcode pipeline failedDebug logs
Something fishy with the post for
elastictranscoder/CreatePipeline
and the debug log shows it as 2017/06/22 16:17:47 [DEBUG] plugin: terraform: POST /2012-09-25/pipelines HTTP/1.1