Logstash in AWS container with S3 output not working unless S3 bucket is public?

So, im hosting ELK in AWS, but it seems my Logstash container wont forward logs to my S3 storage unit even despite me giving it the right permissions. Could this be something to do with Logstash?

I have role with access permission to PutObject to a bucket, but it doesnt work.

Here is the pastebin of my CloudFormation script https://pastebin.com/FsjhVsxc This works.

However with this setup the bucket is full Public, but when i make it private the Fargate container no longer can ship logs to the S3 bucket even though it has a role with permission.

Am i doing something wrong?
Or could it be my Logstash container Image does not utilize its role properly?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.