github.com/greysond/terraform@v0.8.5-0.20170124173113-439b5507bbe9/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 most_recent = true 18 owners = ["self"] 19 filter { 20 name = "volume-size" 21 values = ["40"] 22 } 23 filter { 24 name = "tag:Name" 25 values = ["Example"] 26 } 27 } 28 ``` 29 30 ## Argument Reference 31 32 The following arguments are supported: 33 34 * `most_recent` - (Optional) If more than one result is returned, use the most recent snapshot. 35 36 * `owners` - (Optional) Returns the snapshots owned by the specified owner id. Multiple owners can be specified. 37 38 * `snapshot_ids` - (Optional) Returns information on a specific snapshot_id. 39 40 * `restorable_by_user_ids` - (Optional) One or more AWS accounts IDs that can create volumes from the snapshot. 41 42 * `filter` - (Optional) One or more name/value pairs to filter off of. There are 43 several valid keys, for a full reference, check out 44 [describe-volumes in the AWS CLI reference][1]. 45 46 47 ## Attributes Reference 48 49 The following attributes are exported: 50 51 * `id` - The snapshot ID (e.g. snap-59fcb34e). 52 * `snapshot_id` - The snapshot ID (e.g. snap-59fcb34e). 53 * `description` - A description for the snapshot 54 * `owner_id` - The AWS account ID of the EBS snapshot owner. 55 * `owner_alias` - Value from an Amazon-maintained list (`amazon`, `aws-marketplace`, `microsoft`) of snapshot owners. 56 * `volume_id` - The volume ID (e.g. vol-59fcb34e). 57 * `encrypted` - Whether the snapshot is encrypted. 58 * `volume_size` - The size of the drive in GiBs. 59 * `kms_key_id` - The ARN for the KMS encryption key. 60 * `data_encryption_key_id` - The data encryption key identifier for the snapshot. 61 * `state` - The snapshot state. 62 * `tags` - A mapping of tags for the resource. 63 64 [1]: http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-snapshots.html