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

NameVersion
terraform>= 1.12.2
google>= 3.83

Providers

NameVersion
google>= 3.83

Modules

No modules.

Resources

NameType
google_compute_global_address.ipsresource

Inputs

NameDescriptionTypeDefaultRequired
descriptionDescription to provide context for the global static IP addressesstringnullno
ip_namesSet of global static IP names to createset(string)n/ayes
labelsLabels to apply to the global static IP addressesmap(string){}no
project_idGCP Project IDstringn/ayes

Outputs

NameDescription
addressesA list of allocated global static IP addresses.
global_ipsA map of IP names to allocated global static IP addresses.