Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Example Config for S3 sink #123

Open
tanujd11 opened this issue Dec 23, 2020 · 3 comments
Open

Example Config for S3 sink #123

tanujd11 opened this issue Dec 23, 2020 · 3 comments

Comments

@tanujd11
Copy link

Hey, I was looking at this project looks cool. Can I get an example of config.json for S3 as it will be very helpful. Thanks

@alok87
Copy link
Contributor

alok87 commented Dec 24, 2020

apiVersion: v1
data:
  config.json: |-
    {
        "sink": "s3sink",
        "s3SinkAccessKeyID": "sample",
        "s3SinkSecretAccessKey": "sample",
        "s3SinkRegion": "ap-south-1",
        "s3SinkBucket": "bucket",
        "s3SinkBucketDir": "events",
        "s3SinkBufferSize": 1500,
        "s3SinkDiscardMessages": true,
        "s3SinkOutputFormat": "flatjson",
        "s3SinkUploadInterval": 120
    }
kind: ConfigMap
metadata:
  name: eventrouter-cm
  namespace: kube-system

I am using this.

@tanujd11
Copy link
Author

@alok87 do this support authorization using instance profile or service account?

@alok87
Copy link
Contributor

alok87 commented Dec 24, 2020

Talking to s3:
Based on this https://github.com/heptiolabs/eventrouter/blob/master/sinks/s3sink.go#L60 it requires AWS ACCESS credential to be passed into the pod (as specified above using config maps)

From what looks like it won't work by assuming node roles. Please try out and tell.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants