AWS CLI Setup
The AWS Command Line Interface lets you interact with AWS services from your terminal.
Installation
- mise
- Homebrew
- Manual
mise use -g aws-cli@latest
Or add to your .mise.toml:
[tools]
aws-cli = "latest"
brew install awscli
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
rm AWSCLIV2.pkg
Verify Installation
aws --version
Configure AWS Credentials
We use AWS SSO for authentication. Request SSO access from your team lead, then configure:
aws configure sso
Enter when prompted:
- SSO session name:
odyssey(or your preferred name) - SSO start URL: [provided by team lead]
- SSO region:
ap-southeast-2 - SSO registration scopes:
sso:account:access(default) - CLI default client region:
ap-southeast-2 - CLI default output format:
json - CLI profile name:
default(or your preferred profile name)
This will open your browser to complete the SSO authentication.
Verify Configuration
aws sts get-caller-identity --profile default
You should see your AWS account details.
tip
SSO sessions expire after a period of time. To refresh your credentials, run:
aws sso login --profile default
Common Commands
aws s3 ls # List S3 buckets
aws ec2 describe-instances # List EC2 instances
aws lambda list-functions # List Lambda functions
Next: Docker Setup