mirror of https://github.com/kubernetes/kops.git
Merge pull request #3662 from choang/export-aws
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.
This commit is contained in:
commit
7b0919127b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue