- Install AWS CLI
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -b ~/bin/aws
aws --version
- Configure AWS, Availability Zone: eu-west-2
aws configure
# enter availability zone, access key id, secret key, keep output format default
- Install AWS Vault.
brew install --cask aws-vault
aws-vault add leo.Leung # Enter your access key id, secret key
# List credentials
aws-vault list
# Login aws console automatically
aws-vault login leo.leung
# execute command
aws-vault exec leo.leung -- aws s3 ls
# rotate keys
aws-vault rotate leo.leung --no-session
- Install Jenkins.
brew install jenkins-lts
- Download Terraform.
brew tap hashicorp/tap
brew install hashicorp/tap/terraform