Get Amazon CloudWatch Widget Image and Notify Amazon SNS Topic of it
- Upload config file(config.yaml) to S3 Bucket
- Deploy Application with Serverless Application Repository
- run
cp .env.template .env}
and set up.env
file - run
cp config.template.yaml config.yaml
and set upconfig.yaml
file - run
./scripts/update_config
- run
./scripts/deploy
Add the resource below into your SAM template
GetMetricWidgetImage:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:247601741829:applications/GetMetricWidgetImage
SemanticVersion: 1.0.0
Parameters:
ConfigBucket: YOUR_VALUE
ConfigKey: YOUR_VALUE
NotificationTargetTopicArn: YOUR_VALUE
# RetentionInDays: '7' # Uncomment to override default value
# Schedule: 'rate(60 minutes)' # Uncomment to override default value
See: ./demo/GetMetricWidgetImageAndNotifySlack