DevOps Classroom Series – 19/Dec/2021

Activity 2 AWS Infra Contd

  • Now we need to create a ec2 instance (virtual machine), So lets try to understand how to do it manually

  • Refer Here to understand create the ec2 instance

  • While creating ec2 instance, we provide following inputs

    • ami-id
    • network settings:
      • vpc-id
      • subnet-id
      • public ip => Enabled/Disabled
    • Tags
    • Security Group
    • Key-Pair
  • Lets try to create a security group for web servers

    • Allow all traffic on SSH (TCP=>22), HTTP(TCP=>80), HTTPS(TCP=>443)
    • Refer Here for the documentation.
    • Refer Here for the changes to be done
    • After applying the changes view the security group in AWS Refer Here
  • Lets also use locals to represent the values which we are using in terraform configuration but we dont expect these values as user inputs Refer Here

  • Lets create a security group for database => Postgres (5432)

    • Lets open Postgres only to ec2 instance in our vpc
    • Refer Here for the changes done.
    • The result

Leave a ReplyCancel reply

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

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding 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%%