Before you can deploy any resources, make sure your AWS CLI is set up with valid credentials.
For a detailed walkthrough, see Lab 000011. Getting Started with the AWS CLI.
aws configure
The CLI will ask for your Access Key ID, Secret Access Key, default region, and output format. Some example for setting up: Create an AWS Account: If you don’t already have an AWS account, sign up here. An AWS account is required to complete this exercise.
Here’s how to create an IAM user and set up your AWS CLI:
Still within the IAM service, create a new IAM user.
Select the IAM user you created.
aws configure
AWS Access Key ID [None]: YOUR_ACCESS_KEY_ID
AWS Secret Access Key [None]: YOUR_SECRET_ACCESS_KEY
Default region name [None]: us-east-1
Default output format [None]: json
Remember to set region to us-east-1
or to these region (since Amplify and Rekognition Liveness is only available in these regions only)
Region Name | Region Code |
---|---|
US East (N. Virginia) | us-east-1 |
US West (Oregon) | us-west-2 |
Europe (Ireland) | eu-west-1 |
Asia Pacific (Tokyo) | ap-northeast-1 |
Asia Pacific (Mumbai) | ap-south-1 |
If you prefer to work with a named profile (which has one of those region above), set it as your active profile:
export AWS_PROFILE=my-profile
$env:AWS_PROFILE = "my-profile"
set AWS_PROFILE=my-profile