cherweg / logstash-input-s3-sns-sqs

logstash input downloading files from s3 Bucket by OjectKey from SNS/SQS
Other
29 stars 35 forks source link

Use an IAM User for credentials #90

Open jasoncal108 opened 3 weeks ago

jasoncal108 commented 3 weeks ago

In the documentation there's only mention of IAM Role for credentials. Is there a possibility to use an IAM User?

   s3_options_by_bucket       => [
        { bucket_name => "logs-bucket-222222222222-.*"
          credentials => { role => "arn:aws:iam::222222222222:role/logging-role" }
        },
        { bucket_name => "logs-bucket-333333333333-eu-central-1"
          credentials => { role => "arn:aws:iam::333333333333:role/logging-role" }
          folders => [
          { key => ".*/waflogs.*"
            codec => "json_stream"
            type => "waflogs"},
          { key => ".*/2020"
            codec => "json_lines"
            type => "reports"}]
        }
    ]