Skip to content

Commit b9677b7

Browse files
umairidrismorgante
andauthored
chore: update desc of activate_api_identities (#475)
* update descs * rm extra < * update to latest image * update lint image Co-authored-by: Morgante Pell <[email protected]>
1 parent 79f7c95 commit b9677b7

File tree

22 files changed

+255
-236
lines changed

22 files changed

+255
-236
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Make will use bash instead of sh
1919
SHELL := /usr/bin/env bash
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12.0
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12.1
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424

README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -108,44 +108,44 @@ determining that location is as follows:
108108
## Inputs
109109

110110
| 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 |
137-
| org\_id | The organization ID. | string | n/a | yes |
138-
| 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 |
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).<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 |
137+
| org\_id | The organization ID. | `string` | n/a | yes |
138+
| 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 |
149149

150150
## Outputs
151151

@@ -156,12 +156,12 @@ determining that location is as follows:
156156
| budget\_name | The name of the budget if created |
157157
| domain | The organization's domain |
158158
| 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 |
160160
| project\_bucket\_self\_link | Project's bucket selfLink |
161161
| project\_bucket\_url | Project's bucket url |
162-
| project\_id | |
163-
| project\_name | |
164-
| project\_number | |
162+
| project\_id | n/a |
163+
| project\_name | n/a |
164+
| project\_number | n/a |
165165
| service\_account\_display\_name | The display name of the default service account |
166166
| service\_account\_email | The email of the default service account |
167167
| service\_account\_id | The id of the default service account |

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tags:
2121
- 'lint'
2222
substitutions:
2323
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
24-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'
24+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.1'

examples/app_engine/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ Expected variables:
1616
## Inputs
1717

1818
| Name | Description | Type | Default | Required |
19-
|------|-------------|:----:|:-----:|:-----:|
20-
| billing\_account | The ID of the billing account to associate this project with | string | n/a | yes |
21-
| folder\_id | The ID of a folder to host this project. | string | `""` | no |
22-
| location\_id | The location to serve the app from. | string | `"us-east4"` | no |
23-
| org\_id | The organization ID. | string | n/a | yes |
19+
|------|-------------|------|---------|:--------:|
20+
| billing\_account | The ID of the billing account to associate this project with | `string` | n/a | yes |
21+
| folder\_id | The ID of a folder to host this project. | `string` | `""` | no |
22+
| location\_id | The location to serve the app from. | `string` | `"us-east4"` | no |
23+
| org\_id | The organization ID. | `string` | n/a | yes |
2424

2525
## Outputs
2626

2727
| Name | Description |
2828
|------|-------------|
29-
| app\_name | Unique name of the app, usually apps/{PROJECT_ID}. |
29+
| app\_name | Unique name of the app, usually apps/{PROJECT\_ID}. |
3030
| default\_hostname | The default hostname for this app. |
3131
| location\_id | The location app engine is serving from |
3232
| project\_id | The project ID where app engine is created |

examples/budget_project/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ It will do the following:
1111
## Inputs
1212

1313
| 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 |
22-
| org\_id | The organization ID. | string | n/a | yes |
23-
| parent\_project\_id | The project_id of the parent project to add as an additional project for the budget | string | n/a | yes |
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)` | <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 |
22+
| org\_id | The organization ID. | `string` | n/a | yes |
23+
| parent\_project\_id | The project\_id of the parent project to add as an additional project for the budget | `string` | n/a | yes |
2424

2525
## Outputs
2626

@@ -32,7 +32,7 @@ It will do the following:
3232
| budget\_credit\_types\_treatment | Specifies how credits should be treated when determining spend for threshold calculations |
3333
| budget\_services | A list of services to be included in the budget |
3434
| main\_budget\_name | The name of the budget created by the core project factory module |
35-
| parent\_project\_id | The project_id of the parent project to add as an additional project for the budget |
35+
| parent\_project\_id | The project\_id of the parent project to add as an additional project for the budget |
3636
| project\_id | The project ID created |
3737
| pubsub\_topic | The PubSub topic name created for budget alerts |
3838

examples/fabric_project/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ This example illustrates how to create a simple project using the `fabric-projec
66
## Inputs
77

88
| Name | Description | Type | Default | Required |
9-
|------|-------------|:----:|:-----:|:-----:|
10-
| activate\_apis | Service APIs to enable. | list(string) | `<list>` | no |
11-
| billing\_account | Billing account id. | string | n/a | yes |
12-
| name | Project name, joined with prefix. | string | `"fabric-project"` | no |
13-
| owners | Optional list of IAM-format members to set as project owners. | list(string) | `<list>` | no |
14-
| parent | Organization or folder id, in the `organizations/nnn` or `folders/nnn` format. | string | n/a | yes |
15-
| prefix | Prefix prepended to project name, uses random id by default. | string | `""` | no |
9+
|------|-------------|------|---------|:--------:|
10+
| activate\_apis | Service APIs to enable. | `list(string)` | <pre>[<br> "compute.googleapis.com"<br>]</pre> | no |
11+
| billing\_account | Billing account id. | `string` | n/a | yes |
12+
| name | Project name, joined with prefix. | `string` | `"fabric-project"` | no |
13+
| owners | Optional list of IAM-format members to set as project owners. | `list(string)` | `[]` | no |
14+
| parent | Organization or folder id, in the `organizations/nnn` or `folders/nnn` format. | `string` | n/a | yes |
15+
| prefix | Prefix prepended to project name, uses random id by default. | `string` | `""` | no |
1616

1717
## Outputs
1818

examples/gke_shared_vpc/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ More information about GKE with Shared VPC can be found here: https://cloud.goog
2727
## Inputs
2828

2929
| Name | Description | Type | Default | Required |
30-
|------|-------------|:----:|:-----:|:-----:|
31-
| billing\_account | billing account | string | n/a | yes |
32-
| credentials\_path | Path to a Service Account credentials file with permissions documented in the readme | string | n/a | yes |
33-
| org\_id | organization id | string | n/a | yes |
34-
| shared\_vpc | The ID of the host project which hosts the shared VPC | string | 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) | `<list>` | no |
30+
|------|-------------|------|---------|:--------:|
31+
| billing\_account | billing account | `any` | n/a | yes |
32+
| 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 |
36+
37+
## Outputs
38+
39+
No output.
3640

3741
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 commit comments

Comments
 (0)