ebs-kms-key.tf 708 B

1234567891011121314151617181920212223
  1. module "ebs_root_encrypt_decrypt" {
  2. source = "../../submodules/kms/ebs-key"
  3. name = "ebs_root_encrypt_decrypt"
  4. alias = "alias/ebs_root_encrypt_decrypt"
  5. description = "Default key for encrypting and decryption EBS volumes."
  6. tags = merge(var.standard_tags, var.tags)
  7. key_admin_arns = [ ]
  8. key_user_arns = [ ]
  9. key_attacher_arns = [ ]
  10. standard_tags = var.standard_tags
  11. aws_account_id = var.aws_account_id
  12. aws_partition = var.aws_partition
  13. }
  14. # Note: The following wasn't configured in tf11
  15. resource "aws_ebs_default_kms_key" "ebs_root_encrypt_decrypt" {
  16. key_arn = module.ebs_root_encrypt_decrypt.key_arn
  17. }
  18. resource "aws_ebs_encryption_by_default" "encryptbydefault" {
  19. enabled = true
  20. }