Resource: aws_glue_data_catalog_encryption_settings

Provides a Glue Data Catalog Encryption Settings resource.

Example Usage

resource "aws_glue_data_catalog_encryption_settings" "example" {
  data_catalog_encryption_settings {
    connection_password_encryption {
      aws_kms_key_id                       = aws_kms_key.test.arn
      return_connection_password_encrypted = true
    }

    encryption_at_rest {
      catalog_encryption_mode         = "SSE-KMS"
      catalog_encryption_service_role = aws_iam.role.test.arn
      sse_aws_kms_key_id              = aws_kms_key.test.arn
    }
  }
}

Argument Reference

This resource supports the following arguments:

data_catalog_encryption_settings

connection_password_encryption

encryption_at_rest

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Glue Data Catalog Encryption Settings using CATALOG-ID (AWS account ID if not custom). For example:

import {
  to = aws_glue_data_catalog_encryption_settings.example
  id = "123456789012"
}

Using terraform import, import Glue Data Catalog Encryption Settings using CATALOG-ID (AWS account ID if not custom). For example:

% terraform import aws_glue_data_catalog_encryption_settings.example 123456789012