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_default_kms_key
resource.
resource "aws_ebs_encryption_by_default" "example" {
enabled = true
}
This resource supports the following arguments:
enabled
- (Optional) Whether or not default EBS encryption is enabled. Valid values are true
or false
. Defaults to true
.This resource exports no additional attributes.
In Terraform v1.5.0 and later, use an import
block to import the default EBS encryption state. For example:
import {
to = aws_ebs_encryption_by_default.example
id = "default"
}
Using terraform import
, import the default EBS encryption state. For example:
% terraform import aws_ebs_encryption_by_default.example default