An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Serverless Egress Test

Implements this architecture:

![architecture](index.png)

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