

# CloudWatch Database Insights 시작하기
<a name="Database-Insights-Get-Started"></a>

Database Insights의 표준 모드는 기본적으로 Amazon RDS 및 Aurora 데이터베이스에 대해 활성화됩니다. Database Insights의 고급 모드를 시작하려면 새 데이터베이스를 생성하거나 데이터베이스를 수정하면 됩니다.

Amazon RDS 데이터베이스에 대한 Database Insights의 고급 모드 또는 표준 모드를 활성화하는 방법에 대한 내용은 다음 주제를 참조하세요.
+ **Amazon RDS 사용 설명서의 [Amazon RDS용 Database Insights의 고급 모드 켜기](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DatabaseInsights.TurningOnAdvanced.html)
+ **Amazon Aurora 사용 설명서의 [Amazon RDS용 Database Insights의 표준 모드 켜기](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DatabaseInsights.TurningOnStandard.html)
+ **Amazon RDS 사용 설명서의 [Amazon RDS용 DB 인스턴스 또는 다중 AZ DB 클러스터 생성 시 CloudWatch Database Insights 켜기 또는 끄기](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DatabaseInsights.TurnOnCreateDatabase.html)

Amazon Aurora 데이터베이스에 대한 Database Insights의 고급 모드 또는 표준 모드를 활성화하는 방법에 대한 자세한 내용은 다음 주제를 참조하세요.
+ **Amazon Aurora 사용 설명서의 [Turning on the Advanced mode of Database Insights for Amazon Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_DatabaseInsights.TurningOnAdvanced.html)
+ **Amazon Aurora 사용 설명서의 [Turning on the Standard mode of Database Insights for Amazon Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_DatabaseInsights.TurningOnStandard.html)

Aurora PostgreSQL Limitless 데이터베이스에 대한 Database Insights의 고급 모드 또는 표준 모드를 활성화하는 방법에 대한 자세한 내용은 다음 주제를 참조하세요.
+ *Amazon Aurora 사용 설명서*의 [Aurora PostgreSQL Limitless Database용 Database Insights의 고급 모드 켜기](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/limitless-monitoring.cwdbi.advanced.html)
+ *Amazon Aurora 사용 설명서*의 [Aurora PostgreSQL Limitless Database용 Database Insights의 표준 모드 켜기](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/limitless-monitoring.cwdbi.standard.html)

## Database Insights의 필수 권한
<a name="w2aac26c13c31c17"></a>

Database Insights를 사용하려면 특정한 IAM 권한이 필요합니다. Database Insights를 사용하려면 CloudWatch, CloudWatch Logs, Amazon RDS, Amazon RDS Performance Insights에 대한 권한이 필요합니다. 더 광범위한 권한을 보유한 경우, 사용자 또는 역할에 이러한 권한을 제공하지 않아도 될 수 있습니다.

Database Insights를 사용하려면 다음과 같은 CloudWatch 권한이 필요합니다.
+ `cloudwatch:BatchGetServiceLevelIndicatorReport`
+ `cloudwatch:DescribeAlarms`
+ `cloudwatch:GetDashboard`
+ `cloudwatch:GetMetricData`
+ `cloudwatch:ListMetrics`
+ `cloudwatch:PutDashboard`

Database Insights를 사용하려면 다음과 같은 CloudWatch Logs 권한이 필요합니다.
+ `logs:DescribeLogGroups`
+ `logs:GetQueryResults`
+ `logs:StartQuery`
+ `logs:StopQuery`

Database Insights를 사용하려면 다음과 같은 Amazon RDS 권한이 필요합니다.
+ `rds:DescribeDBClusters`
+ `rds:DescribeDBInstances`
+ `rds:DescribeEvents`
+ `rds:DescribeDBShardGroups`(Aurora PostgreSQL Limitless Database를 사용하는 경우)

Database Insights를 사용하려면 다음가 같은 Performance Insights 권한이 필요합니다.
+ `pi:ListAvailableResourceMetrics`
+ `pi:ListAvailableResourceDimensions`
+ `pi:DescribeDimensionKeys`
+ `pi:GetDimensionKeyDetails`
+ `pi:GetResourceMetrics`
+ `pi:ListPerformanceAnalysisReports`
+ `pi:GetResourceMetadata`
+ `pi:GetPerformanceAnalysisReport`
+ `pi:CreatePerformanceAnalysisReport`
+ `pi:DeletePerformanceAnalysisReport`
+ `pi:ListTagsForResource`
+ `pi:TagResource`
+ `pi:UntagResource`

아래의 정책 샘플에는 Database Insights에 전체 액세스하는 데 필요한 권한이 포함되어 있습니다.

### 전체 액세스를 위한 정책 샘플
<a name="Database-Insights-permissions-sample"></a>

------
#### [ JSON ]

****  

```
{
    "Version":"2012-10-17",		 	 	 
    "Statement": [{
    "Effect" : "Allow",
      "Action" : [
        "cloudwatch:BatchGetServiceLevelIndicatorReport",
        "cloudwatch:DescribeAlarms",
        "cloudwatch:GetMetricStatistics",
        "cloudwatch:GetMetricData",
        "cloudwatch:ListMetrics",
        "cloudwatch:PutDashboard"
      ],
      "Resource" : "*"
    },
    {
    "Effect" : "Allow",
      "Action" : [
        "logs:DescribeLogGroups",
        "logs:GetQueryResults",
        "logs:StartQuery",
        "logs:StopQuery"
      ],
      "Resource" : "*"
    },
    {
    "Effect" : "Allow",
      "Action" : [
        "pi:DescribeDimensionKeys",
        "pi:GetDimensionKeyDetails",
        "pi:GetResourceMetadata",
        "pi:GetResourceMetrics",
        "pi:ListAvailableResourceDimensions",
        "pi:ListAvailableResourceMetrics",
        "pi:CreatePerformanceAnalysisReport",
        "pi:GetPerformanceAnalysisReport",
        "pi:ListPerformanceAnalysisReports",
        "pi:DeletePerformanceAnalysisReport",
        "pi:TagResource",
        "pi:UntagResource",
        "pi:ListTagsForResource"
      ],
      "Resource" : "arn:aws:pi:*:*:*/rds/*"
    },
    {
    "Effect" : "Allow",
      "Action" : [
        "rds:DescribeDBInstances",
        "rds:DescribeDBClusters",
        "rds:DescribeEvents"
      ],
      "Resource" : "*"
    }
  ]
}
```

------