Set up AWS for OSX


Steps

  1. Install AWS CLI
  2. 
    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
    
  3. Configure AWS, Availability Zone: eu-west-2
  4. 
    aws configure 
    # enter availability zone, access key id, secret key, keep output format default
            
  5. Install AWS Vault.
  6. 
    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
            
  7. Install Jenkins.
  8. 
    brew install jenkins-lts    
            
  9. Download Terraform.
  10. 
    brew tap hashicorp/tap
    brew install hashicorp/tap/terraform
            
  11. 
                
            

References


  1. Install, Update, and Uninstall the AWS CLI version 1 on macOS
  2. macOS Installers for Jenkins LTS
  3. Download Terraform