Closed krzema12 closed 2 years ago
We'd be grateful to have a confirmation if it's really a bug, or we misuse Terraform. Asked the community for help: https://discuss.hashicorp.com/t/sqs-queue-cannot-be-created-due-to-null-request-parameters/35652
It turned out the issue was related to AWS policy. Resolving.
For future reference, the Resource
part was incorrect - it missed the stars in the places where region and account ID belong: arn:aws:sqs:*:*:dynatrace-repo-*
.
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.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Debug output contains business-sensitive data. I'm attaching some logs from the moment of queue creation: https://gist.github.com/krzema12/33206859ed0c62e62a065d36172b2223
Please let me know if you need anything more.
Panic Output
No panic (I guess).
Expected Behavior
The queue should be created successfully, and
requestParameters
be non-null.Actual Behavior
I get
AccessDenied
:Normally I'd assume there's something wrong with my IAM policy, but I see such request in AWS CloudTrail which contains null
requestParameters
:Comparing to a manual queue creation via AWS console where this field does have some values like queue name, here we have nothing. I assume that AWS returns
AccessDenied
because it doesn't know the SQS queue name which should be in request parameters, so preemptively says there's no access.Steps to Reproduce
terraform apply
Important Factoids
None.
References
None.