Skip to content

Commit

Permalink
Fix tflint failed code (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
posquit0 authored Feb 24, 2023
1 parent b63a836 commit 6fb3fbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/secrets-manager-secret/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This module creates following resources.

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.52.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.55.0 |

## Modules

Expand Down
6 changes: 3 additions & 3 deletions modules/secrets-manager-secret/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/ssm-parameter-store-settings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This module creates following resources.

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.27.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.52.0 |

## Modules

Expand Down

0 comments on commit 6fb3fbb

Please sign in to comment.