Skip to content

Commit baf82a9

Browse files
Document that auto_create_network on google_project enables GCE service (#7165) (#13564)
Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent a2b9ecf commit baf82a9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.changelog/7165.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```release-note:none
2+
```

website/docs/r/google_project.html.markdown

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ doc for more information.
1919

2020
~> This resource reads the specified billing account on every terraform apply and plan operation so you must have permissions on the specified billing account.
2121

22-
~> It is recommended to use the `constraints/compute.skipDefaultNetworkCreation` [constraint](/docs/providers/google/r/google_organization_policy.html) to remove the default network instead of setting `auto_create_network` to false.
22+
~> It is recommended to use the `constraints/compute.skipDefaultNetworkCreation` [constraint](/docs/providers/google/r/google_organization_policy.html) to remove the default network instead of setting `auto_create_network` to false, when possible.
2323

2424
To get more information about projects, see:
2525

@@ -84,10 +84,12 @@ The following arguments are supported:
8484

8585
* `labels` - (Optional) A set of key/value label pairs to assign to the project.
8686

87-
* `auto_create_network` - (Optional) Create the 'default' network automatically. Default `true`.
88-
If set to `false`, the default network will be deleted. Note that, for quota purposes, you
89-
will still need to have 1 network slot available to create the project successfully, even if
90-
you set `auto_create_network` to `false`, since the network will exist momentarily.
87+
* `auto_create_network` - (Optional) Controls whether the 'default' network exists on the project. Defaults
88+
to `true`, where it is created. If set to `false`, the default network will still be created by GCP but
89+
will be deleted immediately by Terraform. Therefore, for quota purposes, you will still need to have 1
90+
network slot available to create the project successfully, even if you set `auto_create_network` to
91+
`false`. Note that when `false`, Terraform enables `compute.googleapis.com` on the project to interact
92+
with the GCE API and currently leaves it enabled.
9193

9294
## Attributes Reference
9395

0 commit comments

Comments
 (0)