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,
});
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"])
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
})
}
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,
});
});
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());
}
}
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}
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,
});
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"])
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
})
}
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,
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args SecretsmanagerCertificateV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args SecretsmanagerCertificateV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretsmanagerCertificateV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var secretsmanagerCertificateV1Resource = new SecretsmanagerCertificateV1("secretsmanagerCertificateV1Resource", SecretsmanagerCertificateV1Args.builder()
.certificates("string")
.privateKey("string")
.projectId("string")
.name("string")
.build());
secretsmanager_certificate_v1_resource = selectel.SecretsmanagerCertificateV1("secretsmanagerCertificateV1Resource",
certificates=["string"],
private_key="string",
project_id="string",
name="string")
const secretsmanagerCertificateV1Resource = new selectel.SecretsmanagerCertificateV1("secretsmanagerCertificateV1Resource", {
certificates: ["string"],
privateKey: "string",
projectId: "string",
name: "string",
});
type: selectel:SecretsmanagerCertificateV1
properties:
certificates:
- string
name: string
privateKey: string
projectId: string
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 List<string>
- Certificate chain in PEM format. The value of each certificate must begin with
-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
. - Private
Key string - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Name string
- Certificate name.
- Certificates []string
- Certificate chain in PEM format. The value of each certificate must begin with
-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
. - Private
Key string - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Name string
- Certificate name.
- certificates List<String>
- Certificate chain in PEM format. The value of each certificate must begin with
-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
. - private
Key String - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- name String
- Certificate name.
- certificates string[]
- Certificate chain in PEM format. The value of each certificate must begin with
-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
. - private
Key string - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- name string
- Certificate name.
- certificates Sequence[str]
- Certificate chain in PEM format. The value of each certificate must begin with
-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
. - 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.
- name str
- Certificate name.
- certificates List<String>
- Certificate chain in PEM format. The value of each certificate must begin with
-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
. - private
Key String - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - project
Id 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:
- Dns
Names List<string> - Domain names for which the certificate is issued.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issued
Bies List<SecretsmanagerCertificate V1Issued By> - 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<Secretsmanager
Certificate V1Validity> - Certificate validity in the RFC3339 timestamp format:
- Version double
- Certificate version.
- Dns
Names []string - Domain names for which the certificate is issued.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issued
Bies []SecretsmanagerCertificate V1Issued By - 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
[]Secretsmanager
Certificate V1Validity - Certificate validity in the RFC3339 timestamp format:
- Version float64
- Certificate version.
- dns
Names List<String> - Domain names for which the certificate is issued.
- id String
- The provider-assigned unique ID for this managed resource.
- issued
Bies List<SecretsmanagerCertificate V1Issued By> - 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<Secretsmanager
Certificate V1Validity> - Certificate validity in the RFC3339 timestamp format:
- version Double
- Certificate version.
- dns
Names string[] - Domain names for which the certificate is issued.
- id string
- The provider-assigned unique ID for this managed resource.
- issued
Bies SecretsmanagerCertificate V1Issued By[] - 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
Secretsmanager
Certificate V1Validity[] - 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[SecretsmanagerCertificate V1Issued By] - 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[Secretsmanager
Certificate V1Validity] - Certificate validity in the RFC3339 timestamp format:
- version float
- Certificate version.
- dns
Names List<String> - Domain names for which the certificate is issued.
- id String
- The provider-assigned unique ID for this managed resource.
- issued
Bies 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Certificates List<string>
- Certificate chain in PEM format. The value of each certificate must begin with
-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
. - Dns
Names List<string> - Domain names for which the certificate is issued.
- Issued
Bies List<SecretsmanagerCertificate V1Issued By> - Information about the Certificate Authority (CA) which verified and signed the certificate.
- Name string
- Certificate name.
- Private
Key string - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - Project
Id 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<Secretsmanager
Certificate V1Validity> - 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-----
. - Dns
Names []string - Domain names for which the certificate is issued.
- Issued
Bies []SecretsmanagerCertificate V1Issued By Args - Information about the Certificate Authority (CA) which verified and signed the certificate.
- Name string
- Certificate name.
- Private
Key string - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - Project
Id 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
[]Secretsmanager
Certificate V1Validity Args - 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-----
. - dns
Names List<String> - Domain names for which the certificate is issued.
- issued
Bies List<SecretsmanagerCertificate V1Issued By> - Information about the Certificate Authority (CA) which verified and signed the certificate.
- name String
- Certificate name.
- private
Key String - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - project
Id 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<Secretsmanager
Certificate V1Validity> - 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-----
. - dns
Names string[] - Domain names for which the certificate is issued.
- issued
Bies SecretsmanagerCertificate V1Issued By[] - Information about the Certificate Authority (CA) which verified and signed the certificate.
- name string
- Certificate name.
- private
Key string - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - project
Id 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
Secretsmanager
Certificate V1Validity[] - 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[SecretsmanagerCertificate V1Issued By Args] - 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[Secretsmanager
Certificate V1Validity Args] - 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-----
. - dns
Names List<String> - Domain names for which the certificate is issued.
- issued
Bies List<Property Map> - Information about the Certificate Authority (CA) which verified and signed the certificate.
- name String
- Certificate name.
- private
Key String - Private key. The value must begin with
-----BEGIN PRIVATE KEY-----
and end with-----END PRIVATE KEY-----
. - project
Id 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 List<string>
- Localities List<string>
- Serial
Number string - Street
Addresses List<string>
- Countries []string
- Localities []string
- Serial
Number string - Street
Addresses []string
- countries List<String>
- localities List<String>
- serial
Number String - street
Addresses List<String>
- countries string[]
- localities string[]
- serial
Number string - street
Addresses string[]
- countries Sequence[str]
- localities Sequence[str]
- serial_
number str - street_
addresses Sequence[str]
- countries List<String>
- localities List<String>
- serial
Number String - street
Addresses List<String>
SecretsmanagerCertificateV1Validity, SecretsmanagerCertificateV1ValidityArgs
- Basic
Constraints bool - Not
After string - Expiration date and time of the certificate.
- Not
Before string - Effective date and time of the certificate.
- Basic
Constraints bool - Not
After string - Expiration date and time of the certificate.
- Not
Before string - Effective date and time of the certificate.
- basic
Constraints Boolean - not
After String - Expiration date and time of the certificate.
- not
Before String - Effective date and time of the certificate.
- basic
Constraints boolean - not
After string - Expiration date and time of the certificate.
- not
Before string - Effective date and time of the certificate.
- basic_
constraints bool - not_
after str - Expiration date and time of the certificate.
- not_
before str - Effective date and time of the certificate.
- basic
Constraints Boolean - not
After String - Expiration date and time of the certificate.
- not
Before 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>
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 Platform ⟶ Secrets 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.