Provides a widget for embedding cloudwatch widgets within Azure Devops dashboards.
- Deploy Serverless function (steps described below)
- Create a service connection with API key and URL outputted from your deploy
- Add widgets to dashboards!
Use this widget to display widgets from cloudwatch. Widgets are defined using the syntax described here. If you dont want to make your json by hand, you can create the widgets in a cloudwatch dashboard and copy the json from there.
Size will be ignored if it is included in your widget definition and will be replaced with a size appropriate for the size of your tile.
In order to use this extension you must deploy a function to your AWS account for your widget to use.
git clone [email protected]:swellaby/ado-aws-widgets.git; cd ado-aws-widgets
npm i -g serverless
serverless login
cd widget-function; serverless deploy
Note your API Key and URL so that you can configure your Azure DevOps widget.
By default the function will have permission to create widgets for anything in cloudwatch, you can restrict this behaviour by setting the METRIC_TARGET
to resource you want to grant cloudwatch:GetMetricWidgetImage
on environmental variable before deploying. If you modify this setting it will restrict the widgets that can be created.
The function is secured with an API Key, the api key is created as part of the deployment process.