TLS v4.10.0, Feb 15 23
TLS
The TLS provider for Pulumi can be used to help to create TLS keys and certitifcate for use with Pulumi resources.
Example
const tls = require("@pulumi/tls")
const key = new tls.PrivateKey("my-private-key", {
algorithm: "ECDSA",
ecdsaCurve: "P384",
});
import * as tls from "@pulumi/tls";
const key = new tls.PrivateKey("my-private-key", {
algorithm: "ECDSA",
ecdsaCurve: "P384",
});
import pulumi_tls as tls
key = tls.PrivateKey("my-private-key",
algorithm="ECDSA",
ecdsa_curve="P384"
)
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
tls "github.com/pulumi/pulumi-tls/sdk/v4/go/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
key, err := tls.NewPrivateKey(ctx, "my-private-key", &tls.PrivateKeyArgs{
Algorithm: pulumi.String("ECDSA"),
EcdsaCurve: pulumi.String("P384"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Tls;
class Program
{
static Task Main() =>
Deployment.Run(() => {
var key = new PrivateKey("my-private-key", new PrivateKeyArgs{
Algorithm = "ECDSA",
EcdsaCurve = "P384",
});
});
}