kms-key.tf 785 B

1234567891011121314151617181920
  1. locals {
  2. # For the default EBS key, we allow the entire account access
  3. root_arn = "arn:${var.aws_partition}:iam::${var.aws_account_id}:root"
  4. }
  5. module "jira_key" {
  6. source = "../../../submodules/kms/ebs-key"
  7. name = "${var.identifier}_key"
  8. alias = "alias/${var.identifier}"
  9. description = "encrypt and decrypt the ${var.identifier} RDS" # updated to match legacy
  10. tags = merge(var.standard_tags, var.tags)
  11. key_admin_arns = []
  12. key_user_arns = concat([local.root_arn], var.extra_key_users)
  13. key_attacher_arns = concat([local.root_arn], var.extra_key_attachers)
  14. standard_tags = var.standard_tags
  15. aws_account_id = var.aws_account_id
  16. aws_partition = var.aws_partition
  17. is_legacy = var.is_legacy
  18. }