diff --git a/website/source/docs/providers/aws/r/snapshot_create_volume_permission.html.markdown b/website/source/docs/providers/aws/r/snapshot_create_volume_permission.html.markdown new file mode 100644 index 000000000..6d571725a --- /dev/null +++ b/website/source/docs/providers/aws/r/snapshot_create_volume_permission.html.markdown @@ -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`". diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index c28fbdb06..74b17a0a3 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -266,7 +266,7 @@ -