compliance.tf
Terraform Modules for AWSSecurity, Keys & Configuration

Terraform AWS KMS

KMS keys, aliases, grants, key policies, rotation, multi Region options, and tightly scoped permissions used to encrypt data across AWS services.

Controls enforced

These compliance controls are checked at terraform plan time.

Quick start

module "kms" {
  source  = "awswellarchitected.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}
module "kms" {
  source  = "cccsmedium.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}
module "kms" {
  source  = "cfrpart11.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}
module "kms" {
  source  = "cisv140.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}
module "kms" {
  source  = "cisv500.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}
module "kms" {
  source  = "cis.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}
module "kms" {
  source  = "cisv80ig1.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}
module "kms" {
  source  = "cisacyberessentials.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"

  # ... your arguments here
}

See the Get Started guide and Registry Endpoints for details on how to customize the module for your requirements.

Migration from upstream

Already using terraform-aws-modules? Change only the source URL:

module "kms" {
  source  = "terraform-aws-modules/kms/aws"
  version = "1.0"
}
module "kms" {
  source  = "soc2.compliance.tf/terraform-aws-modules/kms/aws"
  version = "1.0"
}

Same arguments. Same outputs. Controls are checked at terraform plan. See the Migration Guide for step-by-step instructions.

Reversibility

No lock-in. Switch back by reverting the source URL:

module "kms" {
  source  = "terraform-aws-modules/kms/aws"
}

Run terraform init -upgrade. Terraform state is unchanged — same resource addresses, same provider, no compliance.tf-specific resources. Controls you already applied remain in AWS.

Mapped compliance frameworks

Identity and access management

CM-3(6): Cryptography Management

11.30 Controls for open systems

4.6 Securely Manage Enterprise Assets and Software

Framework coverage

Which controls from this module are active under each framework endpoint.

ControlWell-Architected Framework v10AWS Benchmark v1.4.0AWS Benchmark v5.0.0AWS Benchmark v6.0.0Controls v8.0 IG1CISA Cyber EssentialsCCCS Medium Cloud Control ProfileTitle 21 CFR Part 11
KMS CMK rotation should be enabled

enforced by default · not activated by this endpoint

On this page

Ask AI about this

Help improve this page