Skip to content

Commit

Permalink
fix outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Jun 27, 2023
1 parent 7cfc647 commit e8748d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
output "parameters_ids" {
description = "parameters ids map"
value = { for k, v in merge(aws_ssm_parameter.this, aws_ssm_parameter.parsed) : k => v["id"] }
value = { for k, v in merge(aws_ssm_parameter.this, aws_ssm_parameter.parsed, aws_ssm_parameter.unlocked) : k => v["id"] }
}

output "parameters_arns" {
description = "parameters arns map"
value = { for k, v in merge(aws_ssm_parameter.this, aws_ssm_parameter.parsed) : k => v["arn"] }
value = { for k, v in merge(aws_ssm_parameter.this, aws_ssm_parameter.parsed, aws_ssm_parameter.unlocked) : k => v["arn"] }
}

output "parameters_name_arns" {
description = "merged parameters arns map with names of parameter"
value = {
for key, param in merge(aws_ssm_parameter.this, aws_ssm_parameter.parsed) : param.name => param.arn
for key, param in merge(aws_ssm_parameter.this, aws_ssm_parameter.parsed, aws_ssm_parameter.unlocked) : param.name => param.arn
}
}

0 comments on commit e8748d7

Please sign in to comment.