1.1.2 - AWS Region
As with Microsoft, Amazon has similarly done a great job releasing a fully functional CLI tool, that will work on multiple platforms. AWS has also just recently announced their own version of CloudShell! The AWS cloudshell removes the requirement to install the CLI locally but if you prefer the full steps to install AWS CLI (v2) on any platform can be found here. With that said, on the latest versions of Ubuntu (and likely other distros), AWS CLI (v1) is available in the package manager.
AWS Cloud Shell
Search for Cloudshell in the AWS console or navigate directly to the CloudShell.
Local CLI Initial Login
To do the initial configuration of a local CLI installation, you can issue the command:
aws configure
This will then prompt you to enter the following information:
AWS Access Key ID [None]: ****************J2OR
AWS Secret Access Key [None]: ****************ArK6
Default region name [None]: eu-west-2
Default output format [None]: table
If you would like to interrogate the configuration, you can issue the following two commands:
cat ~/.aws/credentials
[default]
aws_access_key_id = ****************J2OR
aws_secret_access_key = ****************ArK6
cat ~/.aws/config
[default]
region = eu-west-2
output = table
Identifying Regions
Let's just dive in and get started
aws ec2 describe-regions --region-names --all-regions
This will return:
---------------------------------------------------------------------------------
| DescribeRegions |
+-------------------------------------------------------------------------------+
|| Regions ||
|+-----------------------------------+-----------------------+-----------------+|
|| Endpoint | OptInStatus | RegionName ||
|+-----------------------------------+-----------------------+-----------------+|
|| ec2.af-south-1.amazonaws.com | not-opted-in | af-south-1 ||
|| ec2.eu-north-1.amazonaws.com | opt-in-not-required | eu-north-1 ||
|| ec2.ap-south-1.amazonaws.com | opt-in-not-required | ap-south-1 ||
|| ec2.eu-west-3.amazonaws.com | opt-in-not-required | eu-west-3 ||
|| ec2.eu-west-2.amazonaws.com | opt-in-not-required | eu-west-2 ||
|| ec2.eu-south-1.amazonaws.com | not-opted-in | eu-south-1 ||
|| ec2.eu-west-1.amazonaws.com | opt-in-not-required | eu-west-1 ||
|| ec2.ap-northeast-2.amazonaws.com | opt-in-not-required | ap-northeast-2 ||
|| ec2.me-south-1.amazonaws.com | not-opted-in | me-south-1 ||
|| ec2.ap-northeast-1.amazonaws.com | opt-in-not-required | ap-northeast-1 ||
|| ec2.sa-east-1.amazonaws.com | opt-in-not-required | sa-east-1 ||
|| ec2.ca-central-1.amazonaws.com | opt-in-not-required | ca-central-1 ||
|| ec2.ap-east-1.amazonaws.com | not-opted-in | ap-east-1 ||
|| ec2.ap-southeast-1.amazonaws.com | opt-in-not-required | ap-southeast-1 ||
|| ec2.ap-southeast-2.amazonaws.com | opt-in-not-required | ap-southeast-2 ||
|| ec2.eu-central-1.amazonaws.com | opt-in-not-required | eu-central-1 ||
|| ec2.us-east-1.amazonaws.com | opt-in-not-required | us-east-1 ||
|| ec2.us-east-2.amazonaws.com | opt-in-not-required | us-east-2 ||
|| ec2.us-west-1.amazonaws.com | opt-in-not-required | us-west-1 ||
|| ec2.us-west-2.amazonaws.com | opt-in-not-required | us-west-2 ||
|+-----------------------------------+-----------------------+-----------------+|
Now you have your region name, you can add it to the Blueprint. To do that, see here.
Last updated
Was this helpful?