Skip to content

Commit

Permalink
fixed firewall endpoint association example (#11373) (#19185)
Browse files Browse the repository at this point in the history
[upstream:04619204a8be4d8022df8a847238415a2bdcb64a]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 20, 2024
1 parent 52d0eca commit 2f93f79
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/11373.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none
No release note needed for documentation and testing only change
```
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,39 @@ To get more information about FirewallEndpointAssociation, see:
* [Create and associate firewall endpoints](https://cloud.google.com/firewall/docs/configure-firewall-endpoints)
* [Firewall endpoint overview](https://cloud.google.com/firewall/docs/about-firewall-endpoints)

~> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
you must specify a `billing_project_id` and set `user_project_override` to true
in the provider configuration. Otherwise the ACM API will return a 403 error.
Your account must have the `serviceusage.services.use` permission on the
`billing_project_id` you defined.

## Example Usage - Network Security Firewall Endpoint Association Basic


```hcl
resource "google_compute_network" "foobar" {
name = "tf-test-my-vpc%{randomSuffix}"
auto_create_subnetworks = false
}
resource "google_network_security_firewall_endpoint" "default" {
name = "my-firewall-endpoint"
parent = "organizations/123456789"
location = "us-central1-a"
name = "my-firewall-endpoint"
parent = "organizations/123456789"
location = "us-central1-a"
billing_project_id = "my-project-name"
labels = {
foo = "bar"
}
}
resource "google_network_security_firewall_endpoint_association" "default_association" {
name = "my-firewall-endpoint-association"
parent = "projects/my-project-name"
location = "us-central1-a"
name = "my-firewall-endpoint-association"
parent = "projects/my-project-name"
location = "us-central1-a"
network = google_compute_network.foobar.id
firewall_endpoint = google_network_security_firewall_endpoint.default.id
disabled = false
labels = {
foo = "bar"
Expand Down

0 comments on commit 2f93f79

Please sign in to comment.