Skip to content

Commit

Permalink
feat(google_deployment_accounts): allow overriding display name
Browse files Browse the repository at this point in the history
  • Loading branch information
whd committed Jan 30, 2024
1 parent 098df68 commit ece9502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions google_deployment_accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ No modules.
|------|-------------|------|---------|:--------:|
| <a name="input_account_id"></a> [account\_id](#input\_account\_id) | Name of the service account. Defaults to deploy-<env> | `string` | `null` | no |
| <a name="input_circleci_attribute_specifiers"></a> [circleci\_attribute\_specifiers](#input\_circleci\_attribute\_specifiers) | (CircleCI only) Attribute specifiers to allow deploys from. If specified, this overrides the github\_repository variable and any other CircleCI-specific variables. | `set(string)` | `[]` | no |
| <a name="input_circleci_branches"></a> [circleci\_branches](#input\_circleci\_branches) | Branches to allow deployments from. If unspecified, allow deployment from all branches. | `list(string)` | `[]` | no |
| <a name="input_circleci_context_ids"></a> [circleci\_context\_ids](#input\_circleci\_context\_ids) | CircleCI Contexts to allow deployments from. Not recommended when using merge queues since CircleCI Contexts are only accessible to members of your organization. | `list(string)` | `[]` | no |
| <a name="input_circleci_branches"></a> [circleci\_branches](#input\_circleci\_branches) | (CircleCI only) Branches to allow deployments from. If unspecified, allow deployment from all branches. | `list(string)` | `[]` | no |
| <a name="input_circleci_context_ids"></a> [circleci\_context\_ids](#input\_circleci\_context\_ids) | (CircleCI only) Contexts to allow deployments from. Not recommended when using merge queues since CircleCI Contexts are only accessible to members of your organization. | `list(string)` | `[]` | no |
| <a name="input_display_name"></a> [display\_name](#input\_display\_name) | Display name for the service account. Default to "Deployment to the <env> environment" | `string` | `null` | no |
| <a name="input_environment"></a> [environment](#input\_environment) | Environment e.g., stage. | `string` | n/a | yes |
| <a name="input_gha_environments"></a> [gha\_environments](#input\_gha\_environments) | Github environments from which to deploy. If specified, this overrides the environment variable. | `list(string)` | `[]` | no |
| <a name="input_github_repository"></a> [github\_repository](#input\_github\_repository) | The Github repository running the deployment workflows in the format org/repository | `string` | `null` | no |
Expand Down
2 changes: 1 addition & 1 deletion google_deployment_accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ locals {

resource "google_service_account" "account" {
account_id = coalesce(var.account_id, "deploy-${var.environment}")
display_name = "Deployment to the ${var.environment} environment"
display_name = coalese(var.display_name, "Deployment to the ${var.environment} environment")
project = var.project
}

Expand Down

0 comments on commit ece9502

Please sign in to comment.