Resource: aws_ebs_encryption_by_default

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.

Example Usage

resource "aws_ebs_encryption_by_default" "example" {
  enabled = true
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports no additional attributes.

Import

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