SQS Queue Access Policy from s3 bucket hands on
firstly you must create s3 bucket and sqs queue and then you can connection from s3 and sqs queue but this is very important sqs acces policy confiquration i will show you how can do this
please also ensure "Encryption " is set to " disabled" for sqs queue

create bucket and create event notification in s3 bucket


BUT HAS A ERROR THIS ERROR OCCUR ACCORDING SQS QUEUE ACCESS POLICY YOU MUST CHANGE ACCESS POLICY IN SQS
use this documentation
{
"Version": "2012-10-17",
"Id": "example-ID",
"Statement": [
{
"Sid": "example-statement-ID",
"Effect": "Allow",
"Principal": {
"Service": "s3.amazonaws.com"
},
"Action": [
"SQS:SendMessage"
],
"Resource": "SQS-queue-ARN",
"Condition": {
"ArnLike": {
"aws:SourceArn": "arn:aws:s3:*:*:awsexamplebucket1"
},
"StringEquals": {
"aws:SourceAccount": "bucket-owner-account-id"
}
}
}
]
}
configure like this
{
"Version": "2012-10-17",
"Id": "example-ID",
"Statement": [
{
"Sid": "example-statement-ID",
"Effect": "Allow",
"Principal": {
"Service": "s3.amazonaws.com"
},
"Action": "SQS:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:945602354242:EventFromS3",
"Condition": {
"StringEquals": {
"aws:SourceAccount": "945602354242"
},
"ArnLike": {
"aws:SourceArn": "arn:aws:s3:*:*:sako-sqs-queue-access-policy-s3"
}
}
}
]
}


Last updated