storagegateway:AttachVolume

Write

storagegateway:AttachVolume is a Write access-level action in the storagegateway service. Grants permission to connect a volume to an iSCSI connection and then attaches the volume to the specified gateway

Resource types

ARNs that storagegateway:AttachVolume can be scoped to in an IAM policy.

arn:${Partition}:storagegateway:${Region}:${Account}:gateway/${GatewayId}
gateway
arn:${Partition}:storagegateway:${Region}:${Account}:gateway/${GatewayId}/volume/${VolumeId}
volume

Condition keys

Keys you can use in the Condition block of a policy that grants storagegateway:AttachVolume.

aws:ResourceTag/${TagKey} String

Filters access by tag-value associated with the resource

Example IAM policy

A minimal policy that allows storagegateway:AttachVolume. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowStoragegatewayAttachVolume",
      "Effect": "Allow",
      "Action": "storagegateway:AttachVolume",
      "Resource": "*"
    }
  ]
}

Related actions in storagegateway

View all storagegateway actions →