I have an s3 bucket saving logs constantly on json.gz format, I´m trying to pull out those logs to an elastic agent host on a GCP cluster using SQS.
My configuration for the SQS is a default one, also I´m using the FIFO type. The Access policy configuration I used:
{
"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"
}
}
}
]
}
The elastic agent is using the sqs url as reference to pull out those logs from the s3 bucket. I don´t know why the sqs isn´t working. Also It´s my first time using aws so I´m really lost.