Skip to content

SPHTech-Platform/terraform-aws-kms

Repository files navigation

KMS

Create KMS key along with necessary key policies.

Requirements

Name Version
terraform >= 1.10
aws >= 6.0

Providers

Name Version
aws >= 6.0

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
aws_region.current 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
region (Optional) Region for the sink. Defaults to AWS provider region. string null no
tags Tags for resoruces map(string) {} no

Outputs

Name Description
key_alias Created key alias
key_arn ARN of the key created
key_id Created key ID

About

Utility module to create KMS Key on AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages