Namespace Pulumi.Aws.Ebs
Classes
DefaultKmsKey
Provides a resource to manage the default customer master key (CMK) that your AWS account uses to encrypt EBS volumes.
Your AWS account has an AWS-managed default CMK that is used for encrypting an EBS volume when no CMK is specified in the API call that creates the volume.
By using the aws.ebs.DefaultKmsKey resource, you can specify a customer-managed CMK to use in place of the AWS-managed default CMK.
NOTE: Creating an
aws.ebs.DefaultKmsKeyresource does not enable default EBS encryption. Use theaws.ebs.EncryptionByDefaultto enable default EBS encryption.
NOTE: Destroying this resource will reset the default CMK to the account's AWS-managed default CMK for EBS.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ebs.DefaultKmsKey("example", new Aws.Ebs.DefaultKmsKeyArgs
{
KeyArn = aws_kms_key.Example.Arn,
});
}
}
DefaultKmsKeyArgs
DefaultKmsKeyState
EncryptionByDefault
Provides a resource to manage whether default EBS encryption is enabled for your AWS account in the current AWS region. To manage the default KMS key for the region, see the aws.ebs.DefaultKmsKey resource.
NOTE: Removing this resource disables default EBS encryption.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ebs.EncryptionByDefault("example", new Aws.Ebs.EncryptionByDefaultArgs
{
Enabled = true,
});
}
}
EncryptionByDefaultArgs
EncryptionByDefaultState
GetDefaultKmsKey
GetDefaultKmsKeyResult
GetEncryptionByDefault
GetEncryptionByDefaultResult
GetSnapshot
GetSnapshotArgs
GetSnapshotIds
GetSnapshotIdsArgs
GetSnapshotIdsResult
GetSnapshotResult
GetVolume
GetVolumeArgs
GetVolumeResult
Snapshot
Creates a Snapshot of an EBS Volume.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
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,
});
}
}
SnapshotArgs
SnapshotCopy
Creates a Snapshot of a snapshot.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
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" },
},
});
}
}
SnapshotCopyArgs
SnapshotCopyState
SnapshotState
Volume
Manages a single EBS volume.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ebs.Volume("example", new Aws.Ebs.VolumeArgs
{
AvailabilityZone = "us-west-2a",
Size = 40,
Tags =
{
{ "Name", "HelloWorld" },
},
});
}
}