選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

AWSServiceRoleForSMS - AWS 受管政策

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

AWSServiceRoleForSMS

說明:提供將 AWS AWS 服務執行個體遷移至 EC2、S3 和雲形所需的服務和資源的存取權。

AWSServiceRoleForSMSAWS 受管理的策略

使用此政策

此原則附加至服務連結角色,可讓服務代表您執行動作。您無法將此政策連接至使用者、群組或角色。

政策詳情

  • 類型:服務連結角色原則

  • 創建時間:2019 年 8 月 6 日, 世界標準時間 18:39

  • 編輯時間:2020 年 10 月 15 日, 世界標準時間 17:28

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

政策版本

策略版本:v10(預設值)

原則的預設版本是定義原則權限的版本。當具有策略的使用者或角色發出要求以存取 AWS 資源時,請 AWS 檢查原則的預設版本,以決定是否允許該要求。

政策文件

{ "Version" : "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "cloudformation:CreateChangeSet", "cloudformation:CreateStack" ], "Resource" : "arn:aws:cloudformation:*:*:stack/sms-app-*/*", "Condition" : { "Null" : { "cloudformation:ResourceTypes" : "false" }, "ForAllValues:StringEquals" : { "cloudformation:ResourceTypes" : [ "AWS::EC2::Instance", "AWS::ApplicationInsights::Application", "AWS::ResourceGroups::Group" ] } } }, { "Effect" : "Allow", "Action" : [ "cloudformation:DeleteStack", "cloudformation:ExecuteChangeSet", "cloudformation:DeleteChangeSet", "cloudformation:DescribeChangeSet", "cloudformation:DescribeStacks", "cloudformation:DescribeStackEvents", "cloudformation:DescribeStackResource", "cloudformation:DescribeStackResources", "cloudformation:GetTemplate" ], "Resource" : "arn:aws:cloudformation:*:*:stack/sms-app-*/*" }, { "Effect" : "Allow", "Action" : [ "cloudformation:ValidateTemplate", "s3:ListAllMyBuckets" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "s3:CreateBucket", "s3:DeleteBucket", "s3:DeleteObject", "s3:GetBucketAcl", "s3:GetBucketLocation", "s3:GetObject", "s3:ListBucket", "s3:PutObject", "s3:PutObjectAcl", "s3:PutLifecycleConfiguration" ], "Resource" : "arn:aws:s3:::sms-app-*" }, { "Effect" : "Allow", "Action" : [ "sms:CreateReplicationJob", "sms:DeleteReplicationJob", "sms:GetReplicationJobs", "sms:GetReplicationRuns", "sms:GetServers", "sms:ImportServerCatalog", "sms:StartOnDemandReplicationRun", "sms:UpdateReplicationJob" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : "ssm:SendCommand", "Resource" : [ "arn:aws:ssm:*::document/AWS-RunRemoteScript", "arn:aws:s3:::sms-app-*" ] }, { "Effect" : "Allow", "Action" : "ssm:SendCommand", "Resource" : "arn:aws:ec2:*:*:instance/*", "Condition" : { "StringEquals" : { "ssm:resourceTag/UseForSMSApplicationValidation" : [ "true" ] } } }, { "Effect" : "Allow", "Action" : [ "ssm:CancelCommand", "ssm:GetCommandInvocation" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : "ec2:CreateTags", "Resource" : "arn:aws:ec2:*:*:snapshot/*", "Condition" : { "StringEquals" : { "ec2:CreateAction" : "CopySnapshot" } } }, { "Effect" : "Allow", "Action" : "ec2:CopySnapshot", "Resource" : "arn:aws:ec2:*:*:snapshot/*", "Condition" : { "StringLike" : { "aws:RequestTag/SMSJobId" : [ "sms-*" ] } } }, { "Effect" : "Allow", "Action" : [ "ec2:ModifySnapshotAttribute", "ec2:DeleteSnapshot" ], "Resource" : "arn:aws:ec2:*:*:snapshot/*", "Condition" : { "StringLike" : { "ec2:ResourceTag/SMSJobId" : [ "sms-*" ] } } }, { "Effect" : "Allow", "Action" : [ "ec2:CopyImage", "ec2:DescribeImages", "ec2:DescribeInstances", "ec2:DescribeSnapshots", "ec2:DescribeSnapshotAttribute", "ec2:DeregisterImage", "ec2:ImportImage", "ec2:DescribeImportImageTasks", "ec2:GetEbsEncryptionByDefault" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "iam:GetRole", "iam:GetInstanceProfile" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "ec2:DisassociateIamInstanceProfile", "ec2:AssociateIamInstanceProfile", "ec2:ReplaceIamInstanceProfileAssociation" ], "Resource" : "arn:aws:ec2:*:*:instance/*", "Condition" : { "StringLike" : { "ec2:ResourceTag/aws:cloudformation:stack-id" : "arn:aws:cloudformation:*:*:stack/sms-app-*/*" } } }, { "Effect" : "Allow", "Action" : "iam:PassRole", "Resource" : "*", "Condition" : { "StringEquals" : { "iam:PassedToService" : "ec2.amazonaws.com" } } }, { "Effect" : "Allow", "Action" : "iam:PassRole", "Resource" : "*", "Condition" : { "StringEqualsIfExists" : { "iam:PassedToService" : "cloudformation.amazonaws.com" }, "StringLike" : { "iam:AssociatedResourceArn" : "arn:aws:cloudformation:*:*:stack/sms-app-*/*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:RunInstances" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "ec2:CreateTags", "ec2:DeleteTags" ], "Resource" : "arn:aws:ec2:*:*:instance/*" }, { "Effect" : "Allow", "Action" : [ "ec2:ModifyInstanceAttribute", "ec2:StopInstances", "ec2:StartInstances", "ec2:TerminateInstances" ], "Resource" : "*", "Condition" : { "StringLike" : { "ec2:ResourceTag/aws:cloudformation:stack-id" : "arn:aws:cloudformation:*:*:stack/sms-app-*/*" } } }, { "Effect" : "Allow", "Action" : [ "applicationinsights:Describe*", "applicationinsights:List*", "cloudformation:ListStackResources" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "applicationinsights:CreateApplication", "applicationinsights:CreateComponent", "applicationinsights:UpdateApplication", "applicationinsights:DeleteApplication", "applicationinsights:UpdateComponentConfiguration", "applicationinsights:DeleteComponent" ], "Resource" : "arn:aws:applicationinsights:*:*:application/resource-group/sms-app-*" }, { "Effect" : "Allow", "Action" : [ "resource-groups:CreateGroup", "resource-groups:GetGroup", "resource-groups:UpdateGroup", "resource-groups:DeleteGroup" ], "Resource" : "arn:aws:resource-groups:*:*:group/sms-app-*", "Condition" : { "StringLike" : { "aws:ResourceTag/aws:cloudformation:stack-id" : "arn:aws:cloudformation:*:*:stack/sms-app-*/*" } } }, { "Effect" : "Allow", "Action" : [ "iam:CreateServiceLinkedRole" ], "Resource" : [ "arn:aws:iam::*:role/aws-service-role/application-insights.amazonaws.com/AWSServiceRoleForApplicationInsights" ], "Condition" : { "StringEquals" : { "iam:AWSServiceName" : "application-insights.amazonaws.com" } } } ] }

進一步了解

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。