Skip to content

Commit 6b5b02b

Browse files
authored
fix: add missed billing_account_id variable (#2)
1 parent ffd1b78 commit 6b5b02b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ module "my_awesome_project" {
1515

1616
## Inputs
1717

18-
1918
| Name | Description | Type | Default | Required |
2019
|:---------------------------|:------------------------------------------------------------------------------------------------|:------:|:---------:|:--------:|
2120
| name | Solution name, e.g. 'app' or 'jenkins' | string | n/a | yes |
2221
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | string | n/a | yes |
2322
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | string | n/a | yes |
24-
| attributes | Additional attributes (e.g. `1`) | list | `[]` | no |
23+
| attributes | Additional attributes (e.g. `1`) | list | `<list>` | no |
2524
| auto_create_network | Create the 'default' network automatically | string | `"true"` | no |
26-
| context | Default context to use for passing state between label invocations | map | `{}` | no |
25+
| billing_account_id | The alphanumeric ID of the billing account this project belongs to | string | `""` | no |
26+
| context | Default context to use for passing state between label invocations | map | `<map>` | no |
2727
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes` | string | `"-"` | no |
2828
| enable_deletion_protection | If true, the Terraform resource can be deleted without deleting the Project via the Google API. | string | `"false"` | no |
2929
| enabled | Set to false to prevent the module from creating any resources | string | `"true"` | no |
3030
| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | string | `""` | no |
3131
| folder_id | The numeric ID of the folder this project should be created under | string | `""` | no |
3232
| org_id | The numeric ID of the organization this project belongs to | string | `""` | no |
33-
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | map | `{}` | no |
33+
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | map | `<map>` | no |
3434

3535
## Outputs
3636

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ resource "google_project" "default" {
2020
folder_id = "${var.folder_id}"
2121
skip_delete = "${var.enable_deletion_protection}"
2222
auto_create_network = "${var.auto_create_network}"
23+
billing_account = "${var.billing_account_id}"
2324
}

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,8 @@ variable "auto_create_network" {
6868
default = "true"
6969
description = "Create the 'default' network automatically"
7070
}
71+
72+
variable "billing_account_id" {
73+
description = "The alphanumeric ID of the billing account this project belongs to"
74+
default = ""
75+
}

0 commit comments

Comments
 (0)