Resource: awsSnapshotCreateVolumePermission
Adds permission to create volumes off of a given EBS Snapshot.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsEbsVolumeExample = new aws.ebsVolume.EbsVolume(this, "example", {
availabilityZone: "us-west-2a",
size: 40,
});
const awsEbsSnapshotExampleSnapshot = new aws.ebsSnapshot.EbsSnapshot(
this,
"example_snapshot",
{
volumeId: awsEbsVolumeExample.id,
}
);
new aws.snapshotCreateVolumePermission.SnapshotCreateVolumePermission(
this,
"example_perm",
{
accountId: "12345678",
snapshotId: awsEbsSnapshotExampleSnapshot.id,
}
);
Argument Reference
The following arguments are supported:
snapshotId
- (Required) A snapshot IDaccountId
- (Required) An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- A combination of "snapshotId
-accountId
".