github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/ebs_snapshot.html.md (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_ebs_snapshot"
     4  sidebar_current: "docs-aws-resource-ebs-snapshot"
     5  description: |-
     6    Provides an elastic block storage snapshot resource.
     7  ---
     8  
     9  # aws\_ebs\_snapshot
    10  
    11  Creates a Snapshot of an EBS Volume.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_ebs_volume" "example" {
    17      availability_zone = "us-west-2a"
    18      size = 40
    19      tags {
    20          Name = "HelloWorld"
    21      }
    22  }
    23  
    24  resource "aws_ebs_snapshot" "example_snapshot" {
    25  	volume_id = "${aws_ebs_volume.example.id}"
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The following arguments are supported:
    32  
    33  * `volume_id` - (Required) The Volume ID of which to make a snapshot.
    34  * `description` - (Optional) A description of what the snapshot is.
    35  
    36  
    37  ## Attributes Reference
    38  
    39  The following attributes are exported:
    40  
    41  * `id` - The snapshot ID (e.g. snap-59fcb34e).
    42  * `owner_id` - The AWS account ID of the EBS snapshot owner.
    43  * `owner_alias` - Value from an Amazon-maintained list (`amazon`, `aws-marketplace`, `microsoft`) of snapshot owners.
    44  * `encrypted` - Whether the snapshot is encrypted.
    45  * `volume_size` - The size of the drive in GiBs.
    46  * `kms_key_id` - The ARN for the KMS encryption key.
    47  * `data_encryption_key_id` - The data encryption key identifier for the snapshot.
    48  * `tags` - A mapping of tags for the resource.