AmazonEBSCSIDriverPolicy - AWS 托管策略

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

AmazonEBSCSIDriverPolicy

描述:允许 CSI 驱动程序服务账户代表您调用 EC2 等相关服务的 IAM 政策。

AmazonEBSCSIDriverPolicy是一个AWS 托管策略

使用此策略

您可以将 AmazonEBSCSIDriverPolicy 附加到您的用户、组和角色。

策略详细信息

  • 类型:服务角色策略

  • 创建时间:2022 年 4 月 4 日 17:24 UTC

  • 编辑时间:2022 年 11 月 18 日 14:42 UTC

  • ARN: arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy

策略版本

策略版本:v2(默认)

此策略的默认版本是定义策略权限的版本。当使用该策略的用户或角色请求访问 AWS 资源时, AWS 会检查策略的默认版本以确定是否允许该请求。

JSON 策略文档

{ "Version" : "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "ec2:CreateSnapshot", "ec2:AttachVolume", "ec2:DetachVolume", "ec2:ModifyVolume", "ec2:DescribeAvailabilityZones", "ec2:DescribeInstances", "ec2:DescribeSnapshots", "ec2:DescribeTags", "ec2:DescribeVolumes", "ec2:DescribeVolumesModifications" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "ec2:CreateTags" ], "Resource" : [ "arn:aws:ec2:*:*:volume/*", "arn:aws:ec2:*:*:snapshot/*" ], "Condition" : { "StringEquals" : { "ec2:CreateAction" : [ "CreateVolume", "CreateSnapshot" ] } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteTags" ], "Resource" : [ "arn:aws:ec2:*:*:volume/*", "arn:aws:ec2:*:*:snapshot/*" ] }, { "Effect" : "Allow", "Action" : [ "ec2:CreateVolume" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:RequestTag/ebs.csi.aws.com/cluster" : "true" } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateVolume" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:RequestTag/CSIVolumeName" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteVolume" ], "Resource" : "*", "Condition" : { "StringLike" : { "ec2:ResourceTag/ebs.csi.aws.com/cluster" : "true" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteVolume" ], "Resource" : "*", "Condition" : { "StringLike" : { "ec2:ResourceTag/CSIVolumeName" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteVolume" ], "Resource" : "*", "Condition" : { "StringLike" : { "ec2:ResourceTag/kubernetes.io/created-for/pvc/name" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteSnapshot" ], "Resource" : "*", "Condition" : { "StringLike" : { "ec2:ResourceTag/CSIVolumeSnapshotName" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteSnapshot" ], "Resource" : "*", "Condition" : { "StringLike" : { "ec2:ResourceTag/ebs.csi.aws.com/cluster" : "true" } } } ] }

了解更多信息