You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-42Lines changed: 42 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,44 +108,44 @@ determining that location is as follows:
108
108
## Inputs
109
109
110
110
| Name | Description | Type | Default | Required |
111
-
|------|-------------|:----:|:-----:|:-----:|
112
-
| activate\_api\_identities | The list of service identities (Google Managed service account for the API) to force-create for the project (e.g. in order to grant additional roles).APIs in this list will automatically be appended to `activate_apis`.Not including the API in this list will follow the default behaviour for identity creation (which is usually when the first resource using the API is created).|object|`<list>`| no |
113
-
| activate\_apis | The list of apis to activate within the project | list(string) |`<list>`| no |
114
-
| auto\_create\_network | Create the default network | bool |`"false"`| no |
115
-
| billing\_account | The ID of the billing account to associate this project with | string | n/a | yes |
116
-
| bucket\_location | The location for a GCS bucket to create (optional) | string |`"US"`| no |
117
-
| bucket\_name | A name for a GCS bucket to create (in the bucket_project project), useful for Terraform state (optional) | string |`""`| no |
118
-
| bucket\_project | A project to create a GCS bucket (bucket_name) in, useful for Terraform state (optional) | string |`""`| no |
119
-
| bucket\_versioning | Enable versioning for a GCS bucket to create (optional) | bool |`"false"`| no |
120
-
| budget\_alert\_pubsub\_topic | The name of the Cloud Pub/Sub topic where budget related messages will be published, in the form of `projects/{project_id}/topics/{topic_id}`| string |`"null"`| no |
121
-
| budget\_alert\_spent\_percents | A list of percentages of the budget to alert on when threshold is exceeded | list(number) |`<list>`| no |
122
-
| budget\_amount | The amount to use for a budget alert | number |`"null"`| no |
123
-
| budget\_monitoring\_notification\_channels | A list of monitoring notification channels in the form `[projects/{project_id}/notificationChannels/{channel_id}]`. A maximum of 5 channels are allowed. | list(string) |`<list>`| no |
124
-
| credentials\_path | Path to a service account credentials file with rights to run the Project Factory. If this file is absent Terraform will fall back to Application Default Credentials. | string |`""`| no |
125
-
| default\_service\_account | Project default service account setting: can be one of `delete`, `deprivilege`, `disable`, or `keep`. | string |`"disable"`| no |
126
-
| disable\_dependent\_services | Whether services that are enabled and which depend on this service should also be disabled when this service is destroyed. | bool |`"true"`| no |
127
-
| disable\_services\_on\_destroy | Whether project services will be disabled when the resources are destroyed | string |`"true"`| no |
128
-
| domain | The domain name (optional). | string |`""`| no |
129
-
| enable\_shared\_vpc\_host\_project | If this project is a shared VPC host project. If true, you must *not* set shared_vpc variable. Default is false. | bool |`"false"`| no |
130
-
| folder\_id | The ID of a folder to host this project | string |`""`| no |
131
-
| group\_name | A group to control the project by being assigned group_role (defaults to project editor) | string |`""`| no |
132
-
| group\_role | The role to give the controlling group (group_name) over the project (defaults to project editor) | string |`"roles/editor"`| no |
133
-
| impersonate\_service\_account | An optional service account to impersonate. This cannot be used with credentials_path. If this service account is not specified and credentials_path is absent, the module will use Application Default Credentials. | string |`""`| no |
134
-
| labels | Map of labels for project | map(string) |`<map>`| no |
135
-
| lien | Add a lien on the project to prevent accidental deletion | bool |`"false"`| no |
136
-
| name | The name for the project | string | n/a | yes |
| project\_id | The ID to give the project. If not provided, the `name` will be used. | string |`""`| no |
139
-
| random\_project\_id | Adds a suffix of 4 random characters to the `project_id`| bool |`"false"`| no |
140
-
| sa\_role | A role to give the default Service Account for the project (defaults to none) | string |`""`| no |
141
-
| shared\_vpc | The ID of the host project which hosts the shared VPC | string |`""`| no |
142
-
| shared\_vpc\_subnets | List of subnets fully qualified subnet IDs (ie. projects/$project_id/regions/$region/subnetworks/$subnet_id) | list(string) |`<list>`| no |
143
-
| skip\_gcloud\_download | Whether to skip downloading gcloud (assumes gcloud is already available outside the module) | bool |`"false"`| no |
144
-
| usage\_bucket\_name | Name of a GCS bucket to store GCE usage reports in (optional) | string |`""`| no |
145
-
| usage\_bucket\_prefix | Prefix in the GCS bucket to store GCE usage reports in (optional) | string |`""`| no |
146
-
| use\_tf\_google\_credentials\_env\_var | Use GOOGLE_CREDENTIALS environment variable to run gcloud auth activate-service-account with. | bool |`"false"`| no |
147
-
| vpc\_service\_control\_attach\_enabled | Whether the project will be attached to a VPC Service Control Perimeter | bool |`"false"`| no |
148
-
| vpc\_service\_control\_perimeter\_name | The name of a VPC Service Control Perimeter to add the created project to | string |`"null"`| no |
| activate\_api\_identities | The list of service identities (Google Managed service account for the API) to force-create for the project (e.g. in order to grant additional roles).<br> APIs in this list will automatically be appended to `activate_apis`.<br> Not including the API in this list will follow the default behaviour for identity creation (which is usually when the first resource using the API is created).<br> Any roles (e.g. service agent role) must be explicitly listed. See https://cloud.google.com/iam/docs/understanding-roles#service-agent-roles-roles for a list of related roles. | <pre>list(object({<br> api = string<br> roles = list(string)<br> }))</pre> |`[]`| no |
113
+
| activate\_apis | The list of apis to activate within the project |`list(string)`|<pre>[<br> "compute.googleapis.com"<br>]</pre>| no |
114
+
| auto\_create\_network | Create the default network |`bool`|`false`| no |
115
+
| billing\_account | The ID of the billing account to associate this project with |`string`| n/a | yes |
116
+
| bucket\_location | The location for a GCS bucket to create (optional) |`string`|`"US"`| no |
117
+
| bucket\_name | A name for a GCS bucket to create (in the bucket\_project project), useful for Terraform state (optional) |`string`|`""`| no |
118
+
| bucket\_project | A project to create a GCS bucket (bucket\_name) in, useful for Terraform state (optional) |`string`|`""`| no |
119
+
| bucket\_versioning | Enable versioning for a GCS bucket to create (optional) |`bool`|`false`| no |
120
+
| budget\_alert\_pubsub\_topic | The name of the Cloud Pub/Sub topic where budget related messages will be published, in the form of `projects/{project_id}/topics/{topic_id}`|`string`|`null`| no |
121
+
| budget\_alert\_spent\_percents | A list of percentages of the budget to alert on when threshold is exceeded |`list(number)`|<pre>[<br> 0.5,<br> 0.7,<br> 1<br>]</pre>| no |
122
+
| budget\_amount | The amount to use for a budget alert |`number`|`null`| no |
123
+
| budget\_monitoring\_notification\_channels | A list of monitoring notification channels in the form `[projects/{project_id}/notificationChannels/{channel_id}]`. A maximum of 5 channels are allowed. |`list(string)`|`[]`| no |
124
+
| credentials\_path | Path to a service account credentials file with rights to run the Project Factory. If this file is absent Terraform will fall back to Application Default Credentials. |`string`|`""`| no |
125
+
| default\_service\_account | Project default service account setting: can be one of `delete`, `deprivilege`, `disable`, or `keep`. |`string`|`"disable"`| no |
126
+
| disable\_dependent\_services | Whether services that are enabled and which depend on this service should also be disabled when this service is destroyed. |`bool`|`true`| no |
127
+
| disable\_services\_on\_destroy | Whether project services will be disabled when the resources are destroyed |`string`|`"true"`| no |
128
+
| domain | The domain name (optional). |`string`|`""`| no |
129
+
| enable\_shared\_vpc\_host\_project | If this project is a shared VPC host project. If true, you must *not* set shared\_vpc variable. Default is false. |`bool`|`false`| no |
130
+
| folder\_id | The ID of a folder to host this project |`string`|`""`| no |
131
+
| group\_name | A group to control the project by being assigned group\_role (defaults to project editor) |`string`|`""`| no |
132
+
| group\_role | The role to give the controlling group (group\_name) over the project (defaults to project editor) |`string`|`"roles/editor"`| no |
133
+
| impersonate\_service\_account | An optional service account to impersonate. This cannot be used with credentials\_path. If this service account is not specified and credentials\_path is absent, the module will use Application Default Credentials. |`string`|`""`| no |
134
+
| labels | Map of labels for project |`map(string)`|`{}`| no |
135
+
| lien | Add a lien on the project to prevent accidental deletion |`bool`|`false`| no |
136
+
| name | The name for the project |`string`| n/a | yes |
| project\_id | The ID to give the project. If not provided, the `name` will be used. |`string`|`""`| no |
139
+
| random\_project\_id | Adds a suffix of 4 random characters to the `project_id`|`bool`|`false`| no |
140
+
| sa\_role | A role to give the default Service Account for the project (defaults to none) |`string`|`""`| no |
141
+
| shared\_vpc | The ID of the host project which hosts the shared VPC |`string`|`""`| no |
142
+
| shared\_vpc\_subnets | List of subnets fully qualified subnet IDs (ie. projects/$project\_id/regions/$region/subnetworks/$subnet\_id) |`list(string)`|`[]`| no |
143
+
| skip\_gcloud\_download | Whether to skip downloading gcloud (assumes gcloud is already available outside the module) |`bool`|`false`| no |
144
+
| usage\_bucket\_name | Name of a GCS bucket to store GCE usage reports in (optional) |`string`|`""`| no |
145
+
| usage\_bucket\_prefix | Prefix in the GCS bucket to store GCE usage reports in (optional) |`string`|`""`| no |
146
+
| use\_tf\_google\_credentials\_env\_var | Use GOOGLE\_CREDENTIALS environment variable to run gcloud auth activate-service-account with. |`bool`|`false`| no |
147
+
| vpc\_service\_control\_attach\_enabled | Whether the project will be attached to a VPC Service Control Perimeter |`bool`|`false`| no |
148
+
| vpc\_service\_control\_perimeter\_name | The name of a VPC Service Control Perimeter to add the created project to |`string`|`null`| no |
149
149
150
150
## Outputs
151
151
@@ -156,12 +156,12 @@ determining that location is as follows:
156
156
| budget\_name | The name of the budget if created |
157
157
| domain | The organization's domain |
158
158
| enabled\_apis | Enabled APIs in the project |
159
-
| group\_email | The email of the G Suite group with group_name|
159
+
| group\_email | The email of the G Suite group with group\_name|
Copy file name to clipboardExpand all lines: examples/budget_project/README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,16 @@ It will do the following:
11
11
## Inputs
12
12
13
13
| Name | Description | Type | Default | Required |
14
-
|------|-------------|:----:|:-----:|:-----:|
15
-
| billing\_account | The ID of the billing account to associate this project with | string | n/a | yes |
16
-
| budget\_alert\_spent\_percents | The list of percentages of the budget to alert on | list(number) |`<list>`| no |
17
-
| budget\_amount | The amount to use for the budget | number |`"10"`| no |
18
-
| budget\_credit\_types\_treatment | Specifies how credits should be treated when determining spend for threshold calculations | string |`"EXCLUDE_ALL_CREDITS"`| no |
19
-
| budget\_services | A list of services to be included in the budget | list(string) |`<list>`| no |
20
-
| folder\_id | The ID of a folder to host this project. | string |`""`| no |
21
-
| location\_id | The location to serve the app from. | string |`"us-east4"`| no |
| billing\_account | The ID of the billing account to associate this project with |`string`| n/a | yes |
16
+
| budget\_alert\_spent\_percents | The list of percentages of the budget to alert on |`list(number)`|<pre>[<br> 0.7,<br> 0.8,<br> 0.9,<br> 1<br>]</pre>| no |
17
+
| budget\_amount | The amount to use for the budget |`number`|`10`| no |
18
+
| budget\_credit\_types\_treatment | Specifies how credits should be treated when determining spend for threshold calculations |`string`|`"EXCLUDE_ALL_CREDITS"`| no |
19
+
| budget\_services | A list of services to be included in the budget |`list(string)`|<pre>[<br> "6F81-5844-456A",<br> "A1E8-BE35-7EBC"<br>]</pre>| no |
20
+
| folder\_id | The ID of a folder to host this project. |`string`|`""`| no |
21
+
| location\_id | The location to serve the app from. |`string`|`"us-east4"`| no |
| credentials\_path | Path to a Service Account credentials file with permissions documented in the readme |`any`| n/a | yes |
33
+
| org\_id | organization id |`any`| n/a | yes |
34
+
| shared\_vpc | The ID of the host project which hosts the shared VPC |`any`| n/a | yes |
35
+
| shared\_vpc\_subnets | List of subnets fully qualified subnet IDs (ie. projects/$PROJECT\_ID/regions/$REGION/subnetworks/$SUBNET\_ID) |`list(string)`|`[]`| no |
0 commit comments