github.com/kubernetes-incubator/kube-aws@v0.16.4/docs/cli-reference/aws-credentials.md (about)

     1  # AWS Credentials
     2  
     3  Configure your local workstation with AWS credentials using one of the following methods.
     4  
     5  ## Method 1: `configure` command
     6  
     7  Provide the values of your AWS access and secret keys, and optionally default region and output format:
     8  
     9  ```bash
    10  $ aws configure
    11  AWS Access Key ID [None]: AKID1234567890
    12  AWS Secret Access Key [None]: MY-SECRET-KEY
    13  Default region name [None]: us-west-1
    14  Default output format [None]: text
    15  ```
    16  
    17  ## Method 2: Environment Variables
    18  
    19  Provide AWS credentials to kube-aws by exporting the following environment variables:
    20  
    21  ```bash
    22  export AWS_ACCESS_KEY_ID=AKID1234567890
    23  export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
    24  ```
    25  
    26  Alternatively, you can provide a AWS profile to kube-aws via the `AWS_PROFILE` environment variable such as:
    27  
    28  ```
    29  AWS_PROFILE=my-profile-name kube-aws init ...
    30  ```
    31  
    32  ### Multi-Factor Authentication (MFA)
    33  
    34  If you are using MFA, you need to export the Session Token as well:
    35  
    36  ```bash
    37  export AWS_SESSION_TOKEN=MY-SESSION-TOKEN
    38  ```