-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from ConseilsTI/v0.0.46
v0.0.46
- Loading branch information
Showing
5 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
output "modules_registry_github_owners_team" { | ||
description = "The id of the GitHub team who owns the private modules registry." | ||
value = module.git_teams["TerraformCloud-ModulesRegistry-Owners"].id | ||
output "manage_modules_team_token" { | ||
description = "The token of the team with `manage-modules` access." | ||
value = module.tfe_teams["manage-modules"].token | ||
sensitive = true | ||
} | ||
|
||
output "modules_registry_github_contributors_team" { | ||
description = "The id of the GitHub team who can contribute to the private modules registry." | ||
value = module.git_teams["TerraformCloud-ModulesRegistry-Contributors"].id | ||
} | ||
} | ||
|
||
output "modules_registry_github_owners_team" { | ||
description = "The id of the GitHub team who owns the private modules registry." | ||
value = module.git_teams["TerraformCloud-ModulesRegistry-Owners"].id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# The following code block is used to create the Hashicorp Vault Secret app where team token will be stored. | ||
|
||
resource "hcp_vault_secrets_app" "this" { | ||
app_name = local.hcp_vault_secrets_app_name | ||
} | ||
|
||
# The following code blode is used to create secret in Hashicorp Vault. | ||
|
||
resource "hcp_vault_secrets_secret" "this" { | ||
for_each = nonsensitive({ for team in local.tfc_teams : team.name => team if try(team.token, false) == true }) | ||
app_name = "TerraformCloud" | ||
app_name = local.hcp_vault_secrets_app_name | ||
secret_name = lower(replace(each.value.name, "/\\W|_|\\s/", "_")) | ||
secret_value = module.tfe_teams[each.value.name].token | ||
} |