mirror of https://github.com/hashicorp/boundary
[QT-400] Fix doormat hc-service-uri for ci bootstrap ci doormat role (#2944)
parent
f7030513c1
commit
0dc140045a
@ -1,22 +1,17 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
output "ci_role" {
|
||||
value = local.is_ent ? {
|
||||
name = aws_iam_role.github_actions_doormat_role[0].name
|
||||
arn = aws_iam_role.github_actions_doormat_role[0].arn
|
||||
} : {
|
||||
name = aws_iam_role.role[0].name
|
||||
arn = aws_iam_role.role[0].arn
|
||||
}
|
||||
}
|
||||
|
||||
output "ci_role_policy" {
|
||||
value = local.is_ent ? {
|
||||
name = local.github_actions_doormat_assume_policy_name
|
||||
policy = data.aws_iam_policy_document.github_actions_doormat_assume[0].json
|
||||
} : {
|
||||
name = aws_iam_role_policy.role_policy[0].name
|
||||
output "ci_roles" {
|
||||
value = local.is_ent ? [for role in aws_iam_role.github_actions_doormat_role : {
|
||||
name = role.name
|
||||
arn = role.arn
|
||||
policy = [for policy in role.inline_policy : {
|
||||
name = policy.name
|
||||
policy = jsondecode(policy.policy)
|
||||
}][0]
|
||||
}] : [{
|
||||
name = aws_iam_role.role[0].name
|
||||
arn = aws_iam_role.role[0].arn
|
||||
policy = aws_iam_role_policy.role_policy[0].policy
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue