Skip to content

googleCertificateManagerCertificateMapEntry

CertificateMapEntry is a list of certificate configurations, that have been issued for a particular hostname

Example Usage - Certificate Manager Certificate Map Entry Full

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const googleCertificateManagerCertificateMapCertificateMap =
  new google.certificateManagerCertificateMap.CertificateManagerCertificateMap(
    this,
    "certificate_map",
    {
      description: "My acceptance test certificate map",
      labels: [
        {
          "acc-test": true,
          terraform: true,
        },
      ],
      name: "cert-map-entry",
    }
  );
const googleCertificateManagerDnsAuthorizationInstance =
  new google.certificateManagerDnsAuthorization.CertificateManagerDnsAuthorization(
    this,
    "instance",
    {
      description: "The default dnss",
      domain: "subdomain.hashicorptest.com",
      name: "dns-auth",
    }
  );
const googleCertificateManagerDnsAuthorizationInstance2 =
  new google.certificateManagerDnsAuthorization.CertificateManagerDnsAuthorization(
    this,
    "instance2",
    {
      description: "The default dnss",
      domain: "subdomain2.hashicorptest.com",
      name: "dns-auth2",
    }
  );
const googleCertificateManagerCertificateCertificate =
  new google.certificateManagerCertificate.CertificateManagerCertificate(
    this,
    "certificate",
    {
      description: "The default cert",
      managed: [
        {
          dns_authorizations: [
            googleCertificateManagerDnsAuthorizationInstance.id,
            googleCertificateManagerDnsAuthorizationInstance2.id,
          ],
          domains: [
            googleCertificateManagerDnsAuthorizationInstance.domain,
            googleCertificateManagerDnsAuthorizationInstance2.domain,
          ],
        },
      ],
      name: "cert-map-entry",
      scope: "DEFAULT",
    }
  );
new google.certificateManagerCertificateMapEntry.CertificateManagerCertificateMapEntry(
  this,
  "default",
  {
    certificates: [googleCertificateManagerCertificateCertificate.id],
    description: "My acceptance test certificate map entry",
    labels: [
      {
        "acc-test": true,
        terraform: true,
      },
    ],
    map: googleCertificateManagerCertificateMapCertificateMap.name,
    matcher: "PRIMARY",
    name: "cert-map-entry",
  }
);

Argument Reference

The following arguments are supported:

  • certificates - (Required) A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.

  • name - (Required) A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'

  • map - (Required) A map entry that is inputted into the cetrificate map


  • description - (Optional) A human-readable description of the resource.

  • labels - (Optional) Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

  • hostname - (Optional) A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.

  • matcher - (Optional) A predefined matcher for particular cases, other than SNI selection

  • project - (Optional) The ID of 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:

  • id - an identifier for the resource with format projects/{{project}}/locations/global/certificateMaps/{{map}}/certificateMapEntries/{{name}}

  • createTime - Creation timestamp of a Certificate Map Entry. Timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

  • updateTime - Update timestamp of a Certificate Map Entry. Timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

  • state - A serving state of this Certificate Map Entry.

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • update - Default is 20 minutes.
  • delete - Default is 20 minutes.

Import

CertificateMapEntry can be imported using any of these accepted formats:

$ terraform import google_certificate_manager_certificate_map_entry.default projects/{{project}}/locations/global/certificateMaps/{{map}}/certificateMapEntries/{{name}}
$ terraform import google_certificate_manager_certificate_map_entry.default {{project}}/{{map}}/{{name}}
$ terraform import google_certificate_manager_certificate_map_entry.default {{map}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.