AWS sqs limit to ec2 with iam role
问题 I have an SQS to which i want to limit the access of services allowed to send/receive. After reading and trying out I have found that this should be doable by using an Access Policy on the SQS. The policy i wrote: "Version": "2012-10-17", "Id": "arn:aws:sqs:eu-west-1:123456789:HACKsqs03/SQSDefaultPolicy", "Statement": [ { "Sid": "Sid456789", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::123456789:role/HACKiam01" }, "Action": "SQS:ReceiveMessage", "Resource": "arn:aws:sqs:eu-west-1