Skip to content

Resource: awsEbsEncryptionByDefault

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 awsEbsDefaultKmsKey resource.

\~> NOTE: Removing this Terraform resource disables default EBS encryption.

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";
new aws.ebsEncryptionByDefault.EbsEncryptionByDefault(this, "example", {
  enabled: true,
});

Argument Reference

The following arguments are supported:

  • enabled - (Optional) Whether or not default EBS encryption is enabled. Valid values are true or false. Defaults to true.

Attributes Reference

No additional attributes are exported.

Import

Default EBS encryption state can be imported, e.g.,

$ terraform import aws_ebs_encryption_by_default.example default