document snapshot_create_volume_permissions

This commit is contained in:
clint shryock 2016-12-09 08:36:40 -06:00
parent 42057045ff
commit c54dba65b0
2 changed files with 47 additions and 1 deletions

View File

@ -0,0 +1,42 @@
---
layout: "aws"
page_title: "AWS: aws_snapshot_create_volume_permission"
sidebar_current: "docs-aws-resource-snapshot-create-volume-permission"
description: |-
Adds create volume permission to an EBS Snapshot
---
# aws\_snapshot\_create\_volume\_permission
Adds permission to create volumes off of a given EBS Snapshot.
## Example Usage
```
resource "aws_snapshot_create_volume_permission" "example_perm" {
snapshot_id = "${aws_ebs_snapshot.example_snapshot.id}"
account_id = "12345678"
}
resource "aws_ebs_volume" "example" {
availability_zone = "us-west-2a"
size = 40
}
resource "aws_ebs_snapshot" "example_snapshot" {
volume_id = "${aws_ebs_volume.example.id}"
}
```
## Argument Reference
The following arguments are supported:
* `snapshot_id` - (required) A snapshot ID
* `account_id` - (required) An AWS Account ID to add create volume permissions
## Attributes Reference
The following attributes are exported:
* `id` - A combination of "`snapshot_id`-`account_id`".

View File

@ -266,7 +266,7 @@
</li> </li>
<li<%= sidebar_current(/^docs-aws-resource-(alb|ami|app|autoscaling|ebs|elb|eip|instance|launch|lb|proxy|spot|volume|placement|key-pair|elb_attachment|load-balancer)/) %>> <li<%= sidebar_current(/^docs-aws-resource-(alb|ami|app|autoscaling|ebs|elb|eip|instance|launch|lb|proxy|snapshot|spot|volume|placement|key-pair|elb_attachment|load-balancer)/) %>>
<a href="#">EC2 Resources</a> <a href="#">EC2 Resources</a>
<ul class="nav nav-visible"> <ul class="nav nav-visible">
@ -330,6 +330,10 @@
<a href="/docs/providers/aws/r/autoscaling_schedule.html">aws_autoscaling_schedule</a> <a href="/docs/providers/aws/r/autoscaling_schedule.html">aws_autoscaling_schedule</a>
</li> </li>
<li<%= sidebar_current("docs-aws-resource-snapshot-create-volume-permission") %>>
<a href="/docs/providers/aws/r/snapshot_create_volume_permission.html">aws_snapshot_create_volume_permission</a>
</li>
<li<%= sidebar_current("docs-aws-resource-ebs-snapshot") %>> <li<%= sidebar_current("docs-aws-resource-ebs-snapshot") %>>
<a href="/docs/providers/aws/r/ebs_snapshot.html">aws_ebs_snapshot</a> <a href="/docs/providers/aws/r/ebs_snapshot.html">aws_ebs_snapshot</a>
</li> </li>