TLS
The TLS provider for Pulumi can be used to help to create TLS keys and certitifcate for use with Pulumi resources.
See the full API documentation for complete details of the available TLS provider APIs.
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",
});
});
}
Libraries
The following packages are available in packager managers:
- JavaScript/TypeScript:
@pulumi/tls
- Python:
pulumi-tls
- Go:
github.com/pulumi/pulumi-tls/sdk/v4/go/tls
- .NET:
Pulumi.Tls
The TLS provider is open source and available in the pulumi/pulumi-tls repo.