AWS Classroomnotes 09/Aug/2023

Cloudformation contd

  • Architecture to be realized
    Preview
  • Create a vpc

    • Manual steps: refer classroom video
  • Add subnets to existing vpc

Cloudformation

  • Setup Visual studio code
    • Create an empty folder called ntier and open this in visual studio
    • Ensure the cloudformation extension is installed
      Preview
  • Refer Here for cloudformation anatomy
  • since we need to create vpc
    Preview
  • Refer Here for the template created.
  • Now lets deploy the template from AWS Console in Cloudformation service
    Preview
    Preview
    Preview
  • Note: By default cloudformation will create all the resources and if any error occurs it doesn’t create anything
  • Refer Here for the changes added to create subnets and now update the cloudformation stack
    Preview
  • Reference function in aws cloudformation allows us to dynamically get information from other resources created in template Refer Here
  • Refer Here for the usage of reference function
  • Exercise:

    • Create a vpc with name tag primary and 6 subnets
      • web1:
        • az: ap-south-1a
        • cidr: 10.10.0.0/24
      • web2
        • az: ap-south-1b
        • cidr: 10.10.1.0/24
      • app1
        • az: ap-south-1a
        • cidr: 10.10.2.0/24
      • app2
        • az: ap-south-1b
        • cidr: 10.10.3.0/24
      • db1
        • az: ap-south-1a
        • cidr: 10.10.4.0/24
      • db2
        • az: ap-south-1b
        • cidr: 10.10.5.0/24

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a 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 Wordpress Development 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