SQS Access Policy

Access policy for SQS

Cross-account access

"Statement": [{
	"Principal": {
		"AWS": ["111222333"],
		"Action": ["sqs:ReceiveMessage"],
		"Resource": "arn:aws:sqs:us-east-1:333444555:queue"
	}
}]

Allow account 111222333 to access queue from account 333444555

Publish S3 Event Notifications to SQS

Pasted image 20221006113900.png

"Statement": [{
	"condition": {
		"ArnLike": {
			"aws:SourceArn": "arn:aws:s3:*:*:bucket1",
			"StringEquals": {"aws:SourceAccount": "bucket_1_owner_id"}
		}
	}
}]

Check if the source bucket is correct