This is a sample project called 'AWS-cloudformation-cloudwatch-lambda-template'. This is to demonstrate using Cloudformation, how to create and configure CloudWatch dashboard to monitor an AWS Lambda function.
Amazon link for installing AWS CLI
[default]
aws_access_key_id = XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
region = eu-west-2
aws cloudformation validate-template --template-body file://./cloudwatch_lambda_sample_config.yaml
aws cloudformation create-stack --stack-name cloudwatch-test-stack --template-body file://./cloudwatch_lambda_sample_config.yaml
aws cloudformation update-stack --stack-name cloudwatch-test-stack --template-body file://./cloudwatch_lambda_sample_config.yaml
aws cloudformation create-change-set --stack-name cloudwatch-test-stack --template-body file://./cloudwatch_lambda_sample_config.yaml --change-set-name port-update --description "updating the lambda function name"