Managing Permissions for a Snapshot

You can share a snapshot with one or more users in the same Region.

This enables them to create a volume or an OUTSCALE machine image (OMI) from your snapshot, or to copy it to their account. The snapshot still belongs to you and you can add or remove permissions to manage who can access it. To know which users have permission for a snapshot, see Getting Information About Your Snapshots.

To create a copy independent from the source snapshot, see Copying a Snapshot in the Same Region or Tutorial: Copying a Snapshot to a Different Region.

Managing Permissions for a Snapshot Using Cockpit

  1. Click Storage > Snapshots.

  2. Click the snapshot you want to share.
    The snapshot is selected.

  3. Click Share/Unshare .
    The SNAPSHOT PERMISSIONS:XXX dialog box appears.

    A list of account IDs of the users that are allowed to use the snapshot is displayed, if any.

  4. To share the snapshot with a user, type its account ID in the Account ID box.

    • To share a snapshot with all users in the Region, type all in the box.

    • To remove permission for a user:

      1. Select one or more account IDs.

      2. Click Unshare to validate.

  5. Click Share to validate.
    The snapshot is shared with the user you specified.

Managing Permissions for a Snapshot Using AWS CLI

To share a snapshot with other users or to remove permissions, use the modify-snapshot-attribute command following this syntax:

Request sample
$ aws ec2 modify-snapshot-attribute \
    --profile YOUR_PROFILE \
    --snapshot-id snap-12345678 \
    --attribute createVolumePermission \
    --operation-type add \
    --user-ids 123456789012,123456789013 \
    [--group NOT_SPECIFIED] \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • snapshot-id: The ID of the snapshot you want to share.

  • attribute: This parameter must be set to createVolumePermission.

  • operation-type: The type of operation you want to perform regarding permissions. This attribute requires one of the following elements:

    • add: One or more permissions to add.

    • remove: One or more permissions to remove.

  • (optional) user-ids: One or more account IDs you want to share the snapshot with or remove permission for.

  • (optional) group: The name of the group you want to share the snapshot with or remove permission for (all if public, otherwise empty).

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The permissions for the snapshot are modified.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.