AWS Authentication
Set up your AWS credentials. For more information, see Configuration and credential file settings.
Make sure you go through this setup first:
Scripts are
bash
AWS CLI
Run aws configure
to configure access key ID and secret access key, default region. Request access key ID and secret access key from you AWS admin.
# To configure the default profile:
aws configure
# To configure a specific named profile, e.g. `swift`:
aws configure --profile swift
us-west-2
for region
- Set json
for output format
IMPORTANT: Disable CLI pager. Otherwise you will not be able to parse AWS CLI json responses:
The files generated by the CLI for a default profile configured with aws configure
looks similar to the following.
[default]
aws_access_key_id=QWERTYUIOPASDFGHJKLZ
aws_secret_access_key=abcdEfgHijklm/NOPQARS/BxcfghGHEXAMPLEKEY
Test:
EC2 Key Pair
Generate EC2 SSH key pair:
Import the key in AWS EC2: