DevOps Classroom Series – 06/Mar/2021

Terraform contd..

  • Lets create 3 security groups
    • web security group: this should allow communications from anywhere (0.0.0.0/0) on tcp port 22 and 80
    • app security group: this should allow all the communications within vpc range to port 8080 and 22
    • db security group: this should allow all the communications with in vpc range to port 3306
  • Manual creation Preview
  • Terraform aws provider has a resource for vpc security group Refer Here for documentation Preview
  • Now make changes in terraform template to create a websecurity group Refer Here and apply the template Preview
  • Now lets create app security group Refer Here for the changeset and apply the terraform template to create app security group Preview
  • Now lets create a db security group Refer Here for the changes Preview

Exercise:

  • Create a linux vm on any cloud (ubuntu )
  • Install terraform
  • Install aws cli
  • Configure aws cli to use IAM Credentials
  • initialize terraform and clone the git repo Refer Here
git clone https://github.com/asquarezone/TerraformZone.git

Next Steps

  • Creating an ec2 instances in app and web subnet
  • Understanding taint and untaint
  • Creating rds instance in db subnets
  • Creating similar architecture in Azure
  • Shared State/Remote Backends
  • Terraform workspaces
  • Packer

Leave a Reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube