Adds permission to create volumes off of a given EBS Snapshot.
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
}
This resource supports the following arguments:
snapshot_id
- (Required) A snapshot IDaccount_id
- (Required) An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's ownerThis resource exports the following attributes in addition to the arguments above:
id
- A combination of "snapshot_id
-account_id
".