https://github.com/keithrozario/firewall_egress
Deployment of firewall in an egress VPC
https://github.com/keithrozario/firewall_egress
Last synced: 7 months ago
JSON representation
Deployment of firewall in an egress VPC
- Host: GitHub
- URL: https://github.com/keithrozario/firewall_egress
- Owner: keithrozario
- Created: 2021-08-18T06:48:38.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-17T02:17:02.000Z (almost 4 years ago)
- Last Synced: 2025-01-27T08:27:37.392Z (9 months ago)
- Language: HCL
- Size: 260 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Serverless Egress Test
Implements this architecture:

source: [link](https://aws.amazon.com/blogs/networking-and-content-delivery/deployment-models-for-aws-network-firewall/)
With a key difference, we use Lambda in the workload subnet, instead of an EC2 instance
## Deployment
$ cd terraform
$ tf deploy --auto-approve## Deploy Lamda
$ cd serverless
$ sls deploy## Test FQDN filtering
$ sls invoke -f hello -d '{"domain":"www.keithrozario.com"}'
$ sls invoke -f hello -d '{"domain":"www.facebook.com"}'
$ sls invoke -f hello -d '{"domain":"www.google.com"}'
$ sls invoke -f hello -d '{"domain":"www.amazon.com"}'# Deletion
$ cd serverless
$ sls remove
$ cd ../terraform
$ tf destroy --auto-approve