Skip to content

Commit 34c9c45

Browse files
authored
Merge 23a20da into 4db90b2
2 parents 4db90b2 + 23a20da commit 34c9c45

File tree

2 files changed

+77
-2
lines changed

2 files changed

+77
-2
lines changed

3_networking/vpn-gateway/README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Terraform Template - Azure VPN Gateway
2+
3+
Costa Rica
4+
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
6+
[brown9804](https://github.com/brown9804)
7+
8+
Last updated: 2025-06-12
9+
10+
----------
11+
12+
> This template contains Terraform configurations to create and manage an Azure VPN Gateway, including a virtual network, GatewaySubnet, and public IP.
13+
14+
> [!NOTE]
15+
> The subnet used for Azure VPN Gateway **must** be named `GatewaySubnet` and sized at least /27.
16+
17+
<p align="center">
18+
<img width="700" alt="image" src="https://github.com/user-attachments/assets/c87943f7-5550-4e59-8059-3c236ec00f53">
19+
</p>
20+
21+
## File Descriptions
22+
23+
- **main.tf**: Contains the main configuration for creating the Azure VPN Gateway and its supporting resources.
24+
- **variables.tf**: Defines the input variables used in the Terraform configuration.
25+
- **terraform.tfvars**: Provides default values for the variables defined in `variables.tf`.
26+
- **outputs.tf**: Defines the outputs such as VPN Gateway ID and public IP address.
27+
28+
## Variables
29+
30+
| Variable Name | Description | Type | Example Value |
31+
|---------------------- |--------------------------------------------------|--------|-----------------------------|
32+
| `subscription_id` | The Azure subscription ID | string | `"00000000-0000-0000-0000-000000000000"` |
33+
| `resource_group_name` | The name of the resource group | string | `"my-vpngw-rg"` |
34+
| `location` | The Azure region to deploy resources | string | `"eastus"` |
35+
| `public_ip_name` | The name of the public IP address for the VPN Gateway | string | `"my-vpngw-pip"` |
36+
| `vpn_gateway_name` | The name of the VPN Gateway | string | `"my-vpngw"` |
37+
| `vpn_gateway_sku` | The SKU for the VPN Gateway | string | `"VpnGw1"` |
38+
39+
## Usage
40+
41+
1. Clone the repository and navigate to the vpn-gateway directory.
42+
2. Update the `terraform.tfvars` file with your values.
43+
3. Initialize and apply the Terraform configuration:
44+
45+
```bash
46+
terraform init
47+
terraform plan
48+
terraform apply
49+
```
50+
51+
## Outputs
52+
53+
| Output Name | Description |
54+
|-----------------------|---------------------------------------------|
55+
| `vpn_gateway_id` | The ID of the VPN Gateway |
56+
| `vpn_gateway_public_ip` | The public IP address of the VPN Gateway |
57+
58+
<div align="center">
59+
<h3 style="color: #4CAF50;">Total Visitors</h3>
60+
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
61+
</div>

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Azure Terraform Sample Templates: Version 0.0.0
1+
# Azure Terraform Deployment <br/> Sample Templates: Version 0.0.0
22

33
Costa Rica
44

55
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
66
[brown9804](https://github.com/brown9804)
77

8-
Last updated: 2025-06-01
8+
Last updated: 2025-06-12
99

1010
----------
1111

@@ -64,6 +64,20 @@ Last updated: 2025-06-01
6464

6565
</details>
6666

67+
<details>
68+
<summary><b> Networking </b> (Click to expand) </summary>
69+
70+
- [Networking](./3_networking)
71+
- [Azure Application Gateway](./3_networking/application-gateway)
72+
- [Azure ExpressRoute](./3_networking/expressroute)
73+
- [Azure Firewall](./3_networking/firewall)
74+
- [Azure Front Door](./3_networking/front-door)
75+
- [Azure Load Balancer](./3_networking/load-balancer)
76+
- [Azure Traffic Manager](./3_networking/traffic-manager)
77+
- [Azure VPN Gateway](./3_networking/vpn-gateway)
78+
79+
</details>
80+
6781

6882
## Prerequisites
6983

0 commit comments

Comments
 (0)