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

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

  • Lets create a resource group in Azure. For manual steps watch classroom recording
  • To implement in terraform
    • search for resource in documentation
    • google search for resource
  • 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


Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

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
Exit mobile version
%%footer%%