AnswerBun.com

how to run terraform azure infrastructure code to create environment

At the moment, I am running my terraform from my laptop which is obviously less than ideal:

module "eu_resource_group" {
  source                        = "./modules/resource_groups"

  resource_group_name           = var.resource_group_name
  resource_group_location       = var.location
}

module "vault" {
  source                        = "./modules/vault"

  resource_group_name           = module.eu_resource_group.eu_resource_group_name
  resource_group_location       = module.eu_resource_group.eu_resource_group_location
}

module "storage" {
  source                        = "./modules/storage"

  resource_group_name           = module.eu_resource_group.eu_resource_group_name
  resource_group_location       = module.eu_resource_group.eu_resource_group_location

  storage_account_name          = var.storage_account_name
  storage_container_name        = var.storage_container_name
}

I would like to run this from azure.

How would I run this from azure. Creating an azure devops project creates a CI pipeline etc.

How are people running their terraform infrastructure code in a non-local environment?

Server Fault Asked by dagda1 on December 30, 2020

1 Answers

One Answer

Basically, yes - you need to create new Azure DevOps pipeline and configure everything there (code location, secrets, service principal, etc.). There a lot of step-by-step guides, like this (medium) or this one (azure devops labs). Also, don't forget about storing Terraform remote state on Azure.

Answered by Dmitry Kutetsky on December 30, 2020

Add your own answers!

Related Questions

Preset runtime parameters for a docker container

1  Asked on November 4, 2021 by ormfo4i5fm

 

terraform – shall one use simple disk or linux LVM?

0  Asked on November 4, 2021 by wojtas-zet

     

GCP – Quickstart: Build and Deploy Problems

1  Asked on November 4, 2021 by ajiroghene

 

how to setup Carton, to compile znapzend 0.20.0?

1  Asked on November 4, 2021 by crestop

 

Recover data from IBM x3650 with SYS BRD ERR

1  Asked on November 4, 2021 by maxxer

     

cloning NTFS disk

1  Asked on November 4, 2021 by lucio-crusca

       

Apache Link to PHP run application/x-httpd-php *

1  Asked on February 28, 2021 by wobbo

     

uwsgi, multiple environment variables

2  Asked on February 25, 2021 by user204088

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.