github.com/ves/terraform@v0.8.0-beta2/website/source/docs/providers/aws/d/ebs_volume.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_ebs_volume" 4 sidebar_current: "docs-aws-datasource-ebs-volume" 5 description: |- 6 Get information on an EBS volume. 7 --- 8 9 # aws\_ebs\_volume 10 11 Use this data source to get information about an EBS volume for use in other 12 resources. 13 14 ## Example Usage 15 16 ``` 17 data "aws_ebs_volume" "ebs_volume" { 18 most_recent = true 19 filter { 20 name = "volume-type" 21 values = ["gp2"] 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 35 recent Volume. 36 * `filter` - (Optional) One or more name/value pairs to filter off of. There are 37 several valid keys, for a full reference, check out 38 [describe-volumes in the AWS CLI reference][1]. 39 40 41 ## Attributes Reference 42 43 The following attributes are exported: 44 45 * `id` - The volume ID (e.g. vol-59fcb34e). 46 * `volume_id` - The volume ID (e.g. vol-59fcb34e). 47 * `availability_zone` - The AZ where the EBS volume exists. 48 * `encrypted` - Whether the disk is encrypted. 49 * `iops` - The amount of IOPS for the disk. 50 * `size` - The size of the drive in GiBs. 51 * `snapshot_id` - The snapshot_id the EBS volume is based off. 52 * `volume_type` - The type of EBS volume. 53 * `kms_key_id` - The ARN for the KMS encryption key. 54 * `tags` - A mapping of tags for the resource. 55 56 [1]: http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-volumes.html