@@ -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+
4051resource "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
5062resource "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