Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
serverless-cloudwatch-dashboard
Advanced tools
A serverless plugin for generating a cloudwatch dashboard with widgets for the resources defined in the serverless.yml file.
A serverless plugin for generating a cloudwatch dashboard with widgets for the resources defined in the serverless.yml file.
npm install serverless-cloudwatch-dashboard
In the serverless.yml file the plugin needs to be added.
plugins:
- serverless-cloudwatch-dashboard
This will add the plugin and dashboards will be created. If you want to configure the widgets that are created, you will in addition need to add a custom config. This must be done under the custom property.
custom:
serverless-cloudwatch-dashboard:
dynamodb:
metrics:
- ReturnedBytes
If you don't specify the metrics it will use default metrics for the resource. The defaults is listed below.
The functions that are created by serverless is fully supported. The following metrics are supported:
Defaults:
To view documentation on the metrics, please see the official AWS documentation here:
https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions-metrics.html
DynamoDb is fully supported. The following metrics are supported:
Defaults:
To view documentation on the metrics, please see the official AWS documentation here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/dynamo-metricscollected.html
EC2 is fully supported. Please note that not all metrics is available for all instances. Please consult official documentation on which metrics that are available for which instance. These metrics are supported:
Defaults:
To view documentation on the metrics, please see the official AWS documentation here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ec2-metricscollected.html
S3 is fully supported. The following metrics are supported:
Defaults:
To view documentation on the metrics, please see the official AWS documentation here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/s3-metricscollected.html
Example yaml file.
service: test
frameworkVersion: ">=1.1.0"
custom:
bucket: test
serverless-cloudwatch-dashboard:
dynamodb:
metrics:
- ReturnedBytes
plugins:
- serverless-cloudwatch-dashboard
provider:
name: aws
runtime: nodejs4.3
stage: dev
region: eu-west-1
iamRoleStatements:
- Effect: Allow
Action:
- s3:PutObject
Resource: "arn:aws:s3:::${self:custom.bucket}/*"
functions:
save:
handler: handler.save
environment:
BUCKET: ${self:custom.bucket}
resources:
Resources:
ec2:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-7dbc4004
testtable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: firstName
AttributeType: S
KeySchema:
- AttributeName: firstName
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: test
tests3:
Type: AWS::S3::Bucket
Properties:
BucketName: somebucket
If you find a bug, please add it to the issues on github.
FAQs
A serverless plugin for generating a cloudwatch dashboard with widgets for the resources defined in the serverless.yml file.
The npm package serverless-cloudwatch-dashboard receives a total of 16 weekly downloads. As such, serverless-cloudwatch-dashboard popularity was classified as not popular.
We found that serverless-cloudwatch-dashboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.