다중 위치 카나리에 대한 권한
다중 위치 카나리를 생성하고 관리하려면 IAM 보안 주체에 표준 CloudWatch Synthetics 권한(CloudWatch canary에 필요한 역할 및 권한 참조)과 다음이 있어야 합니다.
-
synthetics:ReplicateCanary- CloudWatch Synthetics 서비스가 사용자를 대신하여 복제본 리전에서 복제본을 생성, 업데이트 및 삭제할 수 있도록 허용합니다. 정책에 이미synthetics:*가 포함되어 있는 경우 이 권한이 포함되며 추가 작업이 필요하지 않습니다.
다중 위치 카나리에 사용되는 조건 키
IAM 정책에서 조건 키를 사용하여 복제본 위치로 사용할 수 있는 리전을 제어할 수 있습니다. 다음 조건 키를 사용할 수 있습니다.
| 조건 키 | 설명 | 형식 | 다음과 함께 사용됨 |
|---|---|---|---|
synthetics:AddReplicaLocations |
요청에 지정된 복제본 리전을 기준으로 액세스 필터링 | ArrayOfString | synthetics:CreateCanary,
synthetics:UpdateCanary |
synthetics:RemoveReplicaLocations |
요청에서 제거되는 복제본 리전을 기준으로 액세스 필터링 | ArrayOfString | synthetics:UpdateCanary |
예: 특정 리전에만 복제 허용
다음 정책은 미국 및 캐나다 리전에서만 복제본을 사용하여 카나리를 생성하고 업데이트할 수 있도록 허용합니다.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "synthetics:CreateCanary", "synthetics:UpdateCanary" ], "Resource": "*", "Condition": { "ForAllValues:StringLike": { "synthetics:AddReplicaLocations": [ "us-*", "ca-*" ] } } } ] }
예: 특정 리전에 대한 복제 거부
다음 정책은 eu-west-1 또는 ap-southeast-1에서 복제본이 있는 카나리의 생성 또는 업데이트를 거부합니다.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Deny", "Action": [ "synthetics:CreateCanary", "synthetics:UpdateCanary" ], "Resource": "*", "Condition": { "ForAnyValue:StringEquals": { "synthetics:AddReplicaLocations": [ "eu-west-1", "ap-southeast-1" ] } } } ] }
CloudWatch Synthetics 권한에 대한 자세한 내용은 CloudWatch canary에 필요한 역할 및 권한 섹션을 참조하세요.