Skip to content

Commit 989089f

Browse files
feat: update KMS module and also update docs
1 parent 34799c7 commit 989089f

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

examples/network-firewall/README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
VPC with Network Firewall
2+
3+
This configuration creates a VPC with the following resources across multiple AZs
4+
5+
- Internet gateway
6+
- NAT gateway per AZ
7+
- public, private and firewall subnets
8+
- AWS network firewall
9+
10+
The routing tables for such a deployment model follows the [AWS blog suggestion](https://aws.amazon.com/blogs/networking-and-content-delivery/deployment-models-for-aws-network-firewall/), particularly "2) AWS Network Firewall is deployed to protect traffic between an AWS service in a public subnet and IGW"
11+
12+
## Usage
13+
14+
To run this example you need to execute:
15+
16+
```bash
17+
$ terraform init
18+
$ terraform plan
19+
$ terraform apply
20+
```
21+
22+
Note that this example may create resources which can cost money (AWS Elastic IP, for example). Run `terraform destroy` when you don't need these resources.
23+
124
## Requirements
225

326
| Name | Version |
@@ -10,13 +33,13 @@
1033

1134
| Name | Version |
1235
|------|---------|
13-
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |
36+
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.0 |
1437

1538
## Modules
1639

1740
| Name | Source | Version |
1841
|------|--------|---------|
19-
| <a name="module_kms"></a> [kms](#module\_kms) | /Users/roger.amorim/Clutch/projects/infrastructure/terraform-modules/modules/aws-kms | n/a |
42+
| <a name="module_kms"></a> [kms](#module\_kms) | git::https://github.com/withclutch/terraform-modules-registry | aws-kms_v1.204 |
2043
| <a name="module_vpc"></a> [vpc](#module\_vpc) | ../../ | n/a |
2144

2245
## Resources

examples/network-firewall/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ resource "random_pet" "this" {
1818
################################################################################
1919

2020
module "kms" {
21-
#source = "git::https://github.com/withclutch/terraform-modules-registry?ref=aws-kms_v1.194"
22-
source = "/Users/roger.amorim/Clutch/projects/infrastructure/terraform-modules/modules/aws-kms"
21+
source = "git::https://github.com/withclutch/terraform-modules-registry?ref=aws-kms_v1.204"
2322

2423
name = "${local.name_prefix}-kms"
2524
environment = "test"

network-firewall.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ module "logs_flow" {
112112
}
113113

114114
module "kms" {
115-
#source = "git::https://github.com/withclutch/terraform-modules-registry?ref=aws-kms_v1.194"
116-
source = "/Users/roger.amorim/Clutch/projects/infrastructure/terraform-modules/modules/aws-kms"
115+
source = "git::https://github.com/withclutch/terraform-modules-registry?ref=aws-kms_v1.204"
117116
count = var.create_network_firewall ? 1 : 0
118117

119118
name = "${local.name}-kms"

0 commit comments

Comments
 (0)