Create CloudFormation stack

To enable DevOps Guru for CloudFormation, complete the following steps:

  1. Create the EnableDevOpsGuruForServerlessCfnStack CloudFormation stack using the following command:
aws cloudformation create-stack \
    --stack-name EnableDevOpsGuruForServerlessCfnStack \
    --template-body file:///$PWD/EnableDevOpsGuruForServerlessCfnStack.yaml \
    --parameters ParameterKey=CfnStackNames,ParameterValue=myServerless-Stack \
    --region ${AWS_REGION}
  1. Follow this link to find your CloudFormation stack and wait until it’s created.

  2. When the stack is created, navigate to the Amazon DevOps Guru dashboard.

  3. Choose Settings.

  4. Under CloudFormation stacks, locate myServerless-Stack.

If you don’t see it, your CloudFormation stack has not been successfully deployed. You may remove and redeploy the EnableDevOpsGuruForServerlessCfnStack stack.

Optionally, you can configure Amazon Simple Notification Service (Amazon SNS) topics or enable AWS Systems Manager integration to create OpsItem entries for every insight created by DevOps Guru. If you need to deploy as a stack set across multiple accounts and Regions, see Easily configure Amazon DevOps Guru across multiple accounts and Regions using AWS CloudFormation StackSets.