Skip to content

Commit

Permalink
add billing project id support to firewall endpoint resource (#10122) (
Browse files Browse the repository at this point in the history
…#17630)

* add billing project support

* removed description field due to API issue

* test updated and fixed for ADC support

* added ADC warning

* removing ADC

[upstream:8f3a9892f4cfeddbaf4dc8457849e30e6ac49b8e]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 20, 2024
1 parent 8996f7d commit b257858
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/10122.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
networksecurity: added required field `billing_project_id` to `google_network_security_firewall_endpoint` resource. Any configuration without `billing_project_id` specified will cause resource creation fail (beta)
```
10 changes: 10 additions & 0 deletions website/docs/r/network_security_firewall_endpoint.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ To get more information about FirewallEndpoint, see:
* [Firewall endpoint overview](https://cloud.google.com/firewall/docs/about-firewall-endpoints)
* [Create and associate firewall endpoints](https://cloud.google.com/firewall/docs/configure-firewall-endpoints)

~> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
you must specify a `billing_project` 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` you defined.

## Example Usage - Network Security Firewall Endpoint Basic


Expand All @@ -56,6 +62,10 @@ resource "google_network_security_firewall_endpoint" "default" {
The following arguments are supported:


* `billing_project_id` -
(Required)
Project to bill on endpoint uptime usage.

* `name` -
(Required)
The name of the firewall endpoint resource.
Expand Down

0 comments on commit b257858

Please sign in to comment.