Skip to content

Commit d235fd3

Browse files
Add PostgreSQL and Redis IAM policy ARN outputs to service_accounts module
1 parent a0463dc commit d235fd3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

modules/service_accounts/outputs.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,23 @@ output "iam_role" {
1212

1313
description = "The IAM role associated with the instance profile."
1414
}
15+
16+
output "postgres_iam_policy_arn" {
17+
value = try(aws_iam_policy.postgres_iam_policy[0].arn, "")
18+
description = "The ARN of the PostgreSQL IAM authentication policy, if created."
19+
}
20+
21+
output "redis_iam_policy_arn" {
22+
value = try(aws_iam_policy.redis_iam_policy[0].arn, "")
23+
description = "The ARN of the Redis IAM authentication policy, if created."
24+
}
25+
26+
output "postgres_iam_policy_arn" {
27+
value = try(aws_iam_policy.postgres_iam_policy[0].arn, "")
28+
description = "The ARN of the PostgreSQL IAM authentication policy, if created."
29+
}
30+
31+
output "redis_iam_policy_arn" {
32+
value = try(aws_iam_policy.redis_iam_policy[0].arn, "")
33+
description = "The ARN of the Redis IAM authentication policy, if created."
34+
}

0 commit comments

Comments
 (0)