Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mosowaz/azure-terraform-projects
Terraform code for implementation of Azure resources
https://github.com/mosowaz/azure-terraform-projects
azure-resources azurerm azurerm-terraform-provider terraform
Last synced: 3 months ago
JSON representation
Terraform code for implementation of Azure resources
- Host: GitHub
- URL: https://github.com/mosowaz/azure-terraform-projects
- Owner: mosowaz
- Created: 2024-08-18T17:10:43.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-07T14:00:59.000Z (3 months ago)
- Last Synced: 2024-10-11T04:40:15.151Z (3 months ago)
- Topics: azure-resources, azurerm, azurerm-terraform-provider, terraform
- Language: HCL
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AZURE-Terraform-projects
This lab is created to demonstrate the implementation of Azure resources with Terraform code.
Links to lab scenerio and the details can be found in each sub-directory of this repository (under Contents).### Prerequisites
1. azure CLI is required for terraform to interact with azure resources
For detailed explanation to install and login with azure cli https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
2. Install and configure terraform https://developer.hashicorp.com/terraform/install
## Contents
1 - [Restrict network access to PaaS resources with virtual network service endpoints](project-1)2 - [Connect virtual networks with virtual network peering](project-2)
## Terraform Commands for execution of resource code
```
terraform init -upgradeterraform fmt && terraform validate
terraform plan -out main.tfplan
terraform apply main.tfplan # or terraform apply --auto-approve
```## To verify list of resources created, and details of resources
```
terraform state listterraform state show # detailed list on the resource
```## Clean up resources
```
terraform plan -destroy -out main.destroy.tfplanterraform apply main.destroy.tfplan # or terraform destroy
```
## Other helpful commands
```
terraform -install-autocomplete # for autocompletion
```