mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 17:46:43 +00:00
1.3 KiB
1.3 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_compute_global_address | docs-google-compute-global-address | Creates a static global IP address resource for a Google Compute Engine project. |
google_compute_global_address
Creates a static IP address resource global to a Google Compute Engine project. For more information see the official documentation and API.
Example Usage
resource "google_compute_global_address" "default" {
name = "global-appserver-ip"
}
Argument Reference
The following arguments are supported:
name
- (Required) A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
project
- (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
-
address
- The assigned address. -
self_link
- The URI of the created resource.
Import
Global addresses can be imported using the name
, e.g.
$ terraform import google_compute_global_address.default global-appserver-ip