├── output.tf ├── code ├── dev.zip ├── ipAutomation.zip ├── dev.py ├── data-ingestion-lambda.py └── ipAutomation.py ├── images ├── waf-offering-design.jpg ├── waf-offering-logging-option1.jpg ├── waf-offering-logging-option2.png └── waf-offering-logging-option3.jpg ├── modules └── vpc │ ├── 1-data.tf │ ├── 5-s3-endpoint.tf │ ├── output.tf │ ├── 3-flow-logs.tf │ ├── 4-ssm.tf │ ├── 0-variables.tf │ └── 2-vpc.tf ├── documentation └── AWS WAF deployment with AWS Firewall manager and Terraform.docx ├── CODE_OF_CONDUCT.md ├── user-data └── user-data.sh ├── html └── index.html ├── LICENSE ├── 3-aws-waf-rate-based.tf ├── 3-aws-waf-geo.tf ├── dashboard-crossaccount-kinesis.yaml ├── 6-optional-preprod-s3_origin.tf_ ├── 4-fwm-waf-logging-option3.tf ├── vars └── PROD.tfvars ├── 0-locals-data.tf ├── 0-providers.tf ├── dashboard-crossaccount-kinesis-role.yaml ├── 5-optional-dev-cfront.tf_ ├── CONTRIBUTING.md ├── 3-aws-waf-ip.tf ├── 3-aws-waf-rate-based.yaml ├── 1-fwm-regional-webacl.tf ├── 1-fwm-global-webacl.tf ├── 6-optional-preprod-cfront.tf_ ├── 6-optional-variables_cfront.tf ├── 5-optional-dev_apigw.tf_ ├── 2-aws-waf-automation-ip.tf ├── 3-aws-waf-regex.tf ├── 4-fwm-waf-logging-option2_global.tf ├── 4-fwm-waf-logging-option2_regional.tf ├── 4-fwm-waf-logging-option1_global.tf ├── 4-fwm-waf-logging-option1_regional.tf ├── 0-variables_firewall.tf ├── 3-aws-waf-sqli-xss.tf ├── README.md └── dashboard.yaml /output.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/dev.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-waf-firewall-manager-terraform/HEAD/code/dev.zip -------------------------------------------------------------------------------- /code/ipAutomation.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-waf-firewall-manager-terraform/HEAD/code/ipAutomation.zip -------------------------------------------------------------------------------- /images/waf-offering-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-waf-firewall-manager-terraform/HEAD/images/waf-offering-design.jpg -------------------------------------------------------------------------------- /modules/vpc/1-data.tf: -------------------------------------------------------------------------------- 1 | 2 | data "aws_caller_identity" "current" {} 3 | data "aws_availability_zones" "available" {} 4 | data "aws_region" "current" {} -------------------------------------------------------------------------------- /images/waf-offering-logging-option1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-waf-firewall-manager-terraform/HEAD/images/waf-offering-logging-option1.jpg -------------------------------------------------------------------------------- /images/waf-offering-logging-option2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-waf-firewall-manager-terraform/HEAD/images/waf-offering-logging-option2.png -------------------------------------------------------------------------------- /images/waf-offering-logging-option3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-waf-firewall-manager-terraform/HEAD/images/waf-offering-logging-option3.jpg -------------------------------------------------------------------------------- /documentation/AWS WAF deployment with AWS Firewall manager and Terraform.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-waf-firewall-manager-terraform/HEAD/documentation/AWS WAF deployment with AWS Firewall manager and Terraform.docx -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /user-data/user-data.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | sudo yum install -y https://s3.${Region}.amazonaws.com/amazon-ssm-${Region}/latest/linux_amd64/amazon-ssm-agent.rpm 5 | sudo systemctl status amazon-ssm-agent 6 | 7 | sudo systemctl enable amazon-ssm-agent 8 | sudo systemctl start amazon-ssm-agent 9 | sudo systemctl status amazon-ssm-agent -------------------------------------------------------------------------------- /code/dev.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import os 3 | import json 4 | import pprint 5 | 6 | #--- main lambda handler 7 | def handler(event, context): 8 | 9 | return { 10 | "statusCode": 200, 11 | "body": "waf poc lambda function", 12 | "headers": { 13 | "Content-Type": "application/json" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /html/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |We are live with a private bucket (default example)!!!