CertificateMap defines a collection of certificate configurations, which are usable by any associated target proxies
resource "google_certificate_manager_certificate_map" "default" {
name = "cert-map"
description = "My acceptance test certificate map"
labels = {
"terraform" : true,
"acc-test" : true,
}
}
The following arguments are supported:
name
-
(Required)
A user-defined name of the Certificate Map. Certificate Map names must be unique
globally and match the pattern projects/*/locations/*/certificateMaps/*
.description
-
(Optional)
A human-readable description of the resource.
labels
-
(Optional)
Set of labels associated with a Certificate Map resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labels
for all of the labels present on the 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}}/locations/global/certificateMaps/{{name}}
create_time
-
Creation timestamp of a Certificate Map. Timestamp is in RFC3339 UTC "Zulu" format,
accurate to nanoseconds with up to nine fractional digits.
Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
update_time
-
Update timestamp of a Certificate Map. Timestamp is in RFC3339 UTC "Zulu" format,
accurate to nanoseconds with up to nine fractional digits.
Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
gclb_targets
-
A list of target proxies that use this Certificate Map
Structure is documented below.
terraform_labels
-
The combination of labels configured directly on the resource
and default labels configured on the provider.
effective_labels
-
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
The gclb_targets
block contains:
ip_configs
-
(Optional)
An IP configuration where this Certificate Map is serving
Structure is documented below.
target_https_proxy
-
(Optional)
Proxy name must be in the format projects//locations//targetHttpsProxies/*.
This field is part of a union field target_proxy
: Only one of targetHttpsProxy
or
targetSslProxy
may be set.
target_ssl_proxy
-
(Optional)
Proxy name must be in the format projects//locations//targetSslProxies/*.
This field is part of a union field target_proxy
: Only one of targetHttpsProxy
or
targetSslProxy
may be set.
The ip_configs
block supports:
ip_address
-
(Optional)
An external IP address
ports
-
(Optional)
A list of ports
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.CertificateMap can be imported using any of these accepted formats:
projects/{{project}}/locations/global/certificateMaps/{{name}}
{{project}}/{{name}}
{{name}}
In Terraform v1.5.0 and later, use an import
block to import CertificateMap using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/global/certificateMaps/{{name}}"
to = google_certificate_manager_certificate_map.default
}
When using the terraform import
command, CertificateMap can be imported using one of the formats above. For example:
$ terraform import google_certificate_manager_certificate_map.default projects/{{project}}/locations/global/certificateMaps/{{name}}
$ terraform import google_certificate_manager_certificate_map.default {{project}}/{{name}}
$ terraform import google_certificate_manager_certificate_map.default {{name}}
This resource supports User Project Overrides.