README.md
June 10, 2026 ยท View on GitHub
Description
This module creates Google Cloud Global Static IP addresses.
Example usage
This module can be used to reserve global static IP addresses for use with external load balancers or other global resources.
- id: global_static_ip
source: modules/network/global-static-ip
settings:
ip_names:
- $(vars.deployment_name)-ip-1
- $(vars.deployment_name)-ip-2
Copyright 2026 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Requirements
| Name | Version |
|---|---|
| terraform | >= 1.12.2 |
| >= 3.83 |
Providers
| Name | Version |
|---|---|
| >= 3.83 |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| google_compute_global_address.ips | resource |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| description | Description to provide context for the global static IP addresses | string | null | no |
| ip_names | Set of global static IP names to create | set(string) | n/a | yes |
| labels | Labels to apply to the global static IP addresses | map(string) | {} | no |
| project_id | GCP Project ID | string | n/a | yes |
Outputs
| Name | Description |
|---|---|
| addresses | A list of allocated global static IP addresses. |
| global_ips | A map of IP names to allocated global static IP addresses. |