AWSEC2VssSnapshotPolicy - AWS Managed Policy

AWSEC2VssSnapshotPolicy

Description: This policy is attached to the IAM role that's attached to your Amazon EC2 Windows Instances to enable the Amazon EC2 VSS solution to create and add tags to Amazon Machine Images (AMI) and EBS Snapshots.

AWSEC2VssSnapshotPolicy is an AWS managed policy.

Using this policy

You can attach AWSEC2VssSnapshotPolicy to your users, groups, and roles.

Policy details

  • Type: AWS managed policy

  • Creation time: March 27, 2024, 16:32 UTC

  • Edited time: November 20, 2024, 17:44 UTC

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

Policy version

Policy version: v2 (default)

The policy's default version is the version that defines the permissions for the policy. When a user or role with the policy makes a request to access an AWS resource, AWS checks the default version of the policy to determine whether to allow the request.

JSON policy document

{ "Version" : "2012-10-17", "Statement" : [ { "Sid" : "DescribeInstanceInfo", "Effect" : "Allow", "Action" : [ "ec2:DescribeInstanceAttribute" ], "Resource" : [ "arn:aws:ec2:*:*:instance/*" ], "Condition" : { "ArnLike" : { "ec2:SourceInstanceARN" : "arn:aws:ec2:*:*:instance/${ec2:InstanceId}" } } }, { "Sid" : "CreateSnapshotsWithTag", "Effect" : "Allow", "Action" : [ "ec2:CreateSnapshots" ], "Resource" : [ "arn:aws:ec2:*:*:snapshot/*" ], "Condition" : { "StringLike" : { "aws:RequestTag/AwsVssConfig" : "*" } } }, { "Sid" : "CreateSnapshotsAccessInstance", "Effect" : "Allow", "Action" : [ "ec2:CreateSnapshots" ], "Resource" : [ "arn:aws:ec2:*:*:instance/*" ], "Condition" : { "ArnLike" : { "ec2:SourceInstanceARN" : "arn:aws:ec2:*:*:instance/${ec2:InstanceId}" } } }, { "Sid" : "CreateSnapshotsAccessVolume", "Effect" : "Allow", "Action" : [ "ec2:CreateSnapshots" ], "Resource" : [ "arn:aws:ec2:*:*:volume/*" ] }, { "Sid" : "CreateImageWithTag", "Effect" : "Allow", "Action" : [ "ec2:CreateImage" ], "Resource" : [ "arn:aws:ec2:*:*:snapshot/*", "arn:aws:ec2:*:*:image/*" ], "Condition" : { "StringLike" : { "aws:RequestTag/AwsVssConfig" : "*" } } }, { "Sid" : "CreateImageAccessInstance", "Effect" : "Allow", "Action" : [ "ec2:CreateImage" ], "Resource" : [ "arn:aws:ec2:*:*:instance/*" ], "Condition" : { "ArnLike" : { "ec2:SourceInstanceARN" : "arn:aws:ec2:*:*:instance/${ec2:InstanceId}" } } }, { "Sid" : "CreateTagsOnResourceCreation", "Effect" : "Allow", "Action" : "ec2:CreateTags", "Resource" : [ "arn:aws:ec2:*:*:snapshot/*", "arn:aws:ec2:*:*:image/*" ], "Condition" : { "StringEquals" : { "ec2:CreateAction" : [ "CreateImage", "CreateSnapshots" ] } } }, { "Sid" : "CreateTagsAfterResourceCreation", "Effect" : "Allow", "Action" : "ec2:CreateTags", "Resource" : [ "arn:aws:ec2:*:*:snapshot/*", "arn:aws:ec2:*:*:image/*" ], "Condition" : { "StringLike" : { "ec2:ResourceTag/AwsVssConfig" : "*" }, "ForAllValues:StringEquals" : { "aws:TagKeys" : [ "AppConsistent", "Device" ] } } }, { "Sid" : "DescribeImagesAndSnapshots", "Effect" : "Allow", "Action" : [ "ec2:DescribeImages", "ec2:DescribeSnapshots" ], "Resource" : "*" } ] }

Learn more