This sample code offers a fully automated AWS CDK Pipeline that you can use to create and manage Amazon CloudWatch Dashboards in your AWS Account. The sample application make use of cdk-golden-signals-dashboard AWS CDK Construct & AWS Tags (to find and group AWS Resources) to create service-specific, multi-region Amazon CloudWatch Dashboards.
Check out these screen captures of CloudWatch dashboards created by this sample application.
Please let us know if you need more resource support by opening an issue here and we would priortize it.
- You have bootstrapped the AWS Account and Region with AWS CDK (v2). If not, refer here
- Python 3 & Boto3 (Python module.
python -m pip install boto3
) - Node.js 18 or above
- NPM
- AWS CLI
- Kindly ensure all the prerequisite mentioned above are met.
- Check out the project and change current directory to project directory.
- Set the
AWS_ACCOUNT
,AWS_REGION
andGS_DASHBOARD_INSTANCE
environment variables:AWS_ACCOUNT
is the Account ID of your AWS Account,AWS_REGION
should be the codename of the AWS region you want to deploy sample application into (e.g.us-east-1
), andGS_DASHBOARD_INSTANCE
should be one ofdev
,test
, orprod
. - Setup AWS CLI with your IAM user's AWS credentials. For more information, see Setting Credentials for AWS CLI.
- You can run
sh deploy.sh
. The script will deploy Golden Signals dashboard sample application and then exit.
- Set the required environment variables and AWS credentials as described in step 3d & 4 of Deployment steps above.
- Run
sh destroy.sh
. The script will remove all AWS CloudFormation stacks created by sample Application.
npm update
update npm package dependenciesnpx projen compile
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation templatenpm install projen
installs projennpx projen
installs dependencies and generates the necessary filesnpx projen build
compiles ts to js and runs cdk
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.