https://github.com/ironcore864/terraform-azure-examples
https://github.com/ironcore864/terraform-azure-examples
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ironcore864/terraform-azure-examples
- Owner: IronCore864
- Created: 2020-04-29T17:16:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T17:43:23.000Z (about 6 years ago)
- Last Synced: 2025-09-19T06:16:38.015Z (10 months ago)
- Language: HCL
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure Terraform Modules and Examples
## Pre-requisites
* Install [terraform](https://www.terraform.io/) 0.12 required
* Install [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest)
## How to Run
### Remote State Files
See the other repo:
https://github.com/IronCore864/tf-remote-state-azure-storage-account
### config.tf
Create a config.tf file for the env you choose to deploy, according to the template `config.tf.template`.
You need subscription, service principal related info, as well as the storage account info generated in the previous step.
### k8s Service Principal
For k8s service principal, open the file:
```
dev/terraform.tfvars
```
And put the value for `service_principal_id_for_k8s` and `service_principal_secret_for_k8s`.
This should not be commited to this repo since it's credentials. For now we don't have a vault.
### Deploy
* `terraform init` - Initializes the environment
* `terrafrom plan` - Displays execution plan
* `terraform apply` - Applies execution plan