Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/will8ug/learn-terraform-azure


https://github.com/will8ug/learn-terraform-azure

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# learn-terraform-azure

[![Terraform](https://github.com/azure-pocs/learn-terraform-azure/actions/workflows/terraform.yml/badge.svg)](https://github.com/azure-pocs/learn-terraform-azure/actions/workflows/terraform.yml)

Practices of this guide: [Get Started - Azure](https://developer.hashicorp.com/terraform/tutorials/azure-get-started).

Relevant commands of this repository:
```shell
az login
az account set --subscription ""
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/"

export ARM_CLIENT_ID=""
export ARM_CLIENT_SECRET=""
export ARM_SUBSCRIPTION_ID=""
export ARM_TENANT_ID=""

terraform init
terraform fmt
terraform validate

terraform apply

terraform show
terraform state list
terraform state
terraform state pull azurerm_resource_group.rg

terraform destroy

terraform apply -var "resource_group_name=myNewResourceGroupName"

terraform output resource_group_id

#### Terraform Cloud ####
terraform login
terraform init

```