AWS Classroomnotes 09/Mar/2023

AWS CLI

  • AWS CLI is a command line interface to interact with AWS
  • AWS CLI can be installed on Windows, Linux or mac
  • To authenticate AWS CLI we need IAM user.
  • Lets generate IAM Credentials (Secret Access Key Id, Secret Access Key)
  • Navigate to IAM in services from console






  • Now execute aws configure

How to work on CLI

  • AWS CLI will have following format
aws <service> <command/action> [--arg1 value1] .. [--argn valuen]
  • Refer Here for aws ec2 commands.
  • Generally commands will have following prefixes
    • to view describe* list*
    • to create create* run*
    • to delete delete* terminate*
    • to modify modify* update*
  • AWS CLI relies on ID’s rather than names in many cases
  • for all the commands --region and --query are supported

Exercise

  • Get all the vpcs from aws cli for a particular region aws ec2 describe-vpcs --region us-west-2
  • Get all the security groups aws ec2 describe-security-groups
  • Get the AMI id of the ubuntu 22.04
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%