From 956efec100a0bd5c2fe77108f85271b5754553a1 Mon Sep 17 00:00:00 2001 From: saikrishnama <> Date: Thu, 11 Apr 2024 15:42:10 -0400 Subject: [PATCH] github workflows --- main.tf | 6 +++--- output.tf | 10 +++++----- variables.tf | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/main.tf b/main.tf index 849e544..868a0b9 100644 --- a/main.tf +++ b/main.tf @@ -11,8 +11,8 @@ resource "aws_kms_key" "kms_key" { } resource "aws_kms_alias" "alias" { - count = var.alias_use_name_prefix != null || var.alias_name != null ? 1 : 0 - name_prefix = var.alias_use_name_prefix != null ? var.alias_name : null - name = var.alias_use_name_prefix == null ? var.alias_name : null + count = var.alias_use_name_prefix != null || var.alias_name != null ? 1 : 0 + name_prefix = var.alias_use_name_prefix != null ? var.alias_name : null + name = var.alias_use_name_prefix == null ? var.alias_name : null target_key_id = aws_kms_key.kms_key.key_id } diff --git a/output.tf b/output.tf index 24bbe8e..9cd83c0 100644 --- a/output.tf +++ b/output.tf @@ -1,9 +1,9 @@ output "kms_key_id" { - description = "KMS Key id" - value = aws_kms_key.kms_key[0].id - + description = "KMS Key id" + value = aws_kms_key.kms_key[0].id + } output "kms_arn" { - description = "KMS arn value" - value = aws_kms_key.kms_key[0].arn + description = "KMS arn value" + value = aws_kms_key.kms_key[0].arn } \ No newline at end of file diff --git a/variables.tf b/variables.tf index ea61724..8dcbf78 100644 --- a/variables.tf +++ b/variables.tf @@ -55,14 +55,14 @@ variable "multi_region" { #### Alias Details variable "alias_use_name_prefix" { - default = null + default = null description = "Creates an unique alias beginning with the specified prefix. Dont pass alias/" - type = string - + type = string + } variable "alias_name" { - default = null + default = null description = "The display name of the alias. Dont pass alias/" - type = string - + type = string + } \ No newline at end of file