Root

CertificateCA

CertificateCA generates CA certificates.


resource "certificate_ca" "name" {
  ...
}

Attributes

Attribute
Description

Output output required type: string

Output directory to write the certificate and key to.

output = data("certs")

Computed Attributes

These attributes are computed when the config is parsed and applied, and are therefore only known at parsetime or runtime.

Attribute
Description

Meta ID meta.id string

The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:

// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting id will be
resource.container.ubuntu

Meta Type meta.type string

The type of the resource. This taken from the type label of the resource definition.

// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting type will be
container

Meta Name meta.name string

The name of the resource. This taken from the name label of the resource definition.

// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting name will be
ubuntu

PrivateKey private_key type: File

The private key of the generated certificate.

PublicKeyPEM public_key_pem type: File

The PEM key value of the generated certificate.

PublicKeySSH public_key_ssh type: File

The SSH key value of the generated certificate.

Cert certificate type: File

The generated certificate.


File


file {
  ...
}

Attributes

Attribute
Description

Filename filename type: string

The name of the file.

Directory directory type: string

The directory the file is written to.

Path path type: string

The full path where the file is written to.

Contents contents type: string

The contents of the file.

Computed Attributes

These attributes are computed when the config is parsed and applied, and are therefore only known at parsetime or runtime.

Last updated