AmazonEC2RolePolicyForLaunchWizard - AWS 托管策略

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

AmazonEC2RolePolicyForLaunchWizard

描述:适用于 Amazon LaunchWizard 服务角色的托管策略 EC2

AmazonEC2RolePolicyForLaunchWizard 是一项 AWS 托管式策略

使用此策略

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

策略详细信息

  • 类型: AWS 托管策略

  • 创建时间:2019 年 11 月 13 日 08:05 UTC

  • 编辑时间:2024 年 9 月 25 日 22:40 UTC

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

策略版本

策略版本:v11 (默认值)

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

JSON 策略文档

{ "Version" : "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "ec2:AttachVolume", "ec2:RebootInstances", "ec2:StartInstances", "ec2:StopInstances" ], "Resource" : [ "arn:aws:ec2:*:*:volume/*", "arn:aws:ec2:*:*:instance/*" ], "Condition" : { "StringLike" : { "ec2:ResourceTag/LaunchWizardResourceGroupID" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:ReplaceRoute" ], "Resource" : "arn:aws:ec2:*:*:route-table/*", "Condition" : { "StringLike" : { "ec2:ResourceTag/LaunchWizardApplicationType" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DescribeAddresses", "ec2:AssociateAddress", "ec2:DescribeInstances", "ec2:DescribeImages", "ec2:DescribeRegions", "ec2:DescribeVolumes", "ec2:DescribeRouteTables", "ec2:ModifyInstanceAttribute", "cloudwatch:GetMetricStatistics", "cloudwatch:PutMetricData", "ssm:GetCommandInvocation" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "ec2:CreateTags", "ec2:CreateVolume" ], "Resource" : "arn:aws:ec2:*:*:volume/*", "Condition" : { "ForAllValues:StringEquals" : { "aws:TagKeys" : [ "LaunchWizardResourceGroupID", "LaunchWizardApplicationType" ] } } }, { "Effect" : "Allow", "Action" : [ "s3:GetObject", "s3:ListBucket", "s3:PutObject", "s3:PutObjectTagging", "s3:GetBucketLocation", "logs:PutLogEvents", "logs:DescribeLogGroups", "logs:DescribeLogStreams" ], "Resource" : [ "arn:aws:logs:*:*:*", "arn:aws:s3:::launchwizard*", "arn:aws:s3:::aws-sap-data-provider/config.properties" ] }, { "Effect" : "Allow", "Action" : "logs:Create*", "Resource" : "arn:aws:logs:*:*:*" }, { "Effect" : "Allow", "Action" : [ "ec2:Describe*", "cloudformation:DescribeStackResources", "cloudformation:SignalResource", "cloudformation:DescribeStackResource", "cloudformation:DescribeStacks" ], "Resource" : "*", "Condition" : { "ForAllValues:StringEquals" : { "aws:TagKeys" : "LaunchWizardResourceGroupID" } } }, { "Effect" : "Allow", "Action" : [ "dynamodb:BatchGetItem", "dynamodb:PutItem", "sqs:ReceiveMessage", "sqs:SendMessage", "dynamodb:Scan", "s3:ListBucket", "dynamodb:Query", "dynamodb:UpdateItem", "dynamodb:DeleteTable", "dynamodb:CreateTable", "s3:GetObject", "dynamodb:DescribeTable", "s3:GetBucketLocation", "dynamodb:UpdateTable" ], "Resource" : [ "arn:aws:s3:::launchwizard*", "arn:aws:dynamodb:*:*:table/LaunchWizard*", "arn:aws:sqs:*:*:LaunchWizard*" ] }, { "Effect" : "Allow", "Action" : "ssm:SendCommand", "Resource" : "arn:aws:ec2:*:*:instance/*", "Condition" : { "StringLike" : { "ssm:resourceTag/LaunchWizardApplicationType" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ssm:SendCommand", "ssm:GetDocument" ], "Resource" : [ "arn:aws:ssm:*:*:document/AWSSAP-InstallBackint", "arn:aws:ssm:*:*:document/AWSSAP-InstallBackintForAWSBackup" ] }, { "Effect" : "Allow", "Action" : [ "fsx:DescribeFileSystems", "fsx:ListTagsForResource", "fsx:DescribeStorageVirtualMachines" ], "Resource" : "*", "Condition" : { "ForAllValues:StringLike" : { "aws:TagKeys" : "LaunchWizard*" } } } ] }

了解更多信息