AWS Classroom Series – 30/Nov/2020

AWS CLI

  • AWS can be accessed through API from
    • Console
    • CLI
    • SDK
  • In this series lets try to create ec2 instances with aws cli
  • Ensure aws cli is installed
  • Create an User for CLI Login
  • AWS CLI Commands:
    • Best way to work with aws cli is to explore commands by using search engine
    • Lets assume you want to create rds database instance from cli
    • If you want to create s3 buckets from cli
    • Now lets try to create ec2 instance using cli
    • To Create ec2 instance we need
      • AMI id
      • instance type
      • security group id
      • key value pair
    • Lets try to create ubuntu 20.04 in mumbai region
    • Now lets search for the command to create ec2 instance
    aws ec2 run-instances 
    
    • Refer Here for the changeset
    • Exercise -1 : Create a Redhat 8 instance using aws cli
    • Exercise -2 : Create a Windows 2019 instance using aws cli
    • Exercise -3 : delete all the ec2 instances created above

Next Steps:

  1. How to create security group from aws cli
  2. How to create a key pair from aws cli
  3. how to create and use cli to create, view and delete ec2 instances

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%%