Comments (4)
Hi, the absolute minimal policy would look like this:
{
"Version": "2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:ListBucket"
],
"Resource":"arn:aws:s3:::myfluentdbucket"
},
{
"Effect":"Allow",
"Action":[
"s3:PutObject"
],
"Resource":"arn:aws:s3:::myfluentdbucket/*"
}
]
}
provided you have 1. independently created "myfluentdbucket" beforehand and have auto_create_bucket
set to false
and 2. check_apikey_on_start
set to false
. Otherwise, you will need "s3:CreateBucket" and "s3:ListBucketVersions" respectively.
You might need other policies if you expect each file written to be greater than 16MB (i.e. by changing the buffer_chunk_limit
parameter [default 8MB] ) since that is the default threshold that the aws-sdk uses to switch to multipart uploading.
Here are relevant permissions on multipart upload actions:
http://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
Briefly looking through the aws-sdk code, it seems only "s3:PutObject" and "s3:AbortMultipartUpload" were sufficient in this case, although I'd recommend you to test it out.
from fluent-plugin-s3.
thanks!
from fluent-plugin-s3.
Oops, this plugin inherits from TimeSlicedOutput, which overrides the default buffer_chunk_limit
to 256MB.
from fluent-plugin-s3.
For the current version you also have to set check_object false
or give the GET_OBJECT permission.
from fluent-plugin-s3.
Related Issues (20)
- Add support for AWS IAM Roles Anywhere HOT 3
- Add parameter to set HTTP "Accept-Encoding" header HOT 2
- Allow to ignore events that point to a file on s3 of size 0 HOT 3
- Only last event of the windows logs is sent to S3 with redundant entries in the file
- Add debug log after s3 put HOT 1
- gem dependency conflict HOT 2
- S3 output filling up /tmp HOT 2
- Invalid Credential Will Crash the Fluentd Worker HOT 1
- When match_regexp not matched, message is discarded HOT 1
- s3 input is not separating log entries HOT 2
- td-agent is throwing error error_class=Fluent::ConfigError error="'columnify' utility must be in PATH for -h compression" HOT 2
- td-agent is able to run columnify -h yet td-agent throwing err
- fluent-plugin-s3 doesn't seem to work with AWS short-term credentials
- Plugin not working on basic implementation HOT 1
- enable multiline parsing
- instance_profile_credentials are not allowing uploads to my S3 bucket
- Append file support HOT 3
- s3_object_key_format without index overwrites (not append) log files HOT 10
- Too many open files HOT 1
- SSE-C Encryption
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-plugin-s3.