DevOps Classroomnotes 25/Mar/2023

Terraform Contd..

Terms

  • Configuration Drift:
    • Difference between actual and desired state
    • In Terraform plan represents drift

Creating Database in Azure using Terraform

  • We have added the resource to create sql server on azure and applied the template. Refer Here for the changes
    Preview
  • Terraform graph command creates dependency graphs in dot format which can be visualized in Graphviz. Refer Here for the command
    Preview

Create VMs in Azure using terraform

  • Overview of our goal
    Preview
  • Refer Here for manual steps
  • Refer Here for the changes.
    Preview
  • We have created a vm without public ip and database connectivity between vm and sql is using internet. We will work on this actvities in next session
  • Improvements:
    • Try to parametrize using variables and avoid creating too many variables by using object structure. Refer Here for changes

Terraform Datasources

  • Till now we have used terraform to create resources in provider. Terraform can also query the provider for various information
  • Refer Here for official docs

Terraform outputs

  • Terraform output is result which would be shown in the stdout
  • Refer Here for official docs
  • Lets display private ip address and database endpoint as outputs Refer Here for the changes done
    Preview
    Preview

Ntier in AWS

Making subnets public and private

  • Overview
    Preview
  • Creating internet gateway and attach to vpc. Refer Here for resource
  • Refer Here for the changes done
    Preview
  • Now lets create two route tables

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 Responsive Web Designing 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