DevOps Classroom notes 26/Dec/2023

Terraform Datasources

  • Refer Here for official docs
  • Use the security group module created in the past session to create a security group in default vpc.
    • To Get default vpc we have used data source
  • Refer Here for the changes done.

Terraform Backends

  • Refer Here for official docs
  • Backend type defines where the state is stored
  • Backends also needs locking mechanism
  • Some Backends like s3 donot support locking by default.
  • Lets implemenet s3 bucket as backend type Refer Here
    • Created a bucket called as qtdectfstate
    • Create a DynamoDb table qtterraformstate with partition key LockID
    • Now add the backend section to the terraform configuration
    • Refer Here for the changes done
  • Lets implement azurerm backend Refer Here for the changes
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel 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

Exit mobile version
%%footer%%