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

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_snapshot_create_volume_permission"
     4  sidebar_current: "docs-aws-resource-snapshot-create-volume-permission"
     5  description: |-
     6    Adds create volume permission to an EBS Snapshot
     7  ---
     8  
     9  # aws\_snapshot\_create\_volume\_permission
    10  
    11  Adds permission to create volumes off of a given EBS Snapshot.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_snapshot_create_volume_permission" "example_perm" {
    17    snapshot_id = "${aws_ebs_snapshot.example_snapshot.id}"
    18    account_id  = "12345678"
    19  }
    20  
    21  resource "aws_ebs_volume" "example" {
    22    availability_zone = "us-west-2a"
    23    size              = 40
    24  }
    25  
    26  resource "aws_ebs_snapshot" "example_snapshot" {
    27    volume_id = "${aws_ebs_volume.example.id}"
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35    * `snapshot_id` - (required) A snapshot ID
    36    * `account_id` - (required) An AWS Account ID to add create volume permissions
    37  
    38  ## Attributes Reference
    39  
    40  The following attributes are exported:
    41  
    42    * `id` - A combination of "`snapshot_id`-`account_id`".