Skip to content

Commit 7210029

Browse files
authored
Merge pull request #2 from devopswithzack/dev
Dev
2 parents 7d92eb1 + a779924 commit 7210029

File tree

6 files changed

+56
-24
lines changed

6 files changed

+56
-24
lines changed

.gitignore

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
# Crash log files
99
crash.log
1010

11-
# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
12-
# .tfvars files are managed as part of configuration and so should be included in
13-
# version control.
14-
#
15-
# example.tfvars
16-
1711
# Ignore override files as they are usually used to override resources locally and so
1812
# are not checked in
1913
override.tf
@@ -31,7 +25,5 @@ override.tf.json
3125
.idea
3226
.dccache
3327

34-
# Igmore the local backend configuration file
35-
*.conf
36-
# Ignore the local env variable file
37-
*.tfvars
28+
# DevOps With Zack Configurations
29+
*.conf-devopswithzack

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
# labs-aws-networkfirewall
2-
This Terraform script will help to deploy AWS Network firewall and related resources to test the Lab.
1+
2+
# AWS Network Firewall - Terraform
3+
4+
This repo is used to deploy and test the LAB described in my dev.to blog post.Let's Play With AWS Network Firewall (Hands on Lab).
5+
6+
![Logo](https://res.cloudinary.com/practicaldev/image/fetch/s--Jfn-9_l4--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhlpdgjgwqg348wmnftk.png)
7+
8+
9+
## How to Deploy?
10+
11+
Here is the dev.to link to my blog post how to test this lab.
12+
13+
[dev.to Blog](https://github.com/matiassingers/awesome-readme)
14+
15+
16+
## Want to contribute?
17+
If you want to contribute to this LAB, please open a PR.
18+

aws-network-firewall.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ resource "aws_networkfirewall_rule_group" "block_google" {
4343
rule_group {
4444
rule_variables {
4545
ip_sets {
46-
key = "HOME_NET"
46+
key = "APP_VPC"
4747
ip_set {
48-
definition = [module.app_vpc.vpc_cidr_block, module.egress_vpc.vpc_cidr_block]
48+
definition = [module.app_vpc.vpc_cidr_block]
4949
}
5050
}
5151
}

backend.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
bucket = "< bucket_name_here >"
2+
key = "terraform/aws-nfw/terraform.tfstate"
3+
region = "us-east-1"
4+
dynamodb_table = "< dynamodb_table_name >"
5+
profile = "< profile >"
6+
encrypt = true
7+
8+
9+
10+

env.tfvars

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
project = "devops-with-zack-demo"
2+
aws_profile = "dev"
3+
region = "us-east-1"
4+
az_a = "us-east-1a"
5+
team = "devops"
6+
env = "dev"
7+
8+
#Inspection VPC
9+
inspection_vpc_cidr = "100.64.0.0/16"
10+
inspection_vpc_tgw_subnet_cidr = "100.64.144.0/20"
11+
inspection_vpc_firewall_subnet_cidr = "100.64.128.0/20"
12+
13+
#App VPC
14+
app_vpc_cidr = "10.1.0.0/16"
15+
app_vpc_tgw_subnet_cidr = "10.1.128.0/20"
16+
app_vpc_application_workload_subnet_cidr = "10.1.144.0/20"
17+
18+
#App VPC
19+
egress_vpc_cidr = "10.2.0.0/16"
20+
egress_vpc_tgw_subnet_cidr = "10.2.128.0/20"
21+
egress_vpc_igw_subnet_cidr = "10.2.144.0/20"
22+
23+
#SSH Key -
24+
ssh_key = ""

variables.tf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ variable "env" {
3535
default = ""
3636
}
3737

38-
variable "public_subnet_a" {
39-
type = string
40-
default = ""
41-
}
42-
43-
variable "public_subnet_b" {
44-
type = string
45-
default = ""
46-
47-
}
4838

4939
#Inspection VCP
5040
variable "inspection_vpc_cidr" {

0 commit comments

Comments
 (0)