Schedule and auto export AWS WAF Sample log to S3
Provide three way to deploy those resource.
- AWS SAR(Serverless Application Repository)
- AWS SAM(Serverless Application Model)
- Manually deploy at console
Select "Serverless Application Repository" when you create lambda at create function step. Key word: WAF
#package SAM template
aws cloudformation package --template-file template.yml --s3-bucket your-bucketname --output-template-file packaged-template.yml
#Deploy the pakcaged template
aws cloudformation deploy --template-file /Local-Path/AWSwafSampleLog2s3/packaged-template.yml --stack-name waflog2s3 --capabilities CAPABILITY_IAM
- Create IAM Policy
- Create IAM Role
- Create Lambda by upload waflog2s3.zip
- Create CloudWatch event trigger lambda
MIT License (MIT) This software is released under the MIT License, see LICENSE.txt