1. Packages
  2. AWS
  3. API Docs
  4. acmpca
  5. Certificate
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.acmpca.Certificate

Explore with Pulumi AI

Provides a resource to issue a certificate using AWS Certificate Manager Private Certificate Authority (ACM PCA).

Certificates created using aws.acmpca.Certificate are not eligible for automatic renewal, and must be replaced instead. To issue a renewable certificate using an ACM PCA, create a aws.acm.Certificate with the parameter certificate_authority_arn.

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as tls from "@pulumi/tls";

const exampleCertificateAuthority = new aws.acmpca.CertificateAuthority("example", {
    certificateAuthorityConfiguration: {
        keyAlgorithm: "RSA_4096",
        signingAlgorithm: "SHA512WITHRSA",
        subject: {
            commonName: "example.com",
        },
    },
    permanentDeletionTimeInDays: 7,
});
const key = new tls.index.PrivateKey("key", {algorithm: "RSA"});
const csr = new tls.index.CertRequest("csr", {
    privateKeyPem: key.privateKeyPem,
    subject: [{
        commonName: "example",
    }],
});
const example = new aws.acmpca.Certificate("example", {
    certificateAuthorityArn: exampleCertificateAuthority.arn,
    certificateSigningRequest: csr.certRequestPem,
    signingAlgorithm: "SHA256WITHRSA",
    validity: {
        type: "YEARS",
        value: "1",
    },
});
Copy
import pulumi
import pulumi_aws as aws
import pulumi_tls as tls

example_certificate_authority = aws.acmpca.CertificateAuthority("example",
    certificate_authority_configuration={
        "key_algorithm": "RSA_4096",
        "signing_algorithm": "SHA512WITHRSA",
        "subject": {
            "common_name": "example.com",
        },
    },
    permanent_deletion_time_in_days=7)
key = tls.index.PrivateKey("key", algorithm=RSA)
csr = tls.index.CertRequest("csr",
    private_key_pem=key.private_key_pem,
    subject=[{
        commonName: example,
    }])
example = aws.acmpca.Certificate("example",
    certificate_authority_arn=example_certificate_authority.arn,
    certificate_signing_request=csr["certRequestPem"],
    signing_algorithm="SHA256WITHRSA",
    validity={
        "type": "YEARS",
        "value": "1",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/acmpca"
	"github.com/pulumi/pulumi-tls/sdk/v4/go/tls"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleCertificateAuthority, err := acmpca.NewCertificateAuthority(ctx, "example", &acmpca.CertificateAuthorityArgs{
			CertificateAuthorityConfiguration: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationArgs{
				KeyAlgorithm:     pulumi.String("RSA_4096"),
				SigningAlgorithm: pulumi.String("SHA512WITHRSA"),
				Subject: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs{
					CommonName: pulumi.String("example.com"),
				},
			},
			PermanentDeletionTimeInDays: pulumi.Int(7),
		})
		if err != nil {
			return err
		}
		key, err := tls.NewPrivateKey(ctx, "key", &tls.PrivateKeyArgs{
			Algorithm: "RSA",
		})
		if err != nil {
			return err
		}
		csr, err := tls.NewCertRequest(ctx, "csr", &tls.CertRequestArgs{
			PrivateKeyPem: key.PrivateKeyPem,
			Subject: []map[string]interface{}{
				map[string]interface{}{
					"commonName": "example",
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = acmpca.NewCertificate(ctx, "example", &acmpca.CertificateArgs{
			CertificateAuthorityArn:   exampleCertificateAuthority.Arn,
			CertificateSigningRequest: csr.CertRequestPem,
			SigningAlgorithm:          pulumi.String("SHA256WITHRSA"),
			Validity: &acmpca.CertificateValidityArgs{
				Type:  pulumi.String("YEARS"),
				Value: pulumi.String("1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Tls = Pulumi.Tls;

return await Deployment.RunAsync(() => 
{
    var exampleCertificateAuthority = new Aws.Acmpca.CertificateAuthority("example", new()
    {
        CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
        {
            KeyAlgorithm = "RSA_4096",
            SigningAlgorithm = "SHA512WITHRSA",
            Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
            {
                CommonName = "example.com",
            },
        },
        PermanentDeletionTimeInDays = 7,
    });

    var key = new Tls.Index.PrivateKey("key", new()
    {
        Algorithm = "RSA",
    });

    var csr = new Tls.Index.CertRequest("csr", new()
    {
        PrivateKeyPem = key.PrivateKeyPem,
        Subject = new[]
        {
            
            {
                { "commonName", "example" },
            },
        },
    });

    var example = new Aws.Acmpca.Certificate("example", new()
    {
        CertificateAuthorityArn = exampleCertificateAuthority.Arn,
        CertificateSigningRequest = csr.CertRequestPem,
        SigningAlgorithm = "SHA256WITHRSA",
        Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
        {
            Type = "YEARS",
            Value = "1",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.acmpca.CertificateAuthority;
import com.pulumi.aws.acmpca.CertificateAuthorityArgs;
import com.pulumi.aws.acmpca.inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs;
import com.pulumi.aws.acmpca.inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs;
import com.pulumi.tls.privateKey;
import com.pulumi.tls.PrivateKeyArgs;
import com.pulumi.tls.certRequest;
import com.pulumi.tls.CertRequestArgs;
import com.pulumi.aws.acmpca.Certificate;
import com.pulumi.aws.acmpca.CertificateArgs;
import com.pulumi.aws.acmpca.inputs.CertificateValidityArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder()
            .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder()
                .keyAlgorithm("RSA_4096")
                .signingAlgorithm("SHA512WITHRSA")
                .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder()
                    .commonName("example.com")
                    .build())
                .build())
            .permanentDeletionTimeInDays(7)
            .build());

        var key = new PrivateKey("key", PrivateKeyArgs.builder()
            .algorithm("RSA")
            .build());

        var csr = new CertRequest("csr", CertRequestArgs.builder()
            .privateKeyPem(key.privateKeyPem())
            .subject(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
            .build());

        var example = new Certificate("example", CertificateArgs.builder()
            .certificateAuthorityArn(exampleCertificateAuthority.arn())
            .certificateSigningRequest(csr.certRequestPem())
            .signingAlgorithm("SHA256WITHRSA")
            .validity(CertificateValidityArgs.builder()
                .type("YEARS")
                .value(1)
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:acmpca:Certificate
    properties:
      certificateAuthorityArn: ${exampleCertificateAuthority.arn}
      certificateSigningRequest: ${csr.certRequestPem}
      signingAlgorithm: SHA256WITHRSA
      validity:
        type: YEARS
        value: 1
  exampleCertificateAuthority:
    type: aws:acmpca:CertificateAuthority
    name: example
    properties:
      certificateAuthorityConfiguration:
        keyAlgorithm: RSA_4096
        signingAlgorithm: SHA512WITHRSA
        subject:
          commonName: example.com
      permanentDeletionTimeInDays: 7
  key:
    type: tls:privateKey
    properties:
      algorithm: RSA
  csr:
    type: tls:certRequest
    properties:
      privateKeyPem: ${key.privateKeyPem}
      subject:
        - commonName: example
Copy

Create Certificate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
                args: CertificateArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Certificate(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                certificate_authority_arn: Optional[str] = None,
                certificate_signing_request: Optional[str] = None,
                signing_algorithm: Optional[str] = None,
                validity: Optional[CertificateValidityArgs] = None,
                api_passthrough: Optional[str] = None,
                template_arn: Optional[str] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: aws:acmpca:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var awsCertificateResource = new Aws.Acmpca.Certificate("awsCertificateResource", new()
{
    CertificateAuthorityArn = "string",
    CertificateSigningRequest = "string",
    SigningAlgorithm = "string",
    Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
    {
        Type = "string",
        Value = "string",
    },
    ApiPassthrough = "string",
    TemplateArn = "string",
});
Copy
example, err := acmpca.NewCertificate(ctx, "awsCertificateResource", &acmpca.CertificateArgs{
	CertificateAuthorityArn:   pulumi.String("string"),
	CertificateSigningRequest: pulumi.String("string"),
	SigningAlgorithm:          pulumi.String("string"),
	Validity: &acmpca.CertificateValidityArgs{
		Type:  pulumi.String("string"),
		Value: pulumi.String("string"),
	},
	ApiPassthrough: pulumi.String("string"),
	TemplateArn:    pulumi.String("string"),
})
Copy
var awsCertificateResource = new Certificate("awsCertificateResource", CertificateArgs.builder()
    .certificateAuthorityArn("string")
    .certificateSigningRequest("string")
    .signingAlgorithm("string")
    .validity(CertificateValidityArgs.builder()
        .type("string")
        .value("string")
        .build())
    .apiPassthrough("string")
    .templateArn("string")
    .build());
Copy
aws_certificate_resource = aws.acmpca.Certificate("awsCertificateResource",
    certificate_authority_arn="string",
    certificate_signing_request="string",
    signing_algorithm="string",
    validity={
        "type": "string",
        "value": "string",
    },
    api_passthrough="string",
    template_arn="string")
Copy
const awsCertificateResource = new aws.acmpca.Certificate("awsCertificateResource", {
    certificateAuthorityArn: "string",
    certificateSigningRequest: "string",
    signingAlgorithm: "string",
    validity: {
        type: "string",
        value: "string",
    },
    apiPassthrough: "string",
    templateArn: "string",
});
Copy
type: aws:acmpca:Certificate
properties:
    apiPassthrough: string
    certificateAuthorityArn: string
    certificateSigningRequest: string
    signingAlgorithm: string
    templateArn: string
    validity:
        type: string
        value: string
Copy

Certificate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Certificate resource accepts the following input properties:

CertificateAuthorityArn
This property is required.
Changes to this property will trigger replacement.
string
ARN of the certificate authority.
CertificateSigningRequest
This property is required.
Changes to this property will trigger replacement.
string
Certificate Signing Request in PEM format.
SigningAlgorithm
This property is required.
Changes to this property will trigger replacement.
string
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
Validity
This property is required.
Changes to this property will trigger replacement.
CertificateValidity
Configures end of the validity period for the certificate. See validity block below.
ApiPassthrough Changes to this property will trigger replacement. string
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
TemplateArn Changes to this property will trigger replacement. string
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
CertificateAuthorityArn
This property is required.
Changes to this property will trigger replacement.
string
ARN of the certificate authority.
CertificateSigningRequest
This property is required.
Changes to this property will trigger replacement.
string
Certificate Signing Request in PEM format.
SigningAlgorithm
This property is required.
Changes to this property will trigger replacement.
string
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
Validity
This property is required.
Changes to this property will trigger replacement.
CertificateValidityArgs
Configures end of the validity period for the certificate. See validity block below.
ApiPassthrough Changes to this property will trigger replacement. string
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
TemplateArn Changes to this property will trigger replacement. string
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
certificateAuthorityArn
This property is required.
Changes to this property will trigger replacement.
String
ARN of the certificate authority.
certificateSigningRequest
This property is required.
Changes to this property will trigger replacement.
String
Certificate Signing Request in PEM format.
signingAlgorithm
This property is required.
Changes to this property will trigger replacement.
String
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
validity
This property is required.
Changes to this property will trigger replacement.
CertificateValidity
Configures end of the validity period for the certificate. See validity block below.
apiPassthrough Changes to this property will trigger replacement. String
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
templateArn Changes to this property will trigger replacement. String
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
certificateAuthorityArn
This property is required.
Changes to this property will trigger replacement.
string
ARN of the certificate authority.
certificateSigningRequest
This property is required.
Changes to this property will trigger replacement.
string
Certificate Signing Request in PEM format.
signingAlgorithm
This property is required.
Changes to this property will trigger replacement.
string
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
validity
This property is required.
Changes to this property will trigger replacement.
CertificateValidity
Configures end of the validity period for the certificate. See validity block below.
apiPassthrough Changes to this property will trigger replacement. string
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
templateArn Changes to this property will trigger replacement. string
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
certificate_authority_arn
This property is required.
Changes to this property will trigger replacement.
str
ARN of the certificate authority.
certificate_signing_request
This property is required.
Changes to this property will trigger replacement.
str
Certificate Signing Request in PEM format.
signing_algorithm
This property is required.
Changes to this property will trigger replacement.
str
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
validity
This property is required.
Changes to this property will trigger replacement.
CertificateValidityArgs
Configures end of the validity period for the certificate. See validity block below.
api_passthrough Changes to this property will trigger replacement. str
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
template_arn Changes to this property will trigger replacement. str
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
certificateAuthorityArn
This property is required.
Changes to this property will trigger replacement.
String
ARN of the certificate authority.
certificateSigningRequest
This property is required.
Changes to this property will trigger replacement.
String
Certificate Signing Request in PEM format.
signingAlgorithm
This property is required.
Changes to this property will trigger replacement.
String
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
validity
This property is required.
Changes to this property will trigger replacement.
Property Map
Configures end of the validity period for the certificate. See validity block below.
apiPassthrough Changes to this property will trigger replacement. String
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
templateArn Changes to this property will trigger replacement. String
Template to use when issuing a certificate. See ACM PCA Documentation for more information.

Outputs

All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:

Arn string
ARN of the certificate.
CertificateChain string
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
CertificateDetails string
PEM-encoded certificate value.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
ARN of the certificate.
Certificate string
PEM-encoded certificate value.
CertificateChain string
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
Id string
The provider-assigned unique ID for this managed resource.
arn String
ARN of the certificate.
certificate String
PEM-encoded certificate value.
certificateChain String
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
id String
The provider-assigned unique ID for this managed resource.
arn string
ARN of the certificate.
certificate string
PEM-encoded certificate value.
certificateChain string
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
id string
The provider-assigned unique ID for this managed resource.
arn str
ARN of the certificate.
certificate str
PEM-encoded certificate value.
certificate_chain str
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
id str
The provider-assigned unique ID for this managed resource.
arn String
ARN of the certificate.
certificate String
PEM-encoded certificate value.
certificateChain String
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Certificate Resource

Get an existing Certificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CertificateState, opts?: CustomResourceOptions): Certificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_passthrough: Optional[str] = None,
        arn: Optional[str] = None,
        certificate: Optional[str] = None,
        certificate_authority_arn: Optional[str] = None,
        certificate_chain: Optional[str] = None,
        certificate_signing_request: Optional[str] = None,
        signing_algorithm: Optional[str] = None,
        template_arn: Optional[str] = None,
        validity: Optional[CertificateValidityArgs] = None) -> Certificate
func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
resources:  _:    type: aws:acmpca:Certificate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApiPassthrough Changes to this property will trigger replacement. string
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
Arn string
ARN of the certificate.
CertificateAuthorityArn Changes to this property will trigger replacement. string
ARN of the certificate authority.
CertificateChain string
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
CertificateDetails string
PEM-encoded certificate value.
CertificateSigningRequest Changes to this property will trigger replacement. string
Certificate Signing Request in PEM format.
SigningAlgorithm Changes to this property will trigger replacement. string
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
TemplateArn Changes to this property will trigger replacement. string
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
Validity Changes to this property will trigger replacement. CertificateValidity
Configures end of the validity period for the certificate. See validity block below.
ApiPassthrough Changes to this property will trigger replacement. string
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
Arn string
ARN of the certificate.
Certificate string
PEM-encoded certificate value.
CertificateAuthorityArn Changes to this property will trigger replacement. string
ARN of the certificate authority.
CertificateChain string
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
CertificateSigningRequest Changes to this property will trigger replacement. string
Certificate Signing Request in PEM format.
SigningAlgorithm Changes to this property will trigger replacement. string
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
TemplateArn Changes to this property will trigger replacement. string
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
Validity Changes to this property will trigger replacement. CertificateValidityArgs
Configures end of the validity period for the certificate. See validity block below.
apiPassthrough Changes to this property will trigger replacement. String
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
arn String
ARN of the certificate.
certificate String
PEM-encoded certificate value.
certificateAuthorityArn Changes to this property will trigger replacement. String
ARN of the certificate authority.
certificateChain String
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
certificateSigningRequest Changes to this property will trigger replacement. String
Certificate Signing Request in PEM format.
signingAlgorithm Changes to this property will trigger replacement. String
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
templateArn Changes to this property will trigger replacement. String
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
validity Changes to this property will trigger replacement. CertificateValidity
Configures end of the validity period for the certificate. See validity block below.
apiPassthrough Changes to this property will trigger replacement. string
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
arn string
ARN of the certificate.
certificate string
PEM-encoded certificate value.
certificateAuthorityArn Changes to this property will trigger replacement. string
ARN of the certificate authority.
certificateChain string
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
certificateSigningRequest Changes to this property will trigger replacement. string
Certificate Signing Request in PEM format.
signingAlgorithm Changes to this property will trigger replacement. string
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
templateArn Changes to this property will trigger replacement. string
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
validity Changes to this property will trigger replacement. CertificateValidity
Configures end of the validity period for the certificate. See validity block below.
api_passthrough Changes to this property will trigger replacement. str
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
arn str
ARN of the certificate.
certificate str
PEM-encoded certificate value.
certificate_authority_arn Changes to this property will trigger replacement. str
ARN of the certificate authority.
certificate_chain str
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
certificate_signing_request Changes to this property will trigger replacement. str
Certificate Signing Request in PEM format.
signing_algorithm Changes to this property will trigger replacement. str
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
template_arn Changes to this property will trigger replacement. str
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
validity Changes to this property will trigger replacement. CertificateValidityArgs
Configures end of the validity period for the certificate. See validity block below.
apiPassthrough Changes to this property will trigger replacement. String
Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
arn String
ARN of the certificate.
certificate String
PEM-encoded certificate value.
certificateAuthorityArn Changes to this property will trigger replacement. String
ARN of the certificate authority.
certificateChain String
PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
certificateSigningRequest Changes to this property will trigger replacement. String
Certificate Signing Request in PEM format.
signingAlgorithm Changes to this property will trigger replacement. String
Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
templateArn Changes to this property will trigger replacement. String
Template to use when issuing a certificate. See ACM PCA Documentation for more information.
validity Changes to this property will trigger replacement. Property Map
Configures end of the validity period for the certificate. See validity block below.

Supporting Types

CertificateValidity
, CertificateValidityArgs

Type
This property is required.
Changes to this property will trigger replacement.
string
Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
Value
This property is required.
Changes to this property will trigger replacement.
string
If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
Type
This property is required.
Changes to this property will trigger replacement.
string
Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
Value
This property is required.
Changes to this property will trigger replacement.
string
If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
type
This property is required.
Changes to this property will trigger replacement.
String
Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
value
This property is required.
Changes to this property will trigger replacement.
String
If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
type
This property is required.
Changes to this property will trigger replacement.
string
Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
value
This property is required.
Changes to this property will trigger replacement.
string
If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
type
This property is required.
Changes to this property will trigger replacement.
str
Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
value
This property is required.
Changes to this property will trigger replacement.
str
If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
type
This property is required.
Changes to this property will trigger replacement.
String
Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
value
This property is required.
Changes to this property will trigger replacement.
String
If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.

Import

Using pulumi import, import ACM PCA Certificates using their ARN. For example:

$ pulumi import aws:acmpca/certificate:Certificate cert arn:aws:acm-pca:eu-west-1:675225743824:certificate-authority/08319ede-83g9-1400-8f21-c7d12b2b6edb/certificate/a4e9c2aa4bcfab625g1b9136464cd3a
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.