Volume
Manages a single EBS volume.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ebs.Volume;
import com.pulumi.aws.ebs.VolumeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Volume("example", VolumeArgs.builder()
.availabilityZone("us-west-2a")
.size(40)
.tags(Map.of("Name", "HelloWorld"))
.build());
}
}
Content copied to clipboard
Import
Using pulumi import
, import EBS Volumes using the id
. For example:
$ pulumi import aws:ebs/volume:Volume id vol-049df61146c4d7901
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
The ARN for the KMS encryption key. When specifying kms_key_id
, encrypted
needs to be set to true. Note: The provider must be running with credentials which have the GenerateDataKeyWithoutPlaintext
permission on the specified KMS key as required by the EBS KMS CMK volume provisioning process to prevent a volume from being created and almost immediately deleted.
Link copied to clipboard
Link copied to clipboard