Coder Social home page Coder Social logo

Comments (4)

ijin avatar ijin commented on July 23, 2024 3

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.

gaia avatar gaia commented on July 23, 2024

thanks!

from fluent-plugin-s3.

ijin avatar ijin commented on July 23, 2024

Oops, this plugin inherits from TimeSlicedOutput, which overrides the default buffer_chunk_limit to 256MB.

from fluent-plugin-s3.

bryanlarsen avatar bryanlarsen commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.