Data Source: aws_ebs_default_kms_key

Use this data source to get the default EBS encryption KMS key in the current region.

Example Usage

data "aws_ebs_default_kms_key" "current" {}

resource "aws_ebs_volume" "example" {
  availability_zone = "us-west-2a"

  encrypted  = true
  kms_key_id = data.aws_ebs_default_kms_key.current.key_arn
}

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: