Skip to content

A KMS key used to encrypt data-at-rest stored in ECR

License

Notifications You must be signed in to change notification settings

dod-iac/terraform-aws-ecr-kms-key

Repository files navigation

Usage

Creates a KMS key used to encrypt data-at-rest stored in ECR.

module "ecr_kms_key" {
  source = "dod-iac/ecr-kms-key/aws"

  tags = {
    Application = var.application
    Environment = var.environment
    Automation  = "Terraform"
  }
}

Terraform Version

Terraform 0.12. Pin module version to ~> 1.0.0 . Submit pull-requests to master branch.

Terraform 0.11 is not supported.

License

This project constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. However, because the project utilizes code licensed from contributors and other third parties, it therefore is licensed under the MIT License. See LICENSE file for more information.

Requirements

Name Version
terraform >= 0.13
aws ~> 3.0

Providers

Name Version
aws ~> 3.0

Modules

No Modules.

Resources

Name
aws_caller_identity
aws_iam_policy_document
aws_kms_alias
aws_kms_key
aws_partition
aws_region

Inputs

Name Description Type Default Required
description The description of the key as viewed in AWS console. string "A KMS key used to encrypt data-at-rest stored in ECR." no
key_deletion_window_in_days Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days. string 30 no
name The display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/). string "alias/ecr" no
tags Tags applied to the KMS key. map(string) {} no

Outputs

Name Description
aws_kms_alias_arn The Amazon Resource Name (ARN) of the key alias.
aws_kms_alias_name The display name of the alias.
aws_kms_key_arn The Amazon Resource Name (ARN) of the key.

About

A KMS key used to encrypt data-at-rest stored in ECR

Resources

License

Stars

Watchers

Forks

Packages

No packages published