1. Packages
  2. Selectel Provider
  3. API Docs
  4. SecretsmanagerCertificateV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.SecretsmanagerCertificateV1

Explore with Pulumi AI

Creates and manages a certificate in Selectel Secrets Manager using public API v1. For more information about certificates, see the official Selectel documentation.

Example Usage

Text format

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as selectel from "@pulumi/selectel";

const certificate1 = new selectel.SecretsmanagerCertificateV1("certificate1", {
    certificates: [fs.readFileSync("./_cert.pem", "utf8")],
    privateKey: fs.readFileSync("./_private_key.pem", "utf8"),
    projectId: selectel_vpc_project_v2.project_1.id,
});
Copy
import pulumi
import pulumi_selectel as selectel

certificate1 = selectel.SecretsmanagerCertificateV1("certificate1",
    certificates=[(lambda path: open(path).read())("./_cert.pem")],
    private_key=(lambda path: open(path).read())("./_private_key.pem"),
    project_id=selectel_vpc_project_v2["project_1"]["id"])
Copy
package main

import (
	"os"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := selectel.NewSecretsmanagerCertificateV1(ctx, "certificate1", &selectel.SecretsmanagerCertificateV1Args{
			Certificates: pulumi.StringArray{
				pulumi.String(readFileOrPanic("./_cert.pem")),
			},
			PrivateKey: pulumi.String(readFileOrPanic("./_private_key.pem")),
			ProjectId:  pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;

return await Deployment.RunAsync(() => 
{
    var certificate1 = new Selectel.SecretsmanagerCertificateV1("certificate1", new()
    {
        Certificates = new[]
        {
            File.ReadAllText("./_cert.pem"),
        },
        PrivateKey = File.ReadAllText("./_private_key.pem"),
        ProjectId = selectel_vpc_project_v2.Project_1.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.SecretsmanagerCertificateV1;
import com.pulumi.selectel.SecretsmanagerCertificateV1Args;
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 certificate1 = new SecretsmanagerCertificateV1("certificate1", SecretsmanagerCertificateV1Args.builder()
            .certificates(Files.readString(Paths.get("./_cert.pem")))
            .privateKey(Files.readString(Paths.get("./_private_key.pem")))
            .projectId(selectel_vpc_project_v2.project_1().id())
            .build());

    }
}
Copy
resources:
  certificate1:
    type: selectel:SecretsmanagerCertificateV1
    properties:
      certificates:
        - fn::readFile: ./_cert.pem
      privateKey:
        fn::readFile: ./_private_key.pem
      projectId: ${selectel_vpc_project_v2.project_1.id}
Copy

EOF

import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";

const certificate1 = new selectel.SecretsmanagerCertificateV1("certificate1", {
    certificates: [`-----BEGIN CERTIFICATE-----
MIIDSzCCAjOgAwIBAgIULEumDHpDEHvQ1seZB9yRX9sCgoUwDQYJKoZIhvcNAQEL
...
----END CERTIFICATE-----
`],
    privateKey: `-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCuk3SFn0AfAoxo
...
-----END PRIVATE KEY-----
`,
    projectId: selectel_vpc_project_v2.project_1.id,
});
Copy
import pulumi
import pulumi_selectel as selectel

certificate1 = selectel.SecretsmanagerCertificateV1("certificate1",
    certificates=["""-----BEGIN CERTIFICATE-----
MIIDSzCCAjOgAwIBAgIULEumDHpDEHvQ1seZB9yRX9sCgoUwDQYJKoZIhvcNAQEL
...
----END CERTIFICATE-----
"""],
    private_key="""-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCuk3SFn0AfAoxo
...
-----END PRIVATE KEY-----
""",
    project_id=selectel_vpc_project_v2["project_1"]["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := selectel.NewSecretsmanagerCertificateV1(ctx, "certificate1", &selectel.SecretsmanagerCertificateV1Args{
			Certificates: pulumi.StringArray{
				pulumi.String("-----BEGIN CERTIFICATE-----\nMIIDSzCCAjOgAwIBAgIULEumDHpDEHvQ1seZB9yRX9sCgoUwDQYJKoZIhvcNAQEL\n...\n----END CERTIFICATE-----\n"),
			},
			PrivateKey: pulumi.String("-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCuk3SFn0AfAoxo\n...\n-----END PRIVATE KEY-----\n"),
			ProjectId:  pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;

return await Deployment.RunAsync(() => 
{
    var certificate1 = new Selectel.SecretsmanagerCertificateV1("certificate1", new()
    {
        Certificates = new[]
        {
            @"-----BEGIN CERTIFICATE-----
MIIDSzCCAjOgAwIBAgIULEumDHpDEHvQ1seZB9yRX9sCgoUwDQYJKoZIhvcNAQEL
...
----END CERTIFICATE-----
",
        },
        PrivateKey = @"-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCuk3SFn0AfAoxo
...
-----END PRIVATE KEY-----
",
        ProjectId = selectel_vpc_project_v2.Project_1.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.SecretsmanagerCertificateV1;
import com.pulumi.selectel.SecretsmanagerCertificateV1Args;
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 certificate1 = new SecretsmanagerCertificateV1("certificate1", SecretsmanagerCertificateV1Args.builder()
            .certificates("""
-----BEGIN CERTIFICATE-----
MIIDSzCCAjOgAwIBAgIULEumDHpDEHvQ1seZB9yRX9sCgoUwDQYJKoZIhvcNAQEL
...
----END CERTIFICATE-----
            """)
            .privateKey("""
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCuk3SFn0AfAoxo
...
-----END PRIVATE KEY-----
            """)
            .projectId(selectel_vpc_project_v2.project_1().id())
            .build());

    }
}
Copy
resources:
  certificate1:
    type: selectel:SecretsmanagerCertificateV1
    properties:
      certificates:
        - |
          -----BEGIN CERTIFICATE-----
          MIIDSzCCAjOgAwIBAgIULEumDHpDEHvQ1seZB9yRX9sCgoUwDQYJKoZIhvcNAQEL
          ...
          ----END CERTIFICATE-----          
      privateKey: |
        -----BEGIN PRIVATE KEY-----
        MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCuk3SFn0AfAoxo
        ...
        -----END PRIVATE KEY-----        
      projectId: ${selectel_vpc_project_v2.project_1.id}
Copy

Create SecretsmanagerCertificateV1 Resource

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

Constructor syntax

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

@overload
def SecretsmanagerCertificateV1(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                certificates: Optional[Sequence[str]] = None,
                                private_key: Optional[str] = None,
                                project_id: Optional[str] = None,
                                name: Optional[str] = None)
func NewSecretsmanagerCertificateV1(ctx *Context, name string, args SecretsmanagerCertificateV1Args, opts ...ResourceOption) (*SecretsmanagerCertificateV1, error)
public SecretsmanagerCertificateV1(string name, SecretsmanagerCertificateV1Args args, CustomResourceOptions? opts = null)
public SecretsmanagerCertificateV1(String name, SecretsmanagerCertificateV1Args args)
public SecretsmanagerCertificateV1(String name, SecretsmanagerCertificateV1Args args, CustomResourceOptions options)
type: selectel:SecretsmanagerCertificateV1
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. SecretsmanagerCertificateV1Args
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. SecretsmanagerCertificateV1Args
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. SecretsmanagerCertificateV1Args
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. SecretsmanagerCertificateV1Args
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. SecretsmanagerCertificateV1Args
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 secretsmanagerCertificateV1Resource = new Selectel.SecretsmanagerCertificateV1("secretsmanagerCertificateV1Resource", new()
{
    Certificates = new[]
    {
        "string",
    },
    PrivateKey = "string",
    ProjectId = "string",
    Name = "string",
});
Copy
example, err := selectel.NewSecretsmanagerCertificateV1(ctx, "secretsmanagerCertificateV1Resource", &selectel.SecretsmanagerCertificateV1Args{
Certificates: pulumi.StringArray{
pulumi.String("string"),
},
PrivateKey: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var secretsmanagerCertificateV1Resource = new SecretsmanagerCertificateV1("secretsmanagerCertificateV1Resource", SecretsmanagerCertificateV1Args.builder()
    .certificates("string")
    .privateKey("string")
    .projectId("string")
    .name("string")
    .build());
Copy
secretsmanager_certificate_v1_resource = selectel.SecretsmanagerCertificateV1("secretsmanagerCertificateV1Resource",
    certificates=["string"],
    private_key="string",
    project_id="string",
    name="string")
Copy
const secretsmanagerCertificateV1Resource = new selectel.SecretsmanagerCertificateV1("secretsmanagerCertificateV1Resource", {
    certificates: ["string"],
    privateKey: "string",
    projectId: "string",
    name: "string",
});
Copy
type: selectel:SecretsmanagerCertificateV1
properties:
    certificates:
        - string
    name: string
    privateKey: string
    projectId: string
Copy

SecretsmanagerCertificateV1 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 SecretsmanagerCertificateV1 resource accepts the following input properties:

Certificates This property is required. List<string>
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
PrivateKey This property is required. string
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
ProjectId This property is required. string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
Name string
Certificate name.
Certificates This property is required. []string
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
PrivateKey This property is required. string
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
ProjectId This property is required. string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
Name string
Certificate name.
certificates This property is required. List<String>
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
privateKey This property is required. String
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
projectId This property is required. String
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
name String
Certificate name.
certificates This property is required. string[]
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
privateKey This property is required. string
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
projectId This property is required. string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
name string
Certificate name.
certificates This property is required. Sequence[str]
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
private_key This property is required. str
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
project_id This property is required. str
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
name str
Certificate name.
certificates This property is required. List<String>
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
privateKey This property is required. String
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
projectId This property is required. String
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
name String
Certificate name.

Outputs

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

DnsNames List<string>
Domain names for which the certificate is issued.
Id string
The provider-assigned unique ID for this managed resource.
IssuedBies List<SecretsmanagerCertificateV1IssuedBy>
Information about the Certificate Authority (CA) which verified and signed the certificate.
Serial string
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
Validities List<SecretsmanagerCertificateV1Validity>
Certificate validity in the RFC3339 timestamp format:
Version double
Certificate version.
DnsNames []string
Domain names for which the certificate is issued.
Id string
The provider-assigned unique ID for this managed resource.
IssuedBies []SecretsmanagerCertificateV1IssuedBy
Information about the Certificate Authority (CA) which verified and signed the certificate.
Serial string
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
Validities []SecretsmanagerCertificateV1Validity
Certificate validity in the RFC3339 timestamp format:
Version float64
Certificate version.
dnsNames List<String>
Domain names for which the certificate is issued.
id String
The provider-assigned unique ID for this managed resource.
issuedBies List<SecretsmanagerCertificateV1IssuedBy>
Information about the Certificate Authority (CA) which verified and signed the certificate.
serial String
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities List<SecretsmanagerCertificateV1Validity>
Certificate validity in the RFC3339 timestamp format:
version Double
Certificate version.
dnsNames string[]
Domain names for which the certificate is issued.
id string
The provider-assigned unique ID for this managed resource.
issuedBies SecretsmanagerCertificateV1IssuedBy[]
Information about the Certificate Authority (CA) which verified and signed the certificate.
serial string
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities SecretsmanagerCertificateV1Validity[]
Certificate validity in the RFC3339 timestamp format:
version number
Certificate version.
dns_names Sequence[str]
Domain names for which the certificate is issued.
id str
The provider-assigned unique ID for this managed resource.
issued_bies Sequence[SecretsmanagerCertificateV1IssuedBy]
Information about the Certificate Authority (CA) which verified and signed the certificate.
serial str
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities Sequence[SecretsmanagerCertificateV1Validity]
Certificate validity in the RFC3339 timestamp format:
version float
Certificate version.
dnsNames List<String>
Domain names for which the certificate is issued.
id String
The provider-assigned unique ID for this managed resource.
issuedBies List<Property Map>
Information about the Certificate Authority (CA) which verified and signed the certificate.
serial String
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities List<Property Map>
Certificate validity in the RFC3339 timestamp format:
version Number
Certificate version.

Look up Existing SecretsmanagerCertificateV1 Resource

Get an existing SecretsmanagerCertificateV1 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?: SecretsmanagerCertificateV1State, opts?: CustomResourceOptions): SecretsmanagerCertificateV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificates: Optional[Sequence[str]] = None,
        dns_names: Optional[Sequence[str]] = None,
        issued_bies: Optional[Sequence[SecretsmanagerCertificateV1IssuedByArgs]] = None,
        name: Optional[str] = None,
        private_key: Optional[str] = None,
        project_id: Optional[str] = None,
        serial: Optional[str] = None,
        validities: Optional[Sequence[SecretsmanagerCertificateV1ValidityArgs]] = None,
        version: Optional[float] = None) -> SecretsmanagerCertificateV1
func GetSecretsmanagerCertificateV1(ctx *Context, name string, id IDInput, state *SecretsmanagerCertificateV1State, opts ...ResourceOption) (*SecretsmanagerCertificateV1, error)
public static SecretsmanagerCertificateV1 Get(string name, Input<string> id, SecretsmanagerCertificateV1State? state, CustomResourceOptions? opts = null)
public static SecretsmanagerCertificateV1 get(String name, Output<String> id, SecretsmanagerCertificateV1State state, CustomResourceOptions options)
resources:  _:    type: selectel:SecretsmanagerCertificateV1    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:
Certificates List<string>
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
DnsNames List<string>
Domain names for which the certificate is issued.
IssuedBies List<SecretsmanagerCertificateV1IssuedBy>
Information about the Certificate Authority (CA) which verified and signed the certificate.
Name string
Certificate name.
PrivateKey string
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
ProjectId string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
Serial string
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
Validities List<SecretsmanagerCertificateV1Validity>
Certificate validity in the RFC3339 timestamp format:
Version double
Certificate version.
Certificates []string
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
DnsNames []string
Domain names for which the certificate is issued.
IssuedBies []SecretsmanagerCertificateV1IssuedByArgs
Information about the Certificate Authority (CA) which verified and signed the certificate.
Name string
Certificate name.
PrivateKey string
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
ProjectId string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
Serial string
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
Validities []SecretsmanagerCertificateV1ValidityArgs
Certificate validity in the RFC3339 timestamp format:
Version float64
Certificate version.
certificates List<String>
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
dnsNames List<String>
Domain names for which the certificate is issued.
issuedBies List<SecretsmanagerCertificateV1IssuedBy>
Information about the Certificate Authority (CA) which verified and signed the certificate.
name String
Certificate name.
privateKey String
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
projectId String
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
serial String
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities List<SecretsmanagerCertificateV1Validity>
Certificate validity in the RFC3339 timestamp format:
version Double
Certificate version.
certificates string[]
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
dnsNames string[]
Domain names for which the certificate is issued.
issuedBies SecretsmanagerCertificateV1IssuedBy[]
Information about the Certificate Authority (CA) which verified and signed the certificate.
name string
Certificate name.
privateKey string
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
projectId string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
serial string
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities SecretsmanagerCertificateV1Validity[]
Certificate validity in the RFC3339 timestamp format:
version number
Certificate version.
certificates Sequence[str]
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
dns_names Sequence[str]
Domain names for which the certificate is issued.
issued_bies Sequence[SecretsmanagerCertificateV1IssuedByArgs]
Information about the Certificate Authority (CA) which verified and signed the certificate.
name str
Certificate name.
private_key str
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
project_id str
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
serial str
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities Sequence[SecretsmanagerCertificateV1ValidityArgs]
Certificate validity in the RFC3339 timestamp format:
version float
Certificate version.
certificates List<String>
Certificate chain in PEM format. The value of each certificate must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
dnsNames List<String>
Domain names for which the certificate is issued.
issuedBies List<Property Map>
Information about the Certificate Authority (CA) which verified and signed the certificate.
name String
Certificate name.
privateKey String
Private key. The value must begin with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----.
projectId String
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
serial String
Certificate serial number assigned by the Certificate Authority (CA) which issued the certificate.
validities List<Property Map>
Certificate validity in the RFC3339 timestamp format:
version Number
Certificate version.

Supporting Types

SecretsmanagerCertificateV1IssuedBy
, SecretsmanagerCertificateV1IssuedByArgs

Countries This property is required. List<string>
Localities This property is required. List<string>
SerialNumber This property is required. string
StreetAddresses This property is required. List<string>
Countries This property is required. []string
Localities This property is required. []string
SerialNumber This property is required. string
StreetAddresses This property is required. []string
countries This property is required. List<String>
localities This property is required. List<String>
serialNumber This property is required. String
streetAddresses This property is required. List<String>
countries This property is required. string[]
localities This property is required. string[]
serialNumber This property is required. string
streetAddresses This property is required. string[]
countries This property is required. Sequence[str]
localities This property is required. Sequence[str]
serial_number This property is required. str
street_addresses This property is required. Sequence[str]
countries This property is required. List<String>
localities This property is required. List<String>
serialNumber This property is required. String
streetAddresses This property is required. List<String>

SecretsmanagerCertificateV1Validity
, SecretsmanagerCertificateV1ValidityArgs

BasicConstraints This property is required. bool
NotAfter This property is required. string
Expiration date and time of the certificate.
NotBefore This property is required. string
Effective date and time of the certificate.
BasicConstraints This property is required. bool
NotAfter This property is required. string
Expiration date and time of the certificate.
NotBefore This property is required. string
Effective date and time of the certificate.
basicConstraints This property is required. Boolean
notAfter This property is required. String
Expiration date and time of the certificate.
notBefore This property is required. String
Effective date and time of the certificate.
basicConstraints This property is required. boolean
notAfter This property is required. string
Expiration date and time of the certificate.
notBefore This property is required. string
Effective date and time of the certificate.
basic_constraints This property is required. bool
not_after This property is required. str
Expiration date and time of the certificate.
not_before This property is required. str
Effective date and time of the certificate.
basicConstraints This property is required. Boolean
notAfter This property is required. String
Expiration date and time of the certificate.
notBefore This property is required. String
Effective date and time of the certificate.

Import

You can import a certificate:

export INFRA_PROJECT_ID=<selectel_project_id>

$ pulumi import selectel:index/secretsmanagerCertificateV1:SecretsmanagerCertificateV1 certificate_1 <certificate_id>
Copy

where:

  • <selectel_project_id> — Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.

  • <certificate_id> — Unique identifier of the certificate. To get the ID of the certificate, in the Control panel, go to Cloud PlatformSecrets Manager ⟶ the Certificates tab ⟶ in the certificate menu select Copy UUID.

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

Package Details

Repository
selectel selectel/terraform-provider-selectel
License
Notes
This Pulumi package is based on the selectel Terraform Provider.