Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 776 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 776 Bytes

apigateway-monitoring

  • Automated CloudWatch alarms creation for ApiGateway resources via Lambda.

Basic Flow

  • We need to have an S3 bucket where we gonna upload the Lambda code.

  • Use CloudFormation package command for uloading the lambda code to and S3 which will update the corresponding section of CloudFromation template as well.

aws cloudformation package --template-file cfn.yaml --s3-bucket bucket-name --output-template-file packaged-template.json
  • Create the stack using below command
aws cloudformation create-stack --stack-name apigateway-monitoring --template-body file://packaged-template.json --region us-east-1 --capabilities CAPABILITY_IAM

Adjust the permissions for the lambda accordingly in the template.