Skip to content

IAM role access to s3 instead of access key #608

Answered by jhuckaby
jeffalgarne asked this question in Q&A
Discussion options

You must be logged in to vote

We use this method at my day job. Your EC2 instances will automatically self-authenticate via the AWS SDK. Just omit all the AWS credentials from your configuration file, and it will default to using EC2 (IAM) auth.

"Storage": {
	"engine": "S3",
	"list_page_size": 50,
	"concurrency": 4,
	"log_event_types": { "get": 1, "put": 1, "head": 1, "delete": 1, "expire_set": 1 },
	
	"AWS": {
		"region": "us-west-1",
		"maxAttempts": 50,
		"connectTimeout": 5000,
		"socketTimeout": 5000
	},
	"S3": {
		"keyPrefix": "",
		"fileExtensions": true,
		"params": {
			"Bucket": "YOUR-S3-BUCKET-NAME-HERE"
		}
	}
},

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jeffalgarne
Comment options

Comment options

You must be logged in to vote
1 reply
@jeffalgarne
Comment options

Answer selected by jeffalgarne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants