EC2InstanceProfileForImageBuilder - AWS 托管策略

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

EC2InstanceProfileForImageBuilder

描述:Image Builder 服务的 EC2 实例配置文件。

EC2InstanceProfileForImageBuilder 是一项 AWS 托管式策略

使用此策略

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

策略详细信息

  • 类型: AWS 托管策略

  • 创建时间:2019 年 12 月 1 日 19:08 UTC

  • 编辑时间:世界标准时间 2024 年 12 月 26 日 23:52

  • ARN: arn:aws:iam::aws:policy/EC2InstanceProfileForImageBuilder

策略版本

策略版本:v5 (默认值)

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

JSON 策略文档

{ "Version" : "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "ec2:DescribeVolumes", "ec2:DescribeSnapshots" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "ec2:CreateSnapshot" ], "Resource" : [ "arn:aws:ec2:*:*:snapshot/*" ], "Condition" : { "StringEquals" : { "aws:RequestTag/CreatedBy" : "EC2 Image Builder" } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateSnapshot" ], "Resource" : [ "arn:aws:ec2:*:*:volume/*" ], "Condition" : { "StringEquals" : { "aws:ResourceTag/CreatedBy" : "EC2 Image Builder" } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateTags" ], "Resource" : "*", "Condition" : { "StringEquals" : { "ec2:CreateAction" : "CreateSnapshot", "aws:RequestTag/CreatedBy" : [ "EC2 Image Builder" ] } } }, { "Effect" : "Allow", "Action" : [ "s3:GetObject" ], "Resource" : "arn:aws:s3:::*/*.ISO", "Condition" : { "StringEquals" : { "s3:ResourceAccount" : "${aws:PrincipalAccount}" } } }, { "Effect" : "Allow", "Action" : [ "imagebuilder:GetComponent", "imagebuilder:GetMarketplaceResource" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "kms:Decrypt" ], "Resource" : "*", "Condition" : { "ForAnyValue:StringEquals" : { "kms:EncryptionContextKeys" : "aws:imagebuilder:arn", "aws:CalledVia" : [ "imagebuilder.amazonaws.com" ] } } }, { "Effect" : "Allow", "Action" : [ "s3:GetObject" ], "Resource" : "arn:aws:s3:::ec2imagebuilder*" }, { "Effect" : "Allow", "Action" : [ "logs:CreateLogStream", "logs:CreateLogGroup", "logs:PutLogEvents" ], "Resource" : "arn:aws:logs:*:*:log-group:/aws/imagebuilder/*" } ] }

了解更多信息