Working with AWS CloudFormation stacks in DevOps Guru - Amazon DevOps Guru

Working with AWS CloudFormation stacks in DevOps Guru

You can use AWS CloudFormation stacks to specify which AWS resources you want DevOps Guru to analyze. A stack is a collection of AWS resources that are managed as a single unit. The resources in the stacks you choose make up your DevOps Guru coverage boundary. For each stack you choose, operational data in its supported resources are analyzed for anomalous behavior. Those issues are then grouped into related anomalies to create insights. Each insight includes one or more recommendations to help you address them. The maximum number of stacks you can specify is 1000. For more information, see Working with stacks in the AWS CloudFormation User Guide and Update your AWS analysis coverage in DevOps Guru.

After you choose a stack, DevOps Guru immediately starts to analyze any resource you add to it. If you remove a resource from a stack, it is no longer analyzed.

Note

If you choose to have DevOps Guru analyze all supported resources in your account (this means your account is your DevOps Guru coverage boundary), then DevOps Guru analyzes and creates insights for every supported resource in your account. While all your insights appear in the console, only the insights created for a resource that belongs to one of the first 1000 stacks analyzed appear as part of a stack. DevOps Guru can analyze up to 10,000 stacks.

Choose stacks for DevOps Guru to analyze

Specify the resources that you want Amazon DevOps Guru to analyze by choosing the AWS CloudFormation stacks that create them. You can do this using the AWS Management Console or the SDK.

Choose stacks for DevOps Guru to analyze (console)

You can add AWS CloudFormation stacks using the console.

To choose the stacks that contain the resources to analyze

  1. Open the Amazon DevOps Guru console at https://console.aws.amazon.com/devops-guru/.

  2. Open the navigation pane, then choose Settings.

  3. In DevOps Guru analysis coverage, choose Manage.

  4. If you have not enabled any stacks, in CloudFormation stacks, choose Manage analysis coverage.

  5. Select up to 1000 stacks that contain the resources that you want analyzed. You can enter the name of a stack in Find stacks to quickly locate a specific stack.

  6. Choose Save.

Choose stacks for DevOps Guru to analyze (DevOps Guru SDK)

To specify AWS CloudFormation stacks using the Amazon DevOps Guru SDK, use the UpdateResourceCollection method. For more information, see UpdateResourceCollection in the Amazon DevOps Guru API Reference.