Closed hykych closed 3 years ago
having the same issue, only my iam role has S3 full access policy. also, I'm using the instance_profile_credentials. have you managed to get it to work ?
Hey everyone! I've (probably) found the source of this problem. My instance of Fluentd has to use an IAM account and assume a role, similarly to @hykych's setup.
I think the problem lies in the function that authenticates Fluentd against a S3 bucket. When you specify IAM credentials, it skips the part about STS and doesn't assume a role. In my case, AWS S3 was denying access to my bucket.
I've managed to write a patch that fixes the issue for me: https://github.com/jotes/fluent-plugin-s3/commit/7f6d028a65edfb717830fd40b9dcd49c0604d0f3
I'm going to polish it and submit a PR.
I'm pretty sure the AK/SK, role_arn and bucket name are correct. I don't know if there is somethin wrong on the configuration. the configuration look like this:
Get the fluentd logs look like this:
The role policy looks like this: