Skip to content

Commit

Permalink
Merge pull request #3662 from choang/export-aws
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

simplified AWS tutorial instruction to export AWS env variables

Since we already run `aws configure`, we can simply use the AWS CLI to fetch the key and secret instead of relying on the user to replace the value in the templated command.
  • Loading branch information
Kubernetes Submit Queue committed Oct 18, 2017
2 parents 38952a1 + feaf7d6 commit 7b09191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ aws configure # Use your new access and secret key here
aws iam list-users # you should see a list of all your IAM users here

# Because "aws configure" doesn't export these vars for kops to use, we export them now
export AWS_ACCESS_KEY_ID=<access key>
export AWS_SECRET_ACCESS_KEY=<secret key>
export AWS_ACCESS_KEY_ID=`aws configure get aws_access_key_id`
export AWS_SECRET_ACCESS_KEY=`aws configure get aws_secret_access_key`
```

## Configure DNS
Expand Down

0 comments on commit 7b09191

Please sign in to comment.