2014-08-26 23:50:29 +02:00
|
|
|
---
|
|
|
|
layout: "google"
|
|
|
|
page_title: "Google: google_compute_address"
|
2015-10-23 16:10:41 +02:00
|
|
|
sidebar_current: "docs-google-compute-address"
|
2014-10-22 05:21:56 +02:00
|
|
|
description: |-
|
|
|
|
Creates a static IP address resource for Google Compute Engine.
|
2014-08-26 23:50:29 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# google\_compute\_address
|
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
Creates a static IP address resource for Google Compute Engine. For more information see
|
2014-11-20 18:40:17 +01:00
|
|
|
[the official documentation](https://cloud.google.com/compute/docs/instances-and-network) and
|
|
|
|
[API](https://cloud.google.com/compute/docs/reference/latest/addresses).
|
|
|
|
|
2014-08-26 23:50:29 +02:00
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
```js
|
2014-08-26 23:50:29 +02:00
|
|
|
resource "google_compute_address" "default" {
|
2016-04-10 23:34:15 +02:00
|
|
|
name = "test-address"
|
2014-08-26 23:50:29 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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.
|
2016-04-10 23:34:15 +02:00
|
|
|
|
|
|
|
- - -
|
|
|
|
|
|
|
|
* `project` - (Optional) The project in which the resource belongs. If it
|
|
|
|
is not provided, the provider project is used.
|
|
|
|
|
2016-03-31 12:37:17 +02:00
|
|
|
* `region` - (Optional) The Region in which the created address should reside.
|
|
|
|
If it is not provided, the provider region is used.
|
2014-08-26 23:50:29 +02:00
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
In addition to the arguments listed above, the following computed attributes are
|
|
|
|
exported:
|
2014-08-26 23:50:29 +02:00
|
|
|
|
2014-11-20 18:40:17 +01:00
|
|
|
* `self_link` - The URI of the created resource.
|