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?

AWS CLI Deep Dive

By Matt Gowie

AWS CLI Deep Dive

Come join us to take a deeper look at the AWS CLI and how you can optimize your workflow when working with this powerful tool. We won’t touch on specific AWS services or commands, but rather take a closer view into specific areas like configuration, authentication, essential supplementary tools, and some crafty shell-fu. The result will be you walking away with enhanced productivity when interacting with AWS from the command line!

  • 379