Skip to content

SPHTech-Platform/terraform-aws-kms

Repository files navigation

KMS

Create KMS key along with necessary key policies.

Requirements

Name Version
terraform >= 0.15
aws >= 3.40

Providers

Name Version
aws >= 3.40

Modules

No modules.

Resources

Name Type
aws_kms_alias.key resource
aws_kms_key.key resource
aws_caller_identity.current data source
aws_iam_policy_document.combined_key_policy data source
aws_iam_policy_document.iam_key_policy data source

Inputs

Name Description Type Default Required
alias Alias for the created key. Set to null or empty to not create one string "alias/terraform" no
deletion_window_in_days Number of days before key is permanently deleted number 30 no
enable_key_rotation Enable KMS Key Rotation bool true no
key_description Textual description on the key string "" no
key_policy_statements Additional statements for the key policies. list(string) [] no
tags Tags for resoruces map(string) {} no

Outputs

Name Description
key_arn ARN of the key created
key_id Created Key ID