From 6fb3fbbe141f6d37249e8c0a11b59ef4c51befcf Mon Sep 17 00:00:00 2001 From: "Byungjin Park (Claud)" Date: Fri, 24 Feb 2023 14:49:25 +0900 Subject: [PATCH] Fix tflint failed code (#22) --- modules/secrets-manager-secret/README.md | 2 +- modules/secrets-manager-secret/outputs.tf | 6 +++--- modules/ssm-parameter-store-settings/README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/secrets-manager-secret/README.md b/modules/secrets-manager-secret/README.md index e259633..fe0ddc2 100644 --- a/modules/secrets-manager-secret/README.md +++ b/modules/secrets-manager-secret/README.md @@ -19,7 +19,7 @@ This module creates following resources. | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.52.0 | +| [aws](#provider\_aws) | 4.55.0 | ## Modules diff --git a/modules/secrets-manager-secret/outputs.tf b/modules/secrets-manager-secret/outputs.tf index a0b5128..87c0305 100644 --- a/modules/secrets-manager-secret/outputs.tf +++ b/modules/secrets-manager-secret/outputs.tf @@ -26,8 +26,8 @@ output "type" { output "value" { description = "The secret value in the current version of the secret with `AWSCURRENT` staging label." value = try(coalesce( - one(aws_secretsmanager_secret_version.latest.*.secret_string), - one(aws_secretsmanager_secret_version.latest.*.secret_binary), + one(aws_secretsmanager_secret_version.latest[*].secret_string), + one(aws_secretsmanager_secret_version.latest[*].secret_binary), ), null) } @@ -64,7 +64,7 @@ output "rotation" { description = "The configuration of the automatic rotation for the secret." value = { enabled = var.rotation_lambda_function != null - lambda_function = one(aws_secretsmanager_secret_rotation.this.*.rotation_lambda_arn) + lambda_function = one(aws_secretsmanager_secret_rotation.this[*].rotation_lambda_arn) duration_in_days = var.rotation_duration_in_days } } diff --git a/modules/ssm-parameter-store-settings/README.md b/modules/ssm-parameter-store-settings/README.md index 38b8ace..6b8ef10 100644 --- a/modules/ssm-parameter-store-settings/README.md +++ b/modules/ssm-parameter-store-settings/README.md @@ -16,7 +16,7 @@ This module creates following resources. | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.27.0 | +| [aws](#provider\_aws) | 4.52.0 | ## Modules