Skip to content

Commit f098026

Browse files
committed
Initial commit
1 parent d3fdd30 commit f098026

19 files changed

+377
-26
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"makefile.extensionOutputFolder": "./.vscode"
3+
}

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export GENIE_PATH ?= $(shell 'pwd')/../../../genie
2+
include $(GENIE_PATH)/Makefile

README.md

Lines changed: 135 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,135 @@
1-
# terraform-module-template
1+
<!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. -->
2+
3+
4+
<h1 align="center">
5+
Terraform AZURE VIRTUAL-NETWORK
6+
</h1>
7+
8+
<p align="center" style="font-size: 1.2rem;">
9+
Terraform module to create VIRTUAL-NETWORK resource on AZURE.
10+
</p>
11+
12+
<p align="center">
13+
14+
<a href="https://www.terraform.io">
15+
<img src="https://img.shields.io/badge/Terraform-v1.0.0-green" alt="Terraform">
16+
</a>
17+
<a href="LICENSE.md">
18+
<img src="https://img.shields.io/badge/License-APACHE-blue.svg" alt="Licence">
19+
</a>
20+
21+
22+
</p>
23+
<p align="center">
24+
25+
<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/terraform-azure-virtual-network'>
26+
<img title="Share on Facebook" src="https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png" />
27+
</a>
28+
<a href='https://www.linkedin.com/shareArticle?mini=true&title=Terraform+AZURE+VIRTUAL-NETWORK&url=https://github.com/clouddrove/terraform-azure-virtual-network'>
29+
<img title="Share on LinkedIn" src="https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png" />
30+
</a>
31+
<a href='https://twitter.com/intent/tweet/?text=Terraform+AZURE+VIRTUAL-NETWORK&url=https://github.com/clouddrove/terraform-azure-virtual-network'>
32+
<img title="Share on Twitter" src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" />
33+
</a>
34+
35+
</p>
36+
<hr>
37+
38+
39+
40+
41+
42+
## Prerequisites
43+
44+
This module has a few dependencies:
45+
46+
47+
48+
49+
50+
51+
52+
53+
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-azure-virtual-network/releases).
54+
55+
56+
### Simple Example
57+
Here is an example of how you can use this module in your inventory structure:
58+
```hcl
59+
module "virtual-network" {
60+
source = "clouddrove/virtual-network/azure"
61+
environment = "test"
62+
label_order = ["name", "environment"]
63+
name = "example"
64+
resource_group_name = module.resource_group.resource_group_name
65+
location = module.resource_group.resource_group_location
66+
address_space = "10.0.0.0/16"
67+
subnet_names = ["subnet1"]
68+
subnet_prefixes = ["10.0.1.0/24"]
69+
enable_ddos_pp = true
70+
}
71+
```
72+
73+
74+
75+
76+
77+
78+
## Inputs
79+
80+
| Name | Description | Type | Default | Required |
81+
|------|-------------|------|---------|:--------:|
82+
| address\_space | The address space that is used by the virtual network. | `string` | `""` | no |
83+
| address\_spaces | The list of the address spaces that is used by the virtual network. | `list(string)` | `[]` | no |
84+
| attributes | Additional attributes (e.g. `1`). | `list(any)` | `[]` | no |
85+
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | `string` | `"-"` | no |
86+
| dns\_servers | The DNS servers to be used with vNet. | `list(string)` | `[]` | no |
87+
| enable | Flag to control the module creation | `bool` | `true` | no |
88+
| enable\_ddos\_pp | Flag to control the resource creation | `bool` | `false` | no |
89+
| environment | Environment (e.g. `prod`, `dev`, `staging`). | `string` | `""` | no |
90+
| label\_order | Label order, e.g. `name`,`application`. | `list(any)` | `[]` | no |
91+
| location | The location/region where the virtual network is created. Changing this forces a new resource to be created. | `string` | `""` | no |
92+
| managedby | ManagedBy, eg 'CloudDrove'. | `string` | `"[email protected]"` | no |
93+
| name | Name (e.g. `app` or `cluster`). | `string` | `""` | no |
94+
| repository | Terraform current module repo | `string` | `"https://github.com/clouddrove/terraform-azure-virtual-network"` | no |
95+
| resource\_group\_name | The name of an existing resource group to be imported. | `string` | `""` | no |
96+
| subnet\_enforce\_private\_link\_endpoint\_network\_policies | A map with key (string) `subnet name`, value (bool) `true` or `false` to indicate enable or disable network policies for the private link endpoint on the subnet. Default value is false. | `map(bool)` | `{}` | no |
97+
| subnet\_names | A list of public subnets inside the vNet. | `list(string)` | `[]` | no |
98+
| subnet\_prefixes | The address prefix to use for the subnet. | `list(string)` | `[]` | no |
99+
| subnet\_service\_endpoints | A map with key (string) `subnet name`, value (list(string)) to indicate enabled service endpoints on the subnet. Default value is []. | `map(list(string))` | `{}` | no |
100+
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). | `map(any)` | `{}` | no |
101+
102+
## Outputs
103+
104+
| Name | Description |
105+
|------|-------------|
106+
| vnet\_address\_space | The address space of the newly created vNet |
107+
| vnet\_id | The id of the newly created vNet |
108+
| vnet\_location | The location of the newly created vNet |
109+
| vnet\_name | The name of the newly created vNet |
110+
| vnet\_subnets | The ids of subnets created inside the newly created vNet |
111+
112+
113+
114+
115+
116+
117+
## Feedback
118+
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-azure-virtual-network/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
119+
120+
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-azure-virtual-network)!
121+
122+
## About us
123+
124+
At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.
125+
126+
<p align="center">We are <b> The Cloud Experts!</b></p>
127+
<hr />
128+
<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p>
129+
130+
[website]: https://clouddrove.com
131+
[github]: https://github.com/clouddrove
132+
[linkedin]: https://cpco.io/linkedin
133+
[twitter]: https://twitter.com/clouddrove/
134+
[email]: https://clouddrove.com/contact-us.html
135+
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=

README.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
#
3+
# This is the canonical configuration for the `README.md`
4+
# Run `make readme` to rebuild the `README.md`
5+
#
6+
7+
8+
# Name of this project
9+
name: Terraform AZURE VIRTUAL-NETWORK
10+
11+
# License of this project
12+
license: "APACHE"
13+
14+
# Canonical GitHub repo
15+
github_repo: clouddrove/terraform-azure-virtual-network
16+
17+
# Badges to display
18+
badges:
19+
- name: "Terraform"
20+
image: "https://img.shields.io/badge/Terraform-v1.1.7-green"
21+
url: "https://www.terraform.io"
22+
- name: "Licence"
23+
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
24+
url: "LICENSE.md"
25+
26+
# description of this project
27+
description: |-
28+
Terraform module to create VIRTUAL-NETWORK resource on AZURE.
29+
30+
# extra content
31+
include:
32+
- "terraform.md"
33+
34+
# How to use this project
35+
# yamllint disable rule:line-length
36+
usage: |-
37+
### Simple Example
38+
Here is an example of how you can use this module in your inventory structure:
39+
```hcl
40+
module "virtual-network" {
41+
source = "clouddrove/virtual-network/azure"
42+
environment = "test"
43+
label_order = ["name", "environment"]
44+
name = "example"
45+
resource_group_name = module.resource_group.resource_group_name
46+
location = module.resource_group.resource_group_location
47+
address_space = "10.0.0.0/16"
48+
subnet_names = ["subnet1"]
49+
subnet_prefixes = ["10.0.1.0/24"]
50+
enable_ddos_pp = true
51+
}
52+
```

_example/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

_example/complete/README.md

Whitespace-only changes.

_example/complete/main.tf

Lines changed: 0 additions & 1 deletion
This file was deleted.

_example/complete/outputs.tf

Whitespace-only changes.

_example/complete/variables.auto.tfvars

Whitespace-only changes.

_example/complete/variables.tf

Whitespace-only changes.

0 commit comments

Comments
 (0)