harness.platform.SecretSshkey
Explore with Pulumi AI
Resource for creating an ssh key type secret.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;
return await Deployment.RunAsync(() =>
{
var keyTabFilePath = new Harness.Platform.SecretSshkey("keyTabFilePath", new()
{
Identifier = "identifier",
Description = "test",
Tags = new[]
{
"foo:bar",
},
Port = 22,
Kerberos = new Harness.Platform.Inputs.SecretSshkeyKerberosArgs
{
TgtKeyTabFilePathSpec = new Harness.Platform.Inputs.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs
{
KeyPath = "key_path",
},
Principal = "principal",
Realm = "realm",
TgtGenerationMethod = "KeyTabFilePath",
},
});
var _tgtPassword = new Harness.Platform.SecretSshkey(" tgtPassword", new()
{
Identifier = "identifier",
Description = "test",
Tags = new[]
{
"foo:bar",
},
Port = 22,
Kerberos = new Harness.Platform.Inputs.SecretSshkeyKerberosArgs
{
TgtPasswordSpec = new Harness.Platform.Inputs.SecretSshkeyKerberosTgtPasswordSpecArgs
{
Password = $"account.{secret.Id}",
},
Principal = "principal",
Realm = "realm",
TgtGenerationMethod = "Password",
},
});
var sshkeyReference = new Harness.Platform.SecretSshkey("sshkeyReference", new()
{
Identifier = "identifier",
Description = "test",
Tags = new[]
{
"foo:bar",
},
Port = 22,
Ssh = new Harness.Platform.Inputs.SecretSshkeySshArgs
{
SshkeyReferenceCredential = new Harness.Platform.Inputs.SecretSshkeySshSshkeyReferenceCredentialArgs
{
UserName = "user_name",
Key = $"account.{key.Id}",
EncryptedPassphrase = $"account.{secret.Id}",
},
CredentialType = "KeyReference",
},
});
var _sshkeyPath = new Harness.Platform.SecretSshkey(" sshkeyPath", new()
{
Identifier = "identifier",
Description = "test",
Tags = new[]
{
"foo:bar",
},
Port = 22,
Ssh = new Harness.Platform.Inputs.SecretSshkeySshArgs
{
SshkeyPathCredential = new Harness.Platform.Inputs.SecretSshkeySshSshkeyPathCredentialArgs
{
UserName = "user_name",
KeyPath = "key_path",
EncryptedPassphrase = "encrypted_passphrase",
},
CredentialType = "KeyPath",
},
});
var sshPassword = new Harness.Platform.SecretSshkey("sshPassword", new()
{
Identifier = "identifier",
Description = "test",
Tags = new[]
{
"foo:bar",
},
Port = 22,
Ssh = new Harness.Platform.Inputs.SecretSshkeySshArgs
{
SshPasswordCredential = new Harness.Platform.Inputs.SecretSshkeySshSshPasswordCredentialArgs
{
UserName = "user_name",
Password = $"account.{secret.Id}",
},
CredentialType = "Password",
},
});
});
package main
import (
"fmt"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewSecretSshkey(ctx, "keyTabFilePath", &platform.SecretSshkeyArgs{
Identifier: pulumi.String("identifier"),
Description: pulumi.String("test"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
Port: pulumi.Int(22),
Kerberos: &platform.SecretSshkeyKerberosArgs{
TgtKeyTabFilePathSpec: &platform.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs{
KeyPath: pulumi.String("key_path"),
},
Principal: pulumi.String("principal"),
Realm: pulumi.String("realm"),
TgtGenerationMethod: pulumi.String("KeyTabFilePath"),
},
})
if err != nil {
return err
}
_, err = platform.NewSecretSshkey(ctx, " tgtPassword", &platform.SecretSshkeyArgs{
Identifier: pulumi.String("identifier"),
Description: pulumi.String("test"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
Port: pulumi.Int(22),
Kerberos: &platform.SecretSshkeyKerberosArgs{
TgtPasswordSpec: &platform.SecretSshkeyKerberosTgtPasswordSpecArgs{
Password: pulumi.String(fmt.Sprintf("account.%v", secret.Id)),
},
Principal: pulumi.String("principal"),
Realm: pulumi.String("realm"),
TgtGenerationMethod: pulumi.String("Password"),
},
})
if err != nil {
return err
}
_, err = platform.NewSecretSshkey(ctx, "sshkeyReference", &platform.SecretSshkeyArgs{
Identifier: pulumi.String("identifier"),
Description: pulumi.String("test"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
Port: pulumi.Int(22),
Ssh: &platform.SecretSshkeySshArgs{
SshkeyReferenceCredential: &platform.SecretSshkeySshSshkeyReferenceCredentialArgs{
UserName: pulumi.String("user_name"),
Key: pulumi.String(fmt.Sprintf("account.%v", key.Id)),
EncryptedPassphrase: pulumi.String(fmt.Sprintf("account.%v", secret.Id)),
},
CredentialType: pulumi.String("KeyReference"),
},
})
if err != nil {
return err
}
_, err = platform.NewSecretSshkey(ctx, " sshkeyPath", &platform.SecretSshkeyArgs{
Identifier: pulumi.String("identifier"),
Description: pulumi.String("test"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
Port: pulumi.Int(22),
Ssh: &platform.SecretSshkeySshArgs{
SshkeyPathCredential: &platform.SecretSshkeySshSshkeyPathCredentialArgs{
UserName: pulumi.String("user_name"),
KeyPath: pulumi.String("key_path"),
EncryptedPassphrase: pulumi.String("encrypted_passphrase"),
},
CredentialType: pulumi.String("KeyPath"),
},
})
if err != nil {
return err
}
_, err = platform.NewSecretSshkey(ctx, "sshPassword", &platform.SecretSshkeyArgs{
Identifier: pulumi.String("identifier"),
Description: pulumi.String("test"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
Port: pulumi.Int(22),
Ssh: &platform.SecretSshkeySshArgs{
SshPasswordCredential: &platform.SecretSshkeySshSshPasswordCredentialArgs{
UserName: pulumi.String("user_name"),
Password: pulumi.String(fmt.Sprintf("account.%v", secret.Id)),
},
CredentialType: pulumi.String("Password"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.SecretSshkey;
import com.pulumi.harness.platform.SecretSshkeyArgs;
import com.pulumi.harness.platform.inputs.SecretSshkeyKerberosArgs;
import com.pulumi.harness.platform.inputs.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs;
import com.pulumi.harness.platform.inputs.SecretSshkeyKerberosTgtPasswordSpecArgs;
import com.pulumi.harness.platform.inputs.SecretSshkeySshArgs;
import com.pulumi.harness.platform.inputs.SecretSshkeySshSshkeyReferenceCredentialArgs;
import com.pulumi.harness.platform.inputs.SecretSshkeySshSshkeyPathCredentialArgs;
import com.pulumi.harness.platform.inputs.SecretSshkeySshSshPasswordCredentialArgs;
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 keyTabFilePath = new SecretSshkey("keyTabFilePath", SecretSshkeyArgs.builder()
.identifier("identifier")
.description("test")
.tags("foo:bar")
.port(22)
.kerberos(SecretSshkeyKerberosArgs.builder()
.tgtKeyTabFilePathSpec(SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs.builder()
.keyPath("key_path")
.build())
.principal("principal")
.realm("realm")
.tgtGenerationMethod("KeyTabFilePath")
.build())
.build());
var _tgtPassword = new SecretSshkey(" tgtPassword", SecretSshkeyArgs.builder()
.identifier("identifier")
.description("test")
.tags("foo:bar")
.port(22)
.kerberos(SecretSshkeyKerberosArgs.builder()
.tgtPasswordSpec(SecretSshkeyKerberosTgtPasswordSpecArgs.builder()
.password(String.format("account.%s", secret.id()))
.build())
.principal("principal")
.realm("realm")
.tgtGenerationMethod("Password")
.build())
.build());
var sshkeyReference = new SecretSshkey("sshkeyReference", SecretSshkeyArgs.builder()
.identifier("identifier")
.description("test")
.tags("foo:bar")
.port(22)
.ssh(SecretSshkeySshArgs.builder()
.sshkeyReferenceCredential(SecretSshkeySshSshkeyReferenceCredentialArgs.builder()
.userName("user_name")
.key(String.format("account.%s", key.id()))
.encryptedPassphrase(String.format("account.%s", secret.id()))
.build())
.credentialType("KeyReference")
.build())
.build());
var _sshkeyPath = new SecretSshkey(" sshkeyPath", SecretSshkeyArgs.builder()
.identifier("identifier")
.description("test")
.tags("foo:bar")
.port(22)
.ssh(SecretSshkeySshArgs.builder()
.sshkeyPathCredential(SecretSshkeySshSshkeyPathCredentialArgs.builder()
.userName("user_name")
.keyPath("key_path")
.encryptedPassphrase("encrypted_passphrase")
.build())
.credentialType("KeyPath")
.build())
.build());
var sshPassword = new SecretSshkey("sshPassword", SecretSshkeyArgs.builder()
.identifier("identifier")
.description("test")
.tags("foo:bar")
.port(22)
.ssh(SecretSshkeySshArgs.builder()
.sshPasswordCredential(SecretSshkeySshSshPasswordCredentialArgs.builder()
.userName("user_name")
.password(String.format("account.%s", secret.id()))
.build())
.credentialType("Password")
.build())
.build());
}
}
import pulumi
import lbrlabs_pulumi_harness as harness
key_tab_file_path = harness.platform.SecretSshkey("keyTabFilePath",
identifier="identifier",
description="test",
tags=["foo:bar"],
port=22,
kerberos=harness.platform.SecretSshkeyKerberosArgs(
tgt_key_tab_file_path_spec=harness.platform.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs(
key_path="key_path",
),
principal="principal",
realm="realm",
tgt_generation_method="KeyTabFilePath",
))
_tgt_password = harness.platform.SecretSshkey(" tgtPassword",
identifier="identifier",
description="test",
tags=["foo:bar"],
port=22,
kerberos=harness.platform.SecretSshkeyKerberosArgs(
tgt_password_spec=harness.platform.SecretSshkeyKerberosTgtPasswordSpecArgs(
password=f"account.{secret['id']}",
),
principal="principal",
realm="realm",
tgt_generation_method="Password",
))
sshkey_reference = harness.platform.SecretSshkey("sshkeyReference",
identifier="identifier",
description="test",
tags=["foo:bar"],
port=22,
ssh=harness.platform.SecretSshkeySshArgs(
sshkey_reference_credential=harness.platform.SecretSshkeySshSshkeyReferenceCredentialArgs(
user_name="user_name",
key=f"account.{key['id']}",
encrypted_passphrase=f"account.{secret['id']}",
),
credential_type="KeyReference",
))
_sshkey_path = harness.platform.SecretSshkey(" sshkeyPath",
identifier="identifier",
description="test",
tags=["foo:bar"],
port=22,
ssh=harness.platform.SecretSshkeySshArgs(
sshkey_path_credential=harness.platform.SecretSshkeySshSshkeyPathCredentialArgs(
user_name="user_name",
key_path="key_path",
encrypted_passphrase="encrypted_passphrase",
),
credential_type="KeyPath",
))
ssh_password = harness.platform.SecretSshkey("sshPassword",
identifier="identifier",
description="test",
tags=["foo:bar"],
port=22,
ssh=harness.platform.SecretSshkeySshArgs(
ssh_password_credential=harness.platform.SecretSshkeySshSshPasswordCredentialArgs(
user_name="user_name",
password=f"account.{secret['id']}",
),
credential_type="Password",
))
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@lbrlabs/pulumi-harness";
const keyTabFilePath = new harness.platform.SecretSshkey("keyTabFilePath", {
identifier: "identifier",
description: "test",
tags: ["foo:bar"],
port: 22,
kerberos: {
tgtKeyTabFilePathSpec: {
keyPath: "key_path",
},
principal: "principal",
realm: "realm",
tgtGenerationMethod: "KeyTabFilePath",
},
});
const _tgtPassword = new harness.platform.SecretSshkey(" tgtPassword", {
identifier: "identifier",
description: "test",
tags: ["foo:bar"],
port: 22,
kerberos: {
tgtPasswordSpec: {
password: `account.${secret.id}`,
},
principal: "principal",
realm: "realm",
tgtGenerationMethod: "Password",
},
});
const sshkeyReference = new harness.platform.SecretSshkey("sshkeyReference", {
identifier: "identifier",
description: "test",
tags: ["foo:bar"],
port: 22,
ssh: {
sshkeyReferenceCredential: {
userName: "user_name",
key: `account.${key.id}`,
encryptedPassphrase: `account.${secret.id}`,
},
credentialType: "KeyReference",
},
});
const _sshkeyPath = new harness.platform.SecretSshkey(" sshkeyPath", {
identifier: "identifier",
description: "test",
tags: ["foo:bar"],
port: 22,
ssh: {
sshkeyPathCredential: {
userName: "user_name",
keyPath: "key_path",
encryptedPassphrase: "encrypted_passphrase",
},
credentialType: "KeyPath",
},
});
const sshPassword = new harness.platform.SecretSshkey("sshPassword", {
identifier: "identifier",
description: "test",
tags: ["foo:bar"],
port: 22,
ssh: {
sshPasswordCredential: {
userName: "user_name",
password: `account.${secret.id}`,
},
credentialType: "Password",
},
});
resources:
keyTabFilePath:
type: harness:platform:SecretSshkey
properties:
identifier: identifier
description: test
tags:
- foo:bar
port: 22
kerberos:
tgtKeyTabFilePathSpec:
keyPath: key_path
principal: principal
realm: realm
tgtGenerationMethod: KeyTabFilePath
' tgtPassword':
type: harness:platform:SecretSshkey
properties:
identifier: identifier
description: test
tags:
- foo:bar
port: 22
kerberos:
tgtPasswordSpec:
password: account.${secret.id}
principal: principal
realm: realm
tgtGenerationMethod: Password
sshkeyReference:
type: harness:platform:SecretSshkey
properties:
identifier: identifier
description: test
tags:
- foo:bar
port: 22
ssh:
sshkeyReferenceCredential:
userName: user_name
key: account.${key.id}
encryptedPassphrase: account.${secret.id}
credentialType: KeyReference
' sshkeyPath':
type: harness:platform:SecretSshkey
properties:
identifier: identifier
description: test
tags:
- foo:bar
port: 22
ssh:
sshkeyPathCredential:
userName: user_name
keyPath: key_path
encryptedPassphrase: encrypted_passphrase
credentialType: KeyPath
sshPassword:
type: harness:platform:SecretSshkey
properties:
identifier: identifier
description: test
tags:
- foo:bar
port: 22
ssh:
sshPasswordCredential:
userName: user_name
password: account.${secret.id}
credentialType: Password
Create SecretSshkey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecretSshkey(name: string, args: SecretSshkeyArgs, opts?: CustomResourceOptions);
@overload
def SecretSshkey(resource_name: str,
args: SecretSshkeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecretSshkey(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
description: Optional[str] = None,
kerberos: Optional[SecretSshkeyKerberosArgs] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
port: Optional[int] = None,
project_id: Optional[str] = None,
ssh: Optional[SecretSshkeySshArgs] = None,
tags: Optional[Sequence[str]] = None)
func NewSecretSshkey(ctx *Context, name string, args SecretSshkeyArgs, opts ...ResourceOption) (*SecretSshkey, error)
public SecretSshkey(string name, SecretSshkeyArgs args, CustomResourceOptions? opts = null)
public SecretSshkey(String name, SecretSshkeyArgs args)
public SecretSshkey(String name, SecretSshkeyArgs args, CustomResourceOptions options)
type: harness:platform:SecretSshkey
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 SecretSshkeyArgs
- 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 SecretSshkeyArgs
- 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 SecretSshkeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretSshkeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretSshkeyArgs
- 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 secretSshkeyResource = new Harness.Platform.SecretSshkey("secretSshkeyResource", new()
{
Identifier = "string",
Description = "string",
Kerberos = new Harness.Platform.Inputs.SecretSshkeyKerberosArgs
{
Principal = "string",
Realm = "string",
TgtGenerationMethod = "string",
TgtKeyTabFilePathSpec = new Harness.Platform.Inputs.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs
{
KeyPath = "string",
},
TgtPasswordSpec = new Harness.Platform.Inputs.SecretSshkeyKerberosTgtPasswordSpecArgs
{
Password = "string",
},
},
Name = "string",
OrgId = "string",
Port = 0,
ProjectId = "string",
Ssh = new Harness.Platform.Inputs.SecretSshkeySshArgs
{
CredentialType = "string",
SshPasswordCredential = new Harness.Platform.Inputs.SecretSshkeySshSshPasswordCredentialArgs
{
Password = "string",
UserName = "string",
},
SshkeyPathCredential = new Harness.Platform.Inputs.SecretSshkeySshSshkeyPathCredentialArgs
{
KeyPath = "string",
UserName = "string",
EncryptedPassphrase = "string",
},
SshkeyReferenceCredential = new Harness.Platform.Inputs.SecretSshkeySshSshkeyReferenceCredentialArgs
{
Key = "string",
UserName = "string",
EncryptedPassphrase = "string",
},
},
Tags = new[]
{
"string",
},
});
example, err := platform.NewSecretSshkey(ctx, "secretSshkeyResource", &platform.SecretSshkeyArgs{
Identifier: pulumi.String("string"),
Description: pulumi.String("string"),
Kerberos: &platform.SecretSshkeyKerberosArgs{
Principal: pulumi.String("string"),
Realm: pulumi.String("string"),
TgtGenerationMethod: pulumi.String("string"),
TgtKeyTabFilePathSpec: &platform.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs{
KeyPath: pulumi.String("string"),
},
TgtPasswordSpec: &platform.SecretSshkeyKerberosTgtPasswordSpecArgs{
Password: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
Port: pulumi.Int(0),
ProjectId: pulumi.String("string"),
Ssh: &platform.SecretSshkeySshArgs{
CredentialType: pulumi.String("string"),
SshPasswordCredential: &platform.SecretSshkeySshSshPasswordCredentialArgs{
Password: pulumi.String("string"),
UserName: pulumi.String("string"),
},
SshkeyPathCredential: &platform.SecretSshkeySshSshkeyPathCredentialArgs{
KeyPath: pulumi.String("string"),
UserName: pulumi.String("string"),
EncryptedPassphrase: pulumi.String("string"),
},
SshkeyReferenceCredential: &platform.SecretSshkeySshSshkeyReferenceCredentialArgs{
Key: pulumi.String("string"),
UserName: pulumi.String("string"),
EncryptedPassphrase: pulumi.String("string"),
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var secretSshkeyResource = new SecretSshkey("secretSshkeyResource", SecretSshkeyArgs.builder()
.identifier("string")
.description("string")
.kerberos(SecretSshkeyKerberosArgs.builder()
.principal("string")
.realm("string")
.tgtGenerationMethod("string")
.tgtKeyTabFilePathSpec(SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs.builder()
.keyPath("string")
.build())
.tgtPasswordSpec(SecretSshkeyKerberosTgtPasswordSpecArgs.builder()
.password("string")
.build())
.build())
.name("string")
.orgId("string")
.port(0)
.projectId("string")
.ssh(SecretSshkeySshArgs.builder()
.credentialType("string")
.sshPasswordCredential(SecretSshkeySshSshPasswordCredentialArgs.builder()
.password("string")
.userName("string")
.build())
.sshkeyPathCredential(SecretSshkeySshSshkeyPathCredentialArgs.builder()
.keyPath("string")
.userName("string")
.encryptedPassphrase("string")
.build())
.sshkeyReferenceCredential(SecretSshkeySshSshkeyReferenceCredentialArgs.builder()
.key("string")
.userName("string")
.encryptedPassphrase("string")
.build())
.build())
.tags("string")
.build());
secret_sshkey_resource = harness.platform.SecretSshkey("secretSshkeyResource",
identifier="string",
description="string",
kerberos=harness.platform.SecretSshkeyKerberosArgs(
principal="string",
realm="string",
tgt_generation_method="string",
tgt_key_tab_file_path_spec=harness.platform.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs(
key_path="string",
),
tgt_password_spec=harness.platform.SecretSshkeyKerberosTgtPasswordSpecArgs(
password="string",
),
),
name="string",
org_id="string",
port=0,
project_id="string",
ssh=harness.platform.SecretSshkeySshArgs(
credential_type="string",
ssh_password_credential=harness.platform.SecretSshkeySshSshPasswordCredentialArgs(
password="string",
user_name="string",
),
sshkey_path_credential=harness.platform.SecretSshkeySshSshkeyPathCredentialArgs(
key_path="string",
user_name="string",
encrypted_passphrase="string",
),
sshkey_reference_credential=harness.platform.SecretSshkeySshSshkeyReferenceCredentialArgs(
key="string",
user_name="string",
encrypted_passphrase="string",
),
),
tags=["string"])
const secretSshkeyResource = new harness.platform.SecretSshkey("secretSshkeyResource", {
identifier: "string",
description: "string",
kerberos: {
principal: "string",
realm: "string",
tgtGenerationMethod: "string",
tgtKeyTabFilePathSpec: {
keyPath: "string",
},
tgtPasswordSpec: {
password: "string",
},
},
name: "string",
orgId: "string",
port: 0,
projectId: "string",
ssh: {
credentialType: "string",
sshPasswordCredential: {
password: "string",
userName: "string",
},
sshkeyPathCredential: {
keyPath: "string",
userName: "string",
encryptedPassphrase: "string",
},
sshkeyReferenceCredential: {
key: "string",
userName: "string",
encryptedPassphrase: "string",
},
},
tags: ["string"],
});
type: harness:platform:SecretSshkey
properties:
description: string
identifier: string
kerberos:
principal: string
realm: string
tgtGenerationMethod: string
tgtKeyTabFilePathSpec:
keyPath: string
tgtPasswordSpec:
password: string
name: string
orgId: string
port: 0
projectId: string
ssh:
credentialType: string
sshPasswordCredential:
password: string
userName: string
sshkeyPathCredential:
encryptedPassphrase: string
keyPath: string
userName: string
sshkeyReferenceCredential:
encryptedPassphrase: string
key: string
userName: string
tags:
- string
SecretSshkey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SecretSshkey resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Description string
- Description of the resource.
- Kerberos
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Kerberos - Kerberos authentication scheme
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Port int
- SSH port
- Project
Id string - Unique identifier of the project.
- Ssh
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Ssh - Kerberos authentication scheme
- List<string>
- Tags to associate with the resource.
- Identifier string
- Unique identifier of the resource.
- Description string
- Description of the resource.
- Kerberos
Secret
Sshkey Kerberos Args - Kerberos authentication scheme
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Port int
- SSH port
- Project
Id string - Unique identifier of the project.
- Ssh
Secret
Sshkey Ssh Args - Kerberos authentication scheme
- []string
- Tags to associate with the resource.
- identifier String
- Unique identifier of the resource.
- description String
- Description of the resource.
- kerberos
Secret
Sshkey Kerberos - Kerberos authentication scheme
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- port Integer
- SSH port
- project
Id String - Unique identifier of the project.
- ssh
Secret
Sshkey Ssh - Kerberos authentication scheme
- List<String>
- Tags to associate with the resource.
- identifier string
- Unique identifier of the resource.
- description string
- Description of the resource.
- kerberos
Secret
Sshkey Kerberos - Kerberos authentication scheme
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- port number
- SSH port
- project
Id string - Unique identifier of the project.
- ssh
Secret
Sshkey Ssh - Kerberos authentication scheme
- string[]
- Tags to associate with the resource.
- identifier str
- Unique identifier of the resource.
- description str
- Description of the resource.
- kerberos
Secret
Sshkey Kerberos Args - Kerberos authentication scheme
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- port int
- SSH port
- project_
id str - Unique identifier of the project.
- ssh
Secret
Sshkey Ssh Args - Kerberos authentication scheme
- Sequence[str]
- Tags to associate with the resource.
- identifier String
- Unique identifier of the resource.
- description String
- Description of the resource.
- kerberos Property Map
- Kerberos authentication scheme
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- port Number
- SSH port
- project
Id String - Unique identifier of the project.
- ssh Property Map
- Kerberos authentication scheme
- List<String>
- Tags to associate with the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecretSshkey resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SecretSshkey Resource
Get an existing SecretSshkey 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?: SecretSshkeyState, opts?: CustomResourceOptions): SecretSshkey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
kerberos: Optional[SecretSshkeyKerberosArgs] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
port: Optional[int] = None,
project_id: Optional[str] = None,
ssh: Optional[SecretSshkeySshArgs] = None,
tags: Optional[Sequence[str]] = None) -> SecretSshkey
func GetSecretSshkey(ctx *Context, name string, id IDInput, state *SecretSshkeyState, opts ...ResourceOption) (*SecretSshkey, error)
public static SecretSshkey Get(string name, Input<string> id, SecretSshkeyState? state, CustomResourceOptions? opts = null)
public static SecretSshkey get(String name, Output<String> id, SecretSshkeyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Kerberos
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Kerberos - Kerberos authentication scheme
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Port int
- SSH port
- Project
Id string - Unique identifier of the project.
- Ssh
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Ssh - Kerberos authentication scheme
- List<string>
- Tags to associate with the resource.
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Kerberos
Secret
Sshkey Kerberos Args - Kerberos authentication scheme
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Port int
- SSH port
- Project
Id string - Unique identifier of the project.
- Ssh
Secret
Sshkey Ssh Args - Kerberos authentication scheme
- []string
- Tags to associate with the resource.
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- kerberos
Secret
Sshkey Kerberos - Kerberos authentication scheme
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- port Integer
- SSH port
- project
Id String - Unique identifier of the project.
- ssh
Secret
Sshkey Ssh - Kerberos authentication scheme
- List<String>
- Tags to associate with the resource.
- description string
- Description of the resource.
- identifier string
- Unique identifier of the resource.
- kerberos
Secret
Sshkey Kerberos - Kerberos authentication scheme
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- port number
- SSH port
- project
Id string - Unique identifier of the project.
- ssh
Secret
Sshkey Ssh - Kerberos authentication scheme
- string[]
- Tags to associate with the resource.
- description str
- Description of the resource.
- identifier str
- Unique identifier of the resource.
- kerberos
Secret
Sshkey Kerberos Args - Kerberos authentication scheme
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- port int
- SSH port
- project_
id str - Unique identifier of the project.
- ssh
Secret
Sshkey Ssh Args - Kerberos authentication scheme
- Sequence[str]
- Tags to associate with the resource.
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- kerberos Property Map
- Kerberos authentication scheme
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- port Number
- SSH port
- project
Id String - Unique identifier of the project.
- ssh Property Map
- Kerberos authentication scheme
- List<String>
- Tags to associate with the resource.
Supporting Types
SecretSshkeyKerberos, SecretSshkeyKerberosArgs
- Principal string
- Username to use for authentication.
- Realm string
- Reference to a secret containing the password to use for authentication.
- Tgt
Generation stringMethod - Method to generate tgt
- Tgt
Key Lbrlabs.Tab File Path Spec Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Kerberos Tgt Key Tab File Path Spec - Authenticate to App Dynamics using username and password.
- Tgt
Password Lbrlabs.Spec Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Kerberos Tgt Password Spec - Authenticate to App Dynamics using username and password.
- Principal string
- Username to use for authentication.
- Realm string
- Reference to a secret containing the password to use for authentication.
- Tgt
Generation stringMethod - Method to generate tgt
- Tgt
Key SecretTab File Path Spec Sshkey Kerberos Tgt Key Tab File Path Spec - Authenticate to App Dynamics using username and password.
- Tgt
Password SecretSpec Sshkey Kerberos Tgt Password Spec - Authenticate to App Dynamics using username and password.
- principal String
- Username to use for authentication.
- realm String
- Reference to a secret containing the password to use for authentication.
- tgt
Generation StringMethod - Method to generate tgt
- tgt
Key SecretTab File Path Spec Sshkey Kerberos Tgt Key Tab File Path Spec - Authenticate to App Dynamics using username and password.
- tgt
Password SecretSpec Sshkey Kerberos Tgt Password Spec - Authenticate to App Dynamics using username and password.
- principal string
- Username to use for authentication.
- realm string
- Reference to a secret containing the password to use for authentication.
- tgt
Generation stringMethod - Method to generate tgt
- tgt
Key SecretTab File Path Spec Sshkey Kerberos Tgt Key Tab File Path Spec - Authenticate to App Dynamics using username and password.
- tgt
Password SecretSpec Sshkey Kerberos Tgt Password Spec - Authenticate to App Dynamics using username and password.
- principal str
- Username to use for authentication.
- realm str
- Reference to a secret containing the password to use for authentication.
- tgt_
generation_ strmethod - Method to generate tgt
- tgt_
key_ Secrettab_ file_ path_ spec Sshkey Kerberos Tgt Key Tab File Path Spec - Authenticate to App Dynamics using username and password.
- tgt_
password_ Secretspec Sshkey Kerberos Tgt Password Spec - Authenticate to App Dynamics using username and password.
- principal String
- Username to use for authentication.
- realm String
- Reference to a secret containing the password to use for authentication.
- tgt
Generation StringMethod - Method to generate tgt
- tgt
Key Property MapTab File Path Spec - Authenticate to App Dynamics using username and password.
- tgt
Password Property MapSpec - Authenticate to App Dynamics using username and password.
SecretSshkeyKerberosTgtKeyTabFilePathSpec, SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs
- Key
Path string
- Key
Path string
- key
Path String
- key
Path string
- key_
path str
- key
Path String
SecretSshkeyKerberosTgtPasswordSpec, SecretSshkeyKerberosTgtPasswordSpecArgs
- Password string
- Password string
- password String
- password string
- password str
- password String
SecretSshkeySsh, SecretSshkeySshArgs
- Credential
Type string - This specifies SSH credential type as Password, KeyPath or KeyReference
- Ssh
Password Lbrlabs.Credential Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Ssh Ssh Password Credential - SSH credential of type keyReference
- Sshkey
Path Lbrlabs.Credential Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Ssh Sshkey Path Credential - SSH credential of type keyPath
- Sshkey
Reference Lbrlabs.Credential Pulumi Package. Harness. Platform. Inputs. Secret Sshkey Ssh Sshkey Reference Credential - SSH credential of type keyReference
- Credential
Type string - This specifies SSH credential type as Password, KeyPath or KeyReference
- Ssh
Password SecretCredential Sshkey Ssh Ssh Password Credential - SSH credential of type keyReference
- Sshkey
Path SecretCredential Sshkey Ssh Sshkey Path Credential - SSH credential of type keyPath
- Sshkey
Reference SecretCredential Sshkey Ssh Sshkey Reference Credential - SSH credential of type keyReference
- credential
Type String - This specifies SSH credential type as Password, KeyPath or KeyReference
- ssh
Password SecretCredential Sshkey Ssh Ssh Password Credential - SSH credential of type keyReference
- sshkey
Path SecretCredential Sshkey Ssh Sshkey Path Credential - SSH credential of type keyPath
- sshkey
Reference SecretCredential Sshkey Ssh Sshkey Reference Credential - SSH credential of type keyReference
- credential
Type string - This specifies SSH credential type as Password, KeyPath or KeyReference
- ssh
Password SecretCredential Sshkey Ssh Ssh Password Credential - SSH credential of type keyReference
- sshkey
Path SecretCredential Sshkey Ssh Sshkey Path Credential - SSH credential of type keyPath
- sshkey
Reference SecretCredential Sshkey Ssh Sshkey Reference Credential - SSH credential of type keyReference
- credential_
type str - This specifies SSH credential type as Password, KeyPath or KeyReference
- ssh_
password_ Secretcredential Sshkey Ssh Ssh Password Credential - SSH credential of type keyReference
- sshkey_
path_ Secretcredential Sshkey Ssh Sshkey Path Credential - SSH credential of type keyPath
- sshkey_
reference_ Secretcredential Sshkey Ssh Sshkey Reference Credential - SSH credential of type keyReference
- credential
Type String - This specifies SSH credential type as Password, KeyPath or KeyReference
- ssh
Password Property MapCredential - SSH credential of type keyReference
- sshkey
Path Property MapCredential - SSH credential of type keyPath
- sshkey
Reference Property MapCredential - SSH credential of type keyReference
SecretSshkeySshSshPasswordCredential, SecretSshkeySshSshPasswordCredentialArgs
SecretSshkeySshSshkeyPathCredential, SecretSshkeySshSshkeyPathCredentialArgs
- Key
Path string - User
Name string - Encrypted
Passphrase string
- Key
Path string - User
Name string - Encrypted
Passphrase string
- key
Path String - user
Name String - encrypted
Passphrase String
- key
Path string - user
Name string - encrypted
Passphrase string
- key_
path str - user_
name str - encrypted_
passphrase str
- key
Path String - user
Name String - encrypted
Passphrase String
SecretSshkeySshSshkeyReferenceCredential, SecretSshkeySshSshkeyReferenceCredentialArgs
- Key string
- User
Name string - Encrypted
Passphrase string
- Key string
- User
Name string - Encrypted
Passphrase string
- key String
- user
Name String - encrypted
Passphrase String
- key string
- user
Name string - encrypted
Passphrase string
- key str
- user_
name str - encrypted_
passphrase str
- key String
- user
Name String - encrypted
Passphrase String
Import
Import account level secret sshkey
$ pulumi import harness:platform/secretSshkey:SecretSshkey example <secret_sshkey_id>
Import org level secret sshkey
$ pulumi import harness:platform/secretSshkey:SecretSshkey example <ord_id>/<secret_sshkey_id>
Import project level secret sshkey
$ pulumi import harness:platform/secretSshkey:SecretSshkey example <org_id>/<project_id>/<secret_sshkey_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.