Represents a PublicAdvertisedPrefix for use with bring your own IP addresses (BYOIP).
To get more information about PublicAdvertisedPrefix, see:
resource "google_compute_public_advertised_prefix" "prefixes" {
name = "my-prefix"
description = "description"
dns_verification_ip = "127.127.0.0"
ip_cidr_range = "127.127.0.0/16"
}
The following arguments are supported:
name
-
(Required)
Name of the resource. The name must be 1-63 characters long, and
comply with RFC1035. Specifically, the name must be 1-63 characters
long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit,
except the last character, which cannot be a dash.
dns_verification_ip
-
(Required)
The IPv4 address to be used for reverse DNS verification.
ip_cidr_range
-
(Required)
The IPv4 address range, in CIDR format, represented by this public advertised prefix.
description
-
(Optional)
An optional description of this resource.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/global/publicAdvertisedPrefixes/{{name}}
self_link
- The URI of the created resource.This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.PublicAdvertisedPrefix can be imported using any of these accepted formats:
projects/{{project}}/global/publicAdvertisedPrefixes/{{name}}
{{project}}/{{name}}
{{name}}
In Terraform v1.5.0 and later, use an import
block to import PublicAdvertisedPrefix using one of the formats above. For example:
import {
id = "projects/{{project}}/global/publicAdvertisedPrefixes/{{name}}"
to = google_compute_public_advertised_prefix.default
}
When using the terraform import
command, PublicAdvertisedPrefix can be imported using one of the formats above. For example:
$ terraform import google_compute_public_advertised_prefix.default projects/{{project}}/global/publicAdvertisedPrefixes/{{name}}
$ terraform import google_compute_public_advertised_prefix.default {{project}}/{{name}}
$ terraform import google_compute_public_advertised_prefix.default {{name}}
This resource supports User Project Overrides.