Skip to content

Commit 12d957e

Browse files
fixed firewall endpoint association example (#11373) (#8003)
[upstream:04619204a8be4d8022df8a847238415a2bdcb64a] Signed-off-by: Modular Magician <[email protected]>
1 parent c1cd51a commit 12d957e

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.changelog/11373.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
No release note needed for documentation and testing only change
3+
```

website/docs/r/network_security_firewall_endpoint_association.html.markdown

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,39 @@ To get more information about FirewallEndpointAssociation, see:
3333
* [Create and associate firewall endpoints](https://cloud.google.com/firewall/docs/configure-firewall-endpoints)
3434
* [Firewall endpoint overview](https://cloud.google.com/firewall/docs/about-firewall-endpoints)
3535

36+
~> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
37+
you must specify a `billing_project_id` and set `user_project_override` to true
38+
in the provider configuration. Otherwise the ACM API will return a 403 error.
39+
Your account must have the `serviceusage.services.use` permission on the
40+
`billing_project_id` you defined.
41+
3642
## Example Usage - Network Security Firewall Endpoint Association Basic
3743

3844

3945
```hcl
46+
resource "google_compute_network" "foobar" {
47+
name = "tf-test-my-vpc%{randomSuffix}"
48+
auto_create_subnetworks = false
49+
}
50+
4051
resource "google_network_security_firewall_endpoint" "default" {
41-
name = "my-firewall-endpoint"
42-
parent = "organizations/123456789"
43-
location = "us-central1-a"
52+
name = "my-firewall-endpoint"
53+
parent = "organizations/123456789"
54+
location = "us-central1-a"
55+
billing_project_id = "my-project-name"
4456
4557
labels = {
4658
foo = "bar"
4759
}
4860
}
4961
5062
resource "google_network_security_firewall_endpoint_association" "default_association" {
51-
name = "my-firewall-endpoint-association"
52-
parent = "projects/my-project-name"
53-
location = "us-central1-a"
63+
name = "my-firewall-endpoint-association"
64+
parent = "projects/my-project-name"
65+
location = "us-central1-a"
66+
network = google_compute_network.foobar.id
67+
firewall_endpoint = google_network_security_firewall_endpoint.default.id
68+
disabled = false
5469
5570
labels = {
5671
foo = "bar"

0 commit comments

Comments
 (0)