AWS
Amazon SQS : the specified queue does not exist or you do not have access to it
woonizzooni
2020. 12. 30. 16:38
sqs.SQS.GetQueueUr("queue-name") 실행 에러
status code 400
the specified queue does not exist or you do not have access to it
에러 메시지 내용만으로는
1) queue-name이 진짜로 없거나
2) 엑세스 권한이 없거나
이군.
실제 큐가 있었으니 난 엑세스 정책을 변경함. 대충 *로...
그랬더니 해결~
변경 전 | 변경 후 |
{ "Version": "yyyy-mm-dd", "Id": "*****", "Statement": [ { "Sid": "*****", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::{id}:root" }, "Action": "SQS:*", "Resource": "arn:aws:sqs:{region}:{id}:queue-name" } ] } |
{ "Version": "yyyy-mm-dd", "Id": "*****", "Statement": [ { "Sid": "*****", "Effect": "Allow", "Principal": "*", "Action": "sqs:*", "Resource": "arn:aws:sqs:{region}:{id}:queue-name" } ] } |