diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a538416..c575e28 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # These owners will be the default owners for everything in the repo. -* @anmolnagpal @clouddrove-ci @clouddrove/terraform-azure-admins \ No newline at end of file +* @anmolnagpal @clouddrove-ci @clouddrove/terraform-azure-admins diff --git a/.github/workflows/auto_assignee.yml b/.github/workflows/auto_assignee.yml index 77d5fdf..f8b8bcd 100644 --- a/.github/workflows/auto_assignee.yml +++ b/.github/workflows/auto_assignee.yml @@ -11,4 +11,4 @@ jobs: secrets: GITHUB: ${{ secrets.GITHUB }} with: - assignees: 'clouddrove-ci' \ No newline at end of file + assignees: 'clouddrove-ci' diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 3baf5e1..26392e2 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -9,4 +9,4 @@ jobs: GITHUB: ${{ secrets.GITHUB }} with: tfcheck: 'complete-example / Check code format' -... \ No newline at end of file +... diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 3e88b85..8810fc4 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -10,4 +10,4 @@ jobs: uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master secrets: inherit with: - branch: 'master' \ No newline at end of file + branch: 'master' diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index 444164d..c4a5793 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -12,4 +12,4 @@ jobs: uses: clouddrove/github-shared-workflows/.github/workflows/readme.yml@master secrets: TOKEN : ${{ secrets.GITHUB }} - SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} \ No newline at end of file + SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} diff --git a/.github/workflows/tf-checks.yml b/.github/workflows/tf-checks.yml index 77b7662..09cb95e 100644 --- a/.github/workflows/tf-checks.yml +++ b/.github/workflows/tf-checks.yml @@ -10,7 +10,7 @@ jobs: secrets: inherit with: working_directory: './examples/site-to-site/' - + complete-example: uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master secrets: inherit @@ -21,4 +21,4 @@ jobs: uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master secrets: inherit with: - working_directory: './examples/point-to-site-with-certificate/' \ No newline at end of file + working_directory: './examples/point-to-site-with-certificate/' diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index ee98182..71a6fc4 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -8,4 +8,4 @@ jobs: tf-lint: uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master secrets: - GITHUB: ${{ secrets.GITHUB }} \ No newline at end of file + GITHUB: ${{ secrets.GITHUB }} diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml index 9aaf588..c203751 100644 --- a/.github/workflows/tfsec.yml +++ b/.github/workflows/tfsec.yml @@ -8,4 +8,4 @@ jobs: uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master secrets: inherit with: - working_directory: '.' \ No newline at end of file + working_directory: '.' diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f20fd5..0bfe737 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,4 +27,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [1.0.0]: https://github.com/clouddrove/terraform-azure-acr/compare/1.0.0...master [1.0.1]: https://github.com/clouddrove/terraform-azure-vpn/compare/1.0.0...1.0.1 -[1.0.2]: https://github.com/clouddrove/terraform-azure-vpn/compare/1.0.1...1.0.2 \ No newline at end of file +[1.0.2]: https://github.com/clouddrove/terraform-azure-vpn/compare/1.0.1...1.0.2 diff --git a/README.md b/README.md index 31c87aa..7355758 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Terraform AZURE VPN -

+

Terraform module to create vpn resource on AZURE.

@@ -38,7 +38,7 @@
-We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. +We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself. @@ -49,7 +49,7 @@ We have [*fifty plus terraform modules*][terraform_modules]. A few of them are c ## Prerequisites -This module has a few dependencies: +This module has a few dependencies: - [Terraform 1.x.x](https://learn.hashicorp.com/terraform/getting-started/install.html) - [Go](https://golang.org/doc/install) @@ -232,7 +232,7 @@ Here are some examples of how you can use this module in your inventory structur ## Testing -In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system. +In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system. You need to run the following command in the testing folder: ```hcl @@ -241,7 +241,7 @@ You need to run the following command in the testing folder: -## Feedback +## Feedback If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-azure-vpn/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com). If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-azure-vpn)! diff --git a/README.yaml b/README.yaml index 8caa129..e45cb78 100644 --- a/README.yaml +++ b/README.yaml @@ -142,6 +142,3 @@ usage: |- ] } ``` - - - diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 75d6980..88a7c4e 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -8,7 +8,7 @@ locals { environment = "test" } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Resource Group module call ## Resource group in which all resources will be deployed. ##----------------------------------------------------------------------------- @@ -21,9 +21,9 @@ module "resource_group" { location = "Canada Central" } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Virtual Network module call. -## Virtual Network in which vpn subnet(Gateway Subnet) will be created. +## Virtual Network in which vpn subnet(Gateway Subnet) will be created. ##----------------------------------------------------------------------------- module "vnet" { source = "clouddrove/vnet/azure" @@ -35,9 +35,9 @@ module "vnet" { address_space = "10.0.0.0/16" } -##----------------------------------------------------------------------------- -## Subnet module call. -## Name specific subnet for vpn will be created. +##----------------------------------------------------------------------------- +## Subnet module call. +## Name specific subnet for vpn will be created. ##----------------------------------------------------------------------------- module "subnet" { source = "clouddrove/subnet/azure" @@ -62,7 +62,7 @@ module "subnet" { ] } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Log Analytics module call. ##----------------------------------------------------------------------------- module "log-analytics" { @@ -81,9 +81,9 @@ module "log-analytics" { log_analytics_workspace_id = module.log-analytics.workspace_id } -##----------------------------------------------------------------------------- -## VPN module call. -## Following module will deploy point to site vpn in azure infratsructure. +##----------------------------------------------------------------------------- +## VPN module call. +## Following module will deploy point to site vpn in azure infratsructure. ##----------------------------------------------------------------------------- module "vpn" { depends_on = [module.vnet] diff --git a/examples/complete/output.tf b/examples/complete/output.tf index d4549ae..62a0881 100644 --- a/examples/complete/output.tf +++ b/examples/complete/output.tf @@ -2,4 +2,3 @@ output "vpn_gw_id" { value = module.vpn.vpn_gw_id description = "The ID of the Virtual Network Gateway." } - diff --git a/examples/complete/version.tf b/examples/complete/version.tf index 672a7d0..bd2c2d8 100644 --- a/examples/complete/version.tf +++ b/examples/complete/version.tf @@ -10,4 +10,4 @@ terraform { version = ">=3.0.0" } } -} \ No newline at end of file +} diff --git a/examples/point-to-site-with-certificate/main.tf b/examples/point-to-site-with-certificate/main.tf index 520d235..78b1ebe 100644 --- a/examples/point-to-site-with-certificate/main.tf +++ b/examples/point-to-site-with-certificate/main.tf @@ -8,7 +8,7 @@ locals { environment = "test" } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Resource Group module call ## Resource group in which all resources will be deployed. ##----------------------------------------------------------------------------- @@ -21,9 +21,9 @@ module "resource_group" { location = "Canada Central" } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Virtual Network module call. -## Virtual Network in which vpn subnet(Gateway Subnet) will be created. +## Virtual Network in which vpn subnet(Gateway Subnet) will be created. ##----------------------------------------------------------------------------- module "vnet" { source = "clouddrove/vnet/azure" @@ -35,9 +35,9 @@ module "vnet" { address_space = "10.0.0.0/16" } -##----------------------------------------------------------------------------- -## Subnet module call. -## Name specific subnet for vpn will be created. +##----------------------------------------------------------------------------- +## Subnet module call. +## Name specific subnet for vpn will be created. ##----------------------------------------------------------------------------- module "subnet" { source = "clouddrove/subnet/azure" @@ -62,7 +62,7 @@ module "subnet" { ] } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Log Analytics module call. ##----------------------------------------------------------------------------- module "log-analytics" { @@ -81,9 +81,9 @@ module "log-analytics" { log_analytics_workspace_id = module.log-analytics.workspace_id } -##----------------------------------------------------------------------------- -## VPN module call. -## Following module will deploy point to site vpn with ssl certificate in azure infratsructure. +##----------------------------------------------------------------------------- +## VPN module call. +## Following module will deploy point to site vpn with ssl certificate in azure infratsructure. ##----------------------------------------------------------------------------- module "vpn" { source = "../../" diff --git a/examples/point-to-site-with-certificate/output.tf b/examples/point-to-site-with-certificate/output.tf index b6b0e6f..656b26f 100644 --- a/examples/point-to-site-with-certificate/output.tf +++ b/examples/point-to-site-with-certificate/output.tf @@ -2,4 +2,3 @@ output "vpn_gw_id" { value = module.vpn.vpn_gw_id_certificate description = "The ID of the Virtual Network Gateway." } - diff --git a/examples/point-to-site-with-certificate/version.tf b/examples/point-to-site-with-certificate/version.tf index 672a7d0..bd2c2d8 100644 --- a/examples/point-to-site-with-certificate/version.tf +++ b/examples/point-to-site-with-certificate/version.tf @@ -10,4 +10,4 @@ terraform { version = ">=3.0.0" } } -} \ No newline at end of file +} diff --git a/examples/site-to-site/main.tf b/examples/site-to-site/main.tf index a5e4625..f528eb3 100644 --- a/examples/site-to-site/main.tf +++ b/examples/site-to-site/main.tf @@ -8,7 +8,7 @@ locals { environment = "test" } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Resource Group module call ## Resource group in which all resources will be deployed. ##----------------------------------------------------------------------------- @@ -21,9 +21,9 @@ module "resource_group" { location = "Canada Central" } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Virtual Network module call. -## Virtual Network in which vpn subnet(Gateway Subnet) will be created. +## Virtual Network in which vpn subnet(Gateway Subnet) will be created. ##----------------------------------------------------------------------------- module "vnet" { source = "clouddrove/vnet/azure" @@ -35,9 +35,9 @@ module "vnet" { address_space = "10.0.0.0/16" } -##----------------------------------------------------------------------------- -## Subnet module call. -## Name specific subnet for vpn will be created. +##----------------------------------------------------------------------------- +## Subnet module call. +## Name specific subnet for vpn will be created. ##----------------------------------------------------------------------------- module "subnet" { source = "clouddrove/subnet/azure" @@ -62,7 +62,7 @@ module "subnet" { ] } -##----------------------------------------------------------------------------- +##----------------------------------------------------------------------------- ## Log Analytics module call. ##----------------------------------------------------------------------------- module "log-analytics" { @@ -81,9 +81,9 @@ module "log-analytics" { log_analytics_workspace_id = module.log-analytics.workspace_id } -##----------------------------------------------------------------------------- -## VPN module call. -## Following module will deploy site to site vpn with ssl certificate in azure infratsructure. +##----------------------------------------------------------------------------- +## VPN module call. +## Following module will deploy site to site vpn with ssl certificate in azure infratsructure. ##----------------------------------------------------------------------------- module "vpn" { depends_on = [module.vnet] diff --git a/main.tf b/main.tf index 5539202..4badc4e 100644 --- a/main.tf +++ b/main.tf @@ -12,7 +12,7 @@ module "labels" { } ##----------------------------------------------------------------------------- -## data block called for resource group. +## data block called for resource group. ##----------------------------------------------------------------------------- data "azurerm_resource_group" "rg" { name = var.resource_group_name @@ -20,7 +20,7 @@ data "azurerm_resource_group" "rg" { ##----------------------------------------------------------------------------- ## Random string called -## Will be used further in public ip resource in domain name label. +## Will be used further in public ip resource in domain name label. ##----------------------------------------------------------------------------- resource "random_string" "str" { count = var.enable ? 1 : 0 @@ -100,7 +100,7 @@ resource "azurerm_virtual_network_gateway" "vpngw" { ##----------------------------------------------------------------------------- ## Virtual Network Gateway -## Following resource will deploy virtual network gateway with certificate. +## Following resource will deploy virtual network gateway with certificate. ##----------------------------------------------------------------------------- resource "azurerm_virtual_network_gateway" "vpngw2" { count = var.enable && var.vpn_with_certificate ? 1 : 0 @@ -202,7 +202,7 @@ resource "azurerm_virtual_network_gateway_connection" "az-hub-onprem" { } ##----------------------------------------------------------------------------- -## Following resource will deploy diagnostic setting for virtual network gateway. +## Following resource will deploy diagnostic setting for virtual network gateway. ##----------------------------------------------------------------------------- resource "azurerm_monitor_diagnostic_setting" "main" { count = var.enable && var.diagnostic_setting_enable ? 1 : 0 @@ -233,7 +233,7 @@ resource "azurerm_monitor_diagnostic_setting" "main" { } ##----------------------------------------------------------------------------- -## Following resource will deploy diagnostic setting for public ip. +## Following resource will deploy diagnostic setting for public ip. ##----------------------------------------------------------------------------- resource "azurerm_monitor_diagnostic_setting" "pip_gw" { count = var.enable && var.diagnostic_setting_enable ? 1 : 0