Skip to content

Configure: AWS

Overview

Cloud Provider: AWS

Configuration

Install awscli

Validate resources

aws --version
# aws-cli/2.0.30 Python/3.7.4 Darwin/24.5.0 botocore/2.0.0dev34

Create reference system account through UI manual

Target: provision resources in the repository

Propose syntax: ref-sys-bao-truong

Process: (1) Create user (2) Create access key with remember key

Set up default region of AWS

(1) Configure at the runtime

export AWS_DEFAULT_REGION=ap-southeast-1

(2) Set up at the shell profile (~/.zprofile)

echo "export AWS_DEFAULT_REGION=ap-southeast-1" >> ~/.zprofile

Configure throguh profile with registed name like admin

Documentation: https://docs.aws.amazon.com/cli/v1/userguide/cli-chap-configure.html

(1) Configure with target profile name

aws configure --profile admin
# AWS Access Key ID [None]: xxxxxxxxxxxxxxxxxxxx
# AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Default region name [None]: ap-southeast-1
# Default output format [None]: text

(2) Validate profiles is exists

aws configure list-profiles | grep admin