DevOps Classroom notes 15/Dec/2023

Terraform contd

Configuring Terraform to use a specific cloud account

  • AWS:
    • Install AWS CLI
    • configure AWS CLI
    • Terraform aws provider by default uses AWS CLI credential configuration

AWS and Azure CLI Configuration

  • Watch the classroom video for screens
  • Azure:

    • Install Azure CLI
    • Configure Azure CLI to connect to your account
    • Terraform azurerm provider by default uses Azure CLI credential configuration

Preview

Hello Terraform AWS

  • Create a new folder and create any file with extension .tf
  • Refer Here for the provider documentation and Refer Here for arguments
  • Providers are not part of terraform installation. To download the provider into your local system
cd <folder>
terraform init

Hello Terraform Azure

  • Create a new folder and create any file with extension .tf
  • Refer Here for arguments that can be used in provider block
  • Refer Here for the changes done
  • Providers are not part of terraform installation. To download the provider into your local system
cd <folder>
terraform init

Preview

  • Lets create a resource group in Azure. For manual steps watch classroom recording
  • To implement in terraform
    • search for resource in documentation
      Preview
    • google search for resource
      Preview
  • Resource in Terraform Refer Here
resource "<type>" "<internal-name>" {

}
  • After adding resource, execute validate and fmt
  • Refer Here for the changes done
  • Now apply the changes
    Preview
    Preview
    Preview

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
Plugin for Social Media by Acurax Wordpress Design Studio

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