Satyricon / terraform-infra-bootstrap

Terraform configuration project for bootstrapping Terraform automation resources for Azure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run the following steps to setup Terraform automation resources

  1. Clone the repository - git clone https://github.com/Satyricon/terraform-infra-bootstrap.git
  2. Login and set target Azure subscription - az login, az account set --subscription SUBSCRIPTION_ID
  3. Setup connection to Azure DevOps Organization
  • login to your Azure DevOps Organization
  • Create Personal Access Token with Agent Pools (Read & manage) scope
  • Export or add to your .bashrc or .zshrc file the follwong environment variables
    • AZDO_ORG_SERVICE_URL=https://dev.azure.com/ORG_NAME
    • AZDO_PERSONAL_ACCESS_TOKEN=PAT_TOKEN_FROM_ADO
    • TF_VAR_azure_dev_ops_pat=PAT_TOKEN_FROM_ADO
  1. Initialize Terraform - terraform init
  2. Create .tfvars file for your target environment under vars/ directory
  3. Run Terraform plan with corresponding tfvars file - terraform plan -var-file vars/demo.tfvars. Check the output
  4. Apply Terraform project - terraform apply -var-file vars/demo.tfvars
  5. Save the outputs
  6. Check created resources through Azure Portal

About

Terraform configuration project for bootstrapping Terraform automation resources for Azure


Languages

Language:HCL 100.0%