DevOps Classroomnotes 01/Jun/2022

Terraform with AWS Contd

  • The necessary inputs for creating an ec2 instance are
    • AMI id
    • instance type
    • security group
    • subnet-id
    • name tag
    • key pair
  • Lets get started with key pair.
  • Ensure you have a key pair created with ssh-keygen
  • Used a object to declare the necessary information of the variable for server creation and add the ec2 instance Refer Here for the changeset and execute terraform apply
  • Now lets create 2 web servers Refer Here for the changes

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner