From 6f7856665ae162ffd5b8140f35d4b0eaf8769803 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Wed, 15 Feb 2017 17:35:05 -0800 Subject: [PATCH] Add info about fetching credentials from IAM role Fixes https://github.com/docker/distribution/issues/741 --- docs/storage-drivers/s3.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/storage-drivers/s3.md b/docs/storage-drivers/s3.md index 7e00e878e..16b5279f0 100644 --- a/docs/storage-drivers/s3.md +++ b/docs/storage-drivers/s3.md @@ -20,10 +20,10 @@ Amazon S3 or S3 compatible services for object storage. accesskey - yes + no - Your AWS Access Key. + Your AWS Access Key. If you use [IAM roles](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html), omit to fetch temporary credentials from IAM. @@ -31,10 +31,10 @@ Amazon S3 or S3 compatible services for object storage. secretkey - yes + no - Your AWS Secret Key. + Your AWS Secret Key. If you use [IAM roles](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html), omit to fetch temporary credentials from IAM. @@ -160,7 +160,10 @@ Amazon S3 or S3 compatible services for object storage. `secretkey`: Your aws secret key. -**Note** You can provide empty strings for your access and secret keys if you plan on running the driver on an ec2 instance and will handle authentication with the instance's credentials. +> **Note** You can provide empty strings for your access and secret keys to run the driver +> on an ec2 instance and will handle authentication with the instance's credentials. If you +> use [IAM roles](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html), +> omit these keys to fetch temporary credentials from IAM. `region`: The name of the aws region in which you would like to store objects (for example `us-east-1`). For a list of regions, you can look at http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html