https://github.com/53ningen/getmetricwidgetimage
Get Amazon CloudWatch Metric Widget Image and Notify Amazon SNS Topic of it
https://github.com/53ningen/getmetricwidgetimage
aws cloudwatch-metrics sns
Last synced: about 2 months ago
JSON representation
Get Amazon CloudWatch Metric Widget Image and Notify Amazon SNS Topic of it
- Host: GitHub
- URL: https://github.com/53ningen/getmetricwidgetimage
- Owner: 53ningen
- License: mit
- Created: 2019-04-21T16:04:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T14:34:06.000Z (about 7 years ago)
- Last Synced: 2025-01-13T18:51:19.983Z (over 1 year ago)
- Topics: aws, cloudwatch-metrics, sns
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://console.aws.amazon.com/lambda/home?region=us-east-1#/create/app?applicationId=arn:aws:serverlessrepo:us-east-1:247601741829:applications/GetMetricWidgetImage) 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
```yaml
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`