Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T14:34:06.000Z (over 5 years ago)
- Last Synced: 2024-11-14T03:49:25.963Z (2 months 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 Repository1. 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`