public MyStack() { var example = new Aws.Ebs.Volume("example", new Aws.Ebs.VolumeArgs { AvailabilityZone = "us-west-2a", Size = 40, Tags = { { "Name", "HelloWorld" }, }, }); var exampleSnapshot = new Aws.Ebs.Snapshot("exampleSnapshot", new Aws.Ebs.SnapshotArgs { Tags = { { "Name", "HelloWorld_snap" }, }, VolumeId = example.Id, }); var exampleCopy = new Aws.Ebs.SnapshotCopy("exampleCopy", new Aws.Ebs.SnapshotCopyArgs { SourceRegion = "us-west-2", SourceSnapshotId = exampleSnapshot.Id, Tags = { { "Name", "HelloWorld_copy_snap" }, }, }); }
public MyStack() { var example = new Aws.Ebs.Volume("example", new Aws.Ebs.VolumeArgs { AvailabilityZone = "us-west-2a", Size = 40, }); var exampleSnapshot = new Aws.Ebs.Snapshot("exampleSnapshot", new Aws.Ebs.SnapshotArgs { VolumeId = example.Id, }); var examplePerm = new Aws.Ec2.SnapshotCreateVolumePermission("examplePerm", new Aws.Ec2.SnapshotCreateVolumePermissionArgs { AccountId = "12345678", SnapshotId = exampleSnapshot.Id, }); }
public MyStack() { var example = new Aws.Ebs.Volume("example", new Aws.Ebs.VolumeArgs { AvailabilityZone = "us-west-2a", Size = 40, Tags = { { "Name", "HelloWorld" }, }, }); var exampleSnapshot = new Aws.Ebs.Snapshot("exampleSnapshot", new Aws.Ebs.SnapshotArgs { Tags = { { "Name", "HelloWorld_snap" }, }, VolumeId = example.Id, }); }