github.com/bpineau/terraform@v0.8.0-rc1.0.20161126184705-a8886012d185/website/source/docs/providers/aws/d/ebs_snapshot.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_ebs_snapshot" 4 sidebar_current: "docs-aws-datasource-ebs-snapshot" 5 description: |- 6 Get information on an EBS Snapshot. 7 --- 8 9 # aws\_ebs\_snapshot 10 11 Use this data source to get information about an EBS Snapshot for use when provisioning EBS Volumes 12 13 ## Example Usage 14 15 ``` 16 data "aws_ebs_snapshot" "ebs_volume" { 17 owners = ["self"] 18 filter { 19 name = "volume-size" 20 values = ["40"] 21 } 22 filter { 23 name = "tag:Name" 24 values = ["Example"] 25 } 26 } 27 ``` 28 29 ## Argument Reference 30 31 The following arguments are supported: 32 33 * `owners` - (Optional) Returns the snapshots owned by the specified owner id. Multiple owners can be specified. 34 35 * `snapshot_ids` - (Optional) Returns information on a specific snapshot_id. 36 37 * `restorable_by_user_ids` - (Optional) One or more AWS accounts IDs that can create volumes from the snapshot. 38 39 * `filter` - (Optional) One or more name/value pairs to filter off of. There are 40 several valid keys, for a full reference, check out 41 [describe-volumes in the AWS CLI reference][1]. 42 43 44 ## Attributes Reference 45 46 The following attributes are exported: 47 48 * `id` - The snapshot ID (e.g. snap-59fcb34e). 49 * `snapshot_id` - The snapshot ID (e.g. snap-59fcb34e). 50 * `description` - A description for the snapshot 51 * `owner_id` - The AWS account ID of the EBS snapshot owner. 52 * `owner_alias` - Value from an Amazon-maintained list (`amazon`, `aws-marketplace`, `microsoft`) of snapshot owners. 53 * `volume_id` - The volume ID (e.g. vol-59fcb34e). 54 * `encrypted` - Whether the snapshot is encrypted. 55 * `volume_size` - The size of the drive in GiBs. 56 * `kms_key_id` - The ARN for the KMS encryption key. 57 * `data_encryption_key_id` - The data encryption key identifier for the snapshot. 58 * `state` - The snapshot state. 59 * `tags` - A mapping of tags for the resource. 60 61 [1]: http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-snapshots.html