

# Step 2: Enable DevOps Guru
<a name="getting-started-enable-service"></a>

To configure Amazon DevOps Guru to use for the first time, you must choose how you want to set up DevOps Guru. You can either monitor applications across your organization or monitor applications in your current account.

You can either monitor your applications across your organization or enable DevOps Guru for exclusively the current account. The following procedures outline different ways to set up DevOps Guru based on your needs.

# Monitor accounts across your organization
<a name="getting-started-multi-account"></a>

If you choose to monitor applications across your organization, log into your organization management account. You can optionally set up an organization member account as a **delegated administrator**. You can only have one delegated administrator at a time and can modify the administrator settings later. Both the management account and the delegated administrator account that you set up have access to all insights across all accounts in your organization.

You can either add cross account support for your organization using the Console, or you can do so by using the AWS CLI.

## Onboard with the DevOps Guru Console
<a name="w2aac16b9b7b7"></a>

You can use the Console to add support for accounts across your organization.

**Use the Console to enable DevOps Guru to view aggregated insights**

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

1. Choose **Monitor applications across your organizations** as the setup type.

1. Choose which account you'd like to use as your delegated administrator. Then, choose **Register delegated administrator**. This provides access to a consolidated view for any account that has DevOps Guru enabled. The delegated administrator has a consolidated view of all DevOps Guru insights and metrics across your organization. You can enable other accounts with SSM quick setup or AWS CloudFormation stack sets. To learn more about quick setup, see [Configure DevOps Guru with Quick Setup](https://docs.aws.amazon.com/systems-manager/latest/userguide/quick-setup-devops.html). To learn more about setting up with stack sets, see [Working with stacks](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html) in the *CloudFormation User Guide*, and [Step 2 – Determine coverage for DevOps Guru](setting-up.md#setting-up-determine-coverage). and [Using CloudFormation stacks to identify resources in your DevOps Guru applications](working-with-cfn-stacks.md).

## Onboard with the AWS CLI
<a name="w2aac16b9b7b9"></a>

You can use the AWS CLI to enable DevOps Guru to view aggregated insights. Run the following commands.

```
aws iam create-service-linked-role --aws-service-name devops-guru.amazonaws.com --description "My service-linked role to support DevOps Guru"

aws organizations enable-aws-service-access --service-principal devops-guru.amazonaws.com

aws organizations register-delegated-administrator --account-id >ACCOUNT_ID< --service-principal devops-guru.amazonaws.com
```

The following table describes the commands.


| Command | Description | 
| --- | --- | 
|  `create-service-linked-role`  |  Gives DevOps Guru permission to gather information about your organization. Don't proceed if this step is not successful.  | 
|  `enable-aws-service-access`  |  Onboards your organization to DevOps Guru.  | 
|  `register-delegated-administrator`  |  Gives access to the member account to view insights.  | 

# Monitor your current account
<a name="getting-started-single-account"></a>

If you choose to monitor applications in your current AWS account, choose which AWS resources in your account and Region are covered or analyzed and specify one or two Amazon Simple Notification Service topics that are used to notify you when an insight is created. You can update these settings later as needed. 

**Enable DevOps Guru to monitor applications in your current AWS account**

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

1. Choose **Monitor applications in the current AWS account** as the setup type.

1. In **DevOps Guru analysis coverage**, choose one of the following. 
   + **Analyze all AWS resources in the current AWS account**: DevOps Guru analyzes all AWS resources in your account. 
   + **Choose AWS resources to analyze later**: You choose your analysis boundary later. For more information, see [Determine coverage for DevOps Guru](setting-up.md#setting-up-determine-coverage) and [Updating your AWS analysis coverage in DevOps Guru](update-settings.md#update-coverage). 

   DevOps Guru can analyze any resource that is associated with the AWS account it supports. For more information about the supported services and resources, see [Amazon DevOps Guru pricing](https://aws.amazon.com/devops-guru/pricing/).

1. You can add up to two topics. DevOps Guru uses the topic or topics to notify you about important DevOps Guru events, such as the creation of a new insight. If you don't specify a topic now, you can add one later by choosing **Settings** in the navigation pane. 

   1. In **Specify an Amazon SNS topic**, choose a topic to use. 

   1.  To add an Amazon SNS topic, do one of the following. 
      +  Choose **Generate a new SNS topic using email**. Then, from **Specify the email address**, enter the email address you want to receive notifications. To enter in additional email addresses, choose **Add new email**. 
      +  Choose **Use an existing SNS topic**. Then, from **Choose a topic in your AWS account**, choose the topic you want to use. 
      +  Choose **Use an existing SNS topic ARN to specify an existing topic from another account**. Then, in **Enter an ARN for a topic**, enter the topic ARN. The ARN is the topic's Amazon Resource Name. You can specify a topic in a different account. If you use a topic in another account, you must add a resource policy to the topic. For more information, see [Permissions for Amazon SNS topics](sns-required-permissions.md). 

1.  Choose **Enable**. 

To configure Amazon DevOps Guru to use for the first time, you must choose which AWS resources in your account and Region is covered, or analyzed, and specify one or two Amazon Simple Notification Service topics that are used to notify you when an insight is created. You can update these settings later as needed. 