pulumi_wasm_providers_aws_mini::ec2

Module snapshot_create_volume_permission

source
Expand description

Adds permission to create volumes off of a given EBS Snapshot.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let example = volume::create(
        "example",
        VolumeArgs::builder().availability_zone("us-west-2a").size(40).build_struct(),
    );
    let examplePerm = snapshot_create_volume_permission::create(
        "examplePerm",
        SnapshotCreateVolumePermissionArgs::builder()
            .account_id("12345678")
            .snapshot_id("${exampleSnapshot.id}")
            .build_struct(),
    );
    let exampleSnapshot = snapshot::create(
        "exampleSnapshot",
        SnapshotArgs::builder().volume_id("${example.id}").build_struct(),
    );
}

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments