Skip to content

Commit

Permalink
github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishnama committed Apr 11, 2024
1 parent 1a4e18b commit 956efec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
10 changes: 5 additions & 5 deletions output.tf
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 6 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

0 comments on commit 956efec

Please sign in to comment.