google_compute_public_advertised_prefix

Represents a PublicAdvertisedPrefix for use with bring your own IP addresses (BYOIP).

To get more information about PublicAdvertisedPrefix, see:

Example Usage - Public Advertised Prefixes Basic

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"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

PublicAdvertisedPrefix can be imported using any of these accepted formats:

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}}

User Project Overrides

This resource supports User Project Overrides.