Skip to content
Get Amazon CloudWatch Metric Widget Image and Notify Amazon SNS Topic of it
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo/GetMetricWidgetImageAndNotifySlack
scripts
src/get_metric_widget_image
.env.template
.gitignore
LICENSE
README.md
config.template.yaml
template.yaml

README.md

GetMetricWidgetImage

Get Amazon CloudWatch Widget Image and Notify Amazon SNS Topic of it

How to Deploy

Use Serverless Application Repository

  1. Upload config file(config.yaml) to S3 Bucket
  2. Deploy Application with Serverless Application Repository

Use Deploy Script

  1. run cp .env.template .env} and set up .env file
  2. run cp config.template.yaml config.yaml and set up config.yaml file
  3. run ./scripts/update_config
  4. run ./scripts/deploy

Nested Application

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

Demo

See: ./demo/GetMetricWidgetImageAndNotifySlack

You can’t perform that action at this time.