-
Notifications
You must be signed in to change notification settings - Fork 538
Description
Hi guys,
we are prohibited form using the hardcoded AWS credentials
(that we had been using until now) and trying to make secor work with AWS instance profile or role.
I didn't find any documentation but from the secor.common.properties comment
we infer that we need to leave the credentials blank and set the role name.
`# AWS authentication credentials.
"
Leave empty if using IAM role-based authentication with s3a filesystem.
aws.access.key=
aws.secret.key=
Session token only required if using temporary S3 access keys
aws.session.token=
aws.role=
`
We specified the role name (not sure what to do with aws.session.token) but still get the same error:
2021-02-22 12:55:27,900 [main] (com.pinterest.secor.main.ConsumerMain:87) ERROR Consumer failed java.lang.RuntimeException: Failed to find required configuration option 'aws.access.key'. at com.pinterest.secor.common.SecorConfig.checkProperty(SecorConfig.java:725) at com.pinterest.secor.common.SecorConfig.getString(SecorConfig.java:731) at com.pinterest.secor.common.SecorConfig.getAwsAccessKey(SecorConfig.java:417) at com.pinterest.secor.util.FileUtil.configure(FileUtil.java:75) at com.pinterest.secor.main.ConsumerMain.main(ConsumerMain.java:70)
how to make secor use instance profile or role?
thank you for your help!
David