Matt Gowie (@Gowiem)

Presented By

  • Terraform + AWS Consultant (masterpoint.io)
  • AWS + HashiCorp Certified
  • Use the AWS CLI a good bit in my day to day
  • Recently re-watched all the Star Wars movies

What're we talking about today?

  • Background
  • Basic usage  / config
  • Authentication
  • Advanced usage
  • Tips, tools, and tricks
  • Resources + Q&A

Background on the AWS CLI

  • What does it do?
  • History
  • V2 - Slowly but surely

Basic Usage / Configuration

Authentication The Right Way

Access Keys

Advanced Usage

  1. AWS_PROFILE
  2. --debug
  3. output as json/text/yaml/table
  4. --cli-auto-prompt
  5. Others:
    • wait commands
    • --generate-cli-skeleton
    • --cli-input-json/yaml
    • aws history list / show

Tips and Tricks

  1. Never log into the console again

  2. Use jq + jqplay.org

  3. aws-vault + AWS_PROFILE

  4. AWS Docs Helper​​

  5. Better EC2 SSH

  6. Never docker login
    again

(saml2aws)

amazon-ecr-credential-helper

jq

aws-vault

Takeaways

aws-cli v2

credential_process

gossm

Resources

You can check out all demo scripts, tools, and more on GitHub
@
github.com/Gowiem/aws-cli-deep-dive
(bit.ly/3fe3efL)

​

That's all - Any questions?

Made with Slides.com