本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
AmazonDocDBElasticFullAccess
描述:提供对 Amazon DocumentDB 弹性集群的完全访问权限及其依赖项的其他必要权限EC2,包括、KMS SecretsManager、 CloudWatch 和。IAM
AmazonDocDBElasticFullAccess
是一项 AWS 托管式策略。
使用此策略
您可以将 AmazonDocDBElasticFullAccess
附加到您的用户、组和角色。
策略详细信息
-
类型: AWS 托管策略
-
创作时间:2023 年 6 月 5 日 13:51 UTC
-
编辑时间:2024 年 12 月 9 日 16:51 UTC
-
ARN:
arn:aws:iam::aws:policy/AmazonDocDBElasticFullAccess
策略版本
策略版本:v3 (默认值)
此策略的默认版本是定义策略权限的版本。当使用该策略的用户或角色请求访问 AWS 资源时, AWS 会检查策略的默认版本以确定是否允许该请求。
JSON政策文件
{
"Version" : "2012-10-17",
"Statement" : [
{
"Sid" : "DocdbElasticSid",
"Effect" : "Allow",
"Action" : [
"docdb-elastic:CreateCluster",
"docdb-elastic:UpdateCluster",
"docdb-elastic:GetCluster",
"docdb-elastic:DeleteCluster",
"docdb-elastic:ListClusters",
"docdb-elastic:CreateClusterSnapshot",
"docdb-elastic:GetClusterSnapshot",
"docdb-elastic:DeleteClusterSnapshot",
"docdb-elastic:ListClusterSnapshots",
"docdb-elastic:RestoreClusterFromSnapshot",
"docdb-elastic:TagResource",
"docdb-elastic:UntagResource",
"docdb-elastic:ListTagsForResource",
"docdb-elastic:CopyClusterSnapshot",
"docdb-elastic:StartCluster",
"docdb-elastic:StopCluster"
],
"Resource" : [
"*"
]
},
{
"Sid" : "EC2Sid",
"Effect" : "Allow",
"Action" : [
"ec2:CreateVpcEndpoint",
"ec2:DescribeVpcEndpoints",
"ec2:DeleteVpcEndpoints",
"ec2:ModifyVpcEndpoint",
"ec2:DescribeVpcAttribute",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVpcs",
"ec2:DescribeAvailabilityZones",
"secretsmanager:ListSecrets"
],
"Resource" : [
"*"
],
"Condition" : {
"StringEquals" : {
"aws:CalledViaFirst" : "docdb-elastic.amazonaws.com"
}
}
},
{
"Sid" : "KMSSid",
"Effect" : "Allow",
"Action" : [
"kms:Decrypt",
"kms:DescribeKey",
"kms:GenerateDataKey"
],
"Resource" : "*",
"Condition" : {
"StringLike" : {
"kms:ViaService" : [
"docdb-elastic.*.amazonaws.com"
],
"aws:ResourceTag/DocDBElasticFullAccess" : "*"
}
}
},
{
"Sid" : "KMSGrantSid",
"Effect" : "Allow",
"Action" : [
"kms:CreateGrant"
],
"Resource" : "*",
"Condition" : {
"StringLike" : {
"aws:ResourceTag/DocDBElasticFullAccess" : "*",
"kms:ViaService" : [
"docdb-elastic.*.amazonaws.com"
]
},
"Bool" : {
"kms:GrantIsForAWSResource" : true
}
}
},
{
"Sid" : "SecretManagerSid",
"Effect" : "Allow",
"Action" : [
"secretsmanager:ListSecretVersionIds",
"secretsmanager:DescribeSecret",
"secretsmanager:GetSecretValue",
"secretsmanager:GetResourcePolicy"
],
"Resource" : "*",
"Condition" : {
"StringLike" : {
"secretsmanager:ResourceTag/DocDBElasticFullAccess" : "*"
},
"StringEquals" : {
"aws:CalledViaFirst" : "docdb-elastic.amazonaws.com"
}
}
},
{
"Sid" : "CloudwatchSid",
"Effect" : "Allow",
"Action" : [
"cloudwatch:GetMetricData",
"cloudwatch:ListMetrics",
"cloudwatch:GetMetricStatistics"
],
"Resource" : [
"*"
]
},
{
"Sid" : "SLRSid",
"Effect" : "Allow",
"Action" : "iam:CreateServiceLinkedRole",
"Resource" : "arn:aws:iam::*:role/aws-service-role/docdb-elastic.amazonaws.com/AWSServiceRoleForDocDB-Elastic",
"Condition" : {
"StringLike" : {
"iam:AWSServiceName" : "docdb-elastic.amazonaws.com"
}
}
}
]
}