Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimbrig/terraform-azure
Personal experimentation using Terraform to setup infrastructure on Azure
https://github.com/jimbrig/terraform-azure
azure iaas infrastructure provisioning terraform
Last synced: about 2 months ago
JSON representation
Personal experimentation using Terraform to setup infrastructure on Azure
- Host: GitHub
- URL: https://github.com/jimbrig/terraform-azure
- Owner: jimbrig
- Created: 2021-10-13T23:20:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T11:21:03.000Z (about 1 year ago)
- Last Synced: 2024-08-13T07:15:59.735Z (5 months ago)
- Topics: azure, iaas, infrastructure, provisioning, terraform
- Language: Shell
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- jimsghstars - jimbrig/terraform-azure - Personal experimentation using Terraform to setup infrastructure on Azure (Shell)
README
# Terraform Azure Examples
> Personal experimentation using Terraform to setup infrastructure on Azure.
Note that detailed documentation is provided within the individual example folders themselves.
To view detailed progression over time see the [Changelog](CHANGELOG.md) as well as the active [Development Branches](https://github.com/jimbrig/terraform-azure/branches).
## Examples
- [Terraform Local Docker Container](1-terraform-docker-container/)
- [Terraform Azure App Service with Docker - Simple](./2-terraform-azure-app-service-docker/)## Roadmap
Started:
- Provide an Example Deploying a Virtual Machine Linux Server to Azure ([feature/example-3](https://github.com/jimbrig/terraform-azure/tree/feature/example-3))
- Provide Example Provisioning Azure Container Registry ([feature/example-4](https://github.com/jimbrig/terraform-azure/tree/feature/example-4))Not Started:
- Provide Example Provisioning an Azure Static WebApp (i.e. React or Next.js)
- Provide an Example Utilizing other Authentication Methods outside the scope of `az-cli` for demonstrating CI/CD and deployment pipelines.## Appendix
### Install Terraform on Linux (WSL)
- Script can be viewed at: [0-scripts/install-terraform](0-scripts/install-terraform)
```bash
#/bin/bash
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install terraform
terraform -install-autocomplete
```*Note: the install script also installs autocompletion for your default shell (bash and zsh are supported)*
### Azure CLI Authentication
The scripts folder also contains scripts to install necessary Windows Host dependencies: `az-cli` and (optionally) `terraform`.
```powershell
# install az via chocolatey
cinst -y az# login
az login# list accounts
az account list# set subscription via its ID from above
az account set --subscription="SUBSCRIPTION_ID"
```See: [Azure Provider: Authenticating using Azure CLI](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/azure_cli) for details.