DevOps Classroomnotes 18/Oct/2022

Solution to Exercise

  • One approach is to write six subnet resources
  • Better way could be if we can use some kind of looping
  • If there is a way to write loops it would simplify the resource creation.
  • We can create multiple resources by using count meta-data Refer Here
resource "resource-type" "name-of-resource" {
    count = <number-of-resources>
    arg1 = val1
    ...
    argn = valn
}
  • Example
resource "aws_vpc" "my_vpc" {
    count = 0
    cidr_block = "192.168.0.0/16"

}
  • We can also control the creation of resources based on conditional expressions Refer Here
  • We should also understand deployment strategies
    • red-green/blue-green
    • canary deployment

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