1. Packages
  2. AWS
  3. API Docs
  4. kms
  5. CustomKeyStore
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.kms.CustomKeyStore

Explore with Pulumi AI

Resource for managing an AWS KMS (Key Management) Custom Key Store.

Example Usage

CloudHSM

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";

const test = new aws.kms.CustomKeyStore("test", {
    cloudHsmClusterId: cloudHsmClusterId,
    customKeyStoreName: "kms-custom-key-store-test",
    keyStorePassword: "noplaintextpasswords1",
    trustAnchorCertificate: std.file({
        input: "anchor-certificate.crt",
    }).then(invoke => invoke.result),
});
Copy
import pulumi
import pulumi_aws as aws
import pulumi_std as std

test = aws.kms.CustomKeyStore("test",
    cloud_hsm_cluster_id=cloud_hsm_cluster_id,
    custom_key_store_name="kms-custom-key-store-test",
    key_store_password="noplaintextpasswords1",
    trust_anchor_certificate=std.file(input="anchor-certificate.crt").result)
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		invokeFile, err := std.File(ctx, &std.FileArgs{
			Input: "anchor-certificate.crt",
		}, nil)
		if err != nil {
			return err
		}
		_, err = kms.NewCustomKeyStore(ctx, "test", &kms.CustomKeyStoreArgs{
			CloudHsmClusterId:      pulumi.Any(cloudHsmClusterId),
			CustomKeyStoreName:     pulumi.String("kms-custom-key-store-test"),
			KeyStorePassword:       pulumi.String("noplaintextpasswords1"),
			TrustAnchorCertificate: pulumi.String(invokeFile.Result),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Std = Pulumi.Std;

return await Deployment.RunAsync(() => 
{
    var test = new Aws.Kms.CustomKeyStore("test", new()
    {
        CloudHsmClusterId = cloudHsmClusterId,
        CustomKeyStoreName = "kms-custom-key-store-test",
        KeyStorePassword = "noplaintextpasswords1",
        TrustAnchorCertificate = Std.File.Invoke(new()
        {
            Input = "anchor-certificate.crt",
        }).Apply(invoke => invoke.Result),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.CustomKeyStore;
import com.pulumi.aws.kms.CustomKeyStoreArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.FileArgs;
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 test = new CustomKeyStore("test", CustomKeyStoreArgs.builder()
            .cloudHsmClusterId(cloudHsmClusterId)
            .customKeyStoreName("kms-custom-key-store-test")
            .keyStorePassword("noplaintextpasswords1")
            .trustAnchorCertificate(StdFunctions.file(FileArgs.builder()
                .input("anchor-certificate.crt")
                .build()).result())
            .build());

    }
}
Copy
resources:
  test:
    type: aws:kms:CustomKeyStore
    properties:
      cloudHsmClusterId: ${cloudHsmClusterId}
      customKeyStoreName: kms-custom-key-store-test
      keyStorePassword: noplaintextpasswords1
      trustAnchorCertificate:
        fn::invoke:
          function: std:file
          arguments:
            input: anchor-certificate.crt
          return: result
Copy

External Key Store (VPC)

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

const example = new aws.kms.CustomKeyStore("example", {
    customKeyStoreName: "example-vpc-xks",
    customKeyStoreType: "EXTERNAL_KEY_STORE",
    xksProxyAuthenticationCredential: {
        accessKeyId: ephemeralAccessKeyId,
        rawSecretAccessKey: ephemeralSecretAccessKey,
    },
    xksProxyConnectivity: "VPC_ENDPOINT_SERVICE",
    xksProxyUriEndpoint: "https://myproxy-private.xks.example.com",
    xksProxyUriPath: "/kms/xks/v1",
    xksProxyVpcEndpointServiceName: "com.amazonaws.vpce.us-east-1.vpce-svc-example",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.kms.CustomKeyStore("example",
    custom_key_store_name="example-vpc-xks",
    custom_key_store_type="EXTERNAL_KEY_STORE",
    xks_proxy_authentication_credential={
        "access_key_id": ephemeral_access_key_id,
        "raw_secret_access_key": ephemeral_secret_access_key,
    },
    xks_proxy_connectivity="VPC_ENDPOINT_SERVICE",
    xks_proxy_uri_endpoint="https://myproxy-private.xks.example.com",
    xks_proxy_uri_path="/kms/xks/v1",
    xks_proxy_vpc_endpoint_service_name="com.amazonaws.vpce.us-east-1.vpce-svc-example")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kms.NewCustomKeyStore(ctx, "example", &kms.CustomKeyStoreArgs{
			CustomKeyStoreName: pulumi.String("example-vpc-xks"),
			CustomKeyStoreType: pulumi.String("EXTERNAL_KEY_STORE"),
			XksProxyAuthenticationCredential: &kms.CustomKeyStoreXksProxyAuthenticationCredentialArgs{
				AccessKeyId:        pulumi.Any(ephemeralAccessKeyId),
				RawSecretAccessKey: pulumi.Any(ephemeralSecretAccessKey),
			},
			XksProxyConnectivity:           pulumi.String("VPC_ENDPOINT_SERVICE"),
			XksProxyUriEndpoint:            pulumi.String("https://myproxy-private.xks.example.com"),
			XksProxyUriPath:                pulumi.String("/kms/xks/v1"),
			XksProxyVpcEndpointServiceName: pulumi.String("com.amazonaws.vpce.us-east-1.vpce-svc-example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kms.CustomKeyStore("example", new()
    {
        CustomKeyStoreName = "example-vpc-xks",
        CustomKeyStoreType = "EXTERNAL_KEY_STORE",
        XksProxyAuthenticationCredential = new Aws.Kms.Inputs.CustomKeyStoreXksProxyAuthenticationCredentialArgs
        {
            AccessKeyId = ephemeralAccessKeyId,
            RawSecretAccessKey = ephemeralSecretAccessKey,
        },
        XksProxyConnectivity = "VPC_ENDPOINT_SERVICE",
        XksProxyUriEndpoint = "https://myproxy-private.xks.example.com",
        XksProxyUriPath = "/kms/xks/v1",
        XksProxyVpcEndpointServiceName = "com.amazonaws.vpce.us-east-1.vpce-svc-example",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.CustomKeyStore;
import com.pulumi.aws.kms.CustomKeyStoreArgs;
import com.pulumi.aws.kms.inputs.CustomKeyStoreXksProxyAuthenticationCredentialArgs;
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 example = new CustomKeyStore("example", CustomKeyStoreArgs.builder()
            .customKeyStoreName("example-vpc-xks")
            .customKeyStoreType("EXTERNAL_KEY_STORE")
            .xksProxyAuthenticationCredential(CustomKeyStoreXksProxyAuthenticationCredentialArgs.builder()
                .accessKeyId(ephemeralAccessKeyId)
                .rawSecretAccessKey(ephemeralSecretAccessKey)
                .build())
            .xksProxyConnectivity("VPC_ENDPOINT_SERVICE")
            .xksProxyUriEndpoint("https://myproxy-private.xks.example.com")
            .xksProxyUriPath("/kms/xks/v1")
            .xksProxyVpcEndpointServiceName("com.amazonaws.vpce.us-east-1.vpce-svc-example")
            .build());

    }
}
Copy
resources:
  example:
    type: aws:kms:CustomKeyStore
    properties:
      customKeyStoreName: example-vpc-xks
      customKeyStoreType: EXTERNAL_KEY_STORE
      xksProxyAuthenticationCredential:
        accessKeyId: ${ephemeralAccessKeyId}
        rawSecretAccessKey: ${ephemeralSecretAccessKey}
      xksProxyConnectivity: VPC_ENDPOINT_SERVICE
      xksProxyUriEndpoint: https://myproxy-private.xks.example.com
      xksProxyUriPath: /kms/xks/v1
      xksProxyVpcEndpointServiceName: com.amazonaws.vpce.us-east-1.vpce-svc-example
Copy

External Key Store (Public)

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

const example = new aws.kms.CustomKeyStore("example", {
    customKeyStoreName: "example-public-xks",
    customKeyStoreType: "EXTERNAL_KEY_STORE",
    xksProxyAuthenticationCredential: {
        accessKeyId: ephemeralAccessKeyId,
        rawSecretAccessKey: ephemeralSecretAccessKey,
    },
    xksProxyConnectivity: "PUBLIC_ENDPOINT",
    xksProxyUriEndpoint: "https://myproxy.xks.example.com",
    xksProxyUriPath: "/kms/xks/v1",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.kms.CustomKeyStore("example",
    custom_key_store_name="example-public-xks",
    custom_key_store_type="EXTERNAL_KEY_STORE",
    xks_proxy_authentication_credential={
        "access_key_id": ephemeral_access_key_id,
        "raw_secret_access_key": ephemeral_secret_access_key,
    },
    xks_proxy_connectivity="PUBLIC_ENDPOINT",
    xks_proxy_uri_endpoint="https://myproxy.xks.example.com",
    xks_proxy_uri_path="/kms/xks/v1")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kms.NewCustomKeyStore(ctx, "example", &kms.CustomKeyStoreArgs{
			CustomKeyStoreName: pulumi.String("example-public-xks"),
			CustomKeyStoreType: pulumi.String("EXTERNAL_KEY_STORE"),
			XksProxyAuthenticationCredential: &kms.CustomKeyStoreXksProxyAuthenticationCredentialArgs{
				AccessKeyId:        pulumi.Any(ephemeralAccessKeyId),
				RawSecretAccessKey: pulumi.Any(ephemeralSecretAccessKey),
			},
			XksProxyConnectivity: pulumi.String("PUBLIC_ENDPOINT"),
			XksProxyUriEndpoint:  pulumi.String("https://myproxy.xks.example.com"),
			XksProxyUriPath:      pulumi.String("/kms/xks/v1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kms.CustomKeyStore("example", new()
    {
        CustomKeyStoreName = "example-public-xks",
        CustomKeyStoreType = "EXTERNAL_KEY_STORE",
        XksProxyAuthenticationCredential = new Aws.Kms.Inputs.CustomKeyStoreXksProxyAuthenticationCredentialArgs
        {
            AccessKeyId = ephemeralAccessKeyId,
            RawSecretAccessKey = ephemeralSecretAccessKey,
        },
        XksProxyConnectivity = "PUBLIC_ENDPOINT",
        XksProxyUriEndpoint = "https://myproxy.xks.example.com",
        XksProxyUriPath = "/kms/xks/v1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.CustomKeyStore;
import com.pulumi.aws.kms.CustomKeyStoreArgs;
import com.pulumi.aws.kms.inputs.CustomKeyStoreXksProxyAuthenticationCredentialArgs;
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 example = new CustomKeyStore("example", CustomKeyStoreArgs.builder()
            .customKeyStoreName("example-public-xks")
            .customKeyStoreType("EXTERNAL_KEY_STORE")
            .xksProxyAuthenticationCredential(CustomKeyStoreXksProxyAuthenticationCredentialArgs.builder()
                .accessKeyId(ephemeralAccessKeyId)
                .rawSecretAccessKey(ephemeralSecretAccessKey)
                .build())
            .xksProxyConnectivity("PUBLIC_ENDPOINT")
            .xksProxyUriEndpoint("https://myproxy.xks.example.com")
            .xksProxyUriPath("/kms/xks/v1")
            .build());

    }
}
Copy
resources:
  example:
    type: aws:kms:CustomKeyStore
    properties:
      customKeyStoreName: example-public-xks
      customKeyStoreType: EXTERNAL_KEY_STORE
      xksProxyAuthenticationCredential:
        accessKeyId: ${ephemeralAccessKeyId}
        rawSecretAccessKey: ${ephemeralSecretAccessKey}
      xksProxyConnectivity: PUBLIC_ENDPOINT
      xksProxyUriEndpoint: https://myproxy.xks.example.com
      xksProxyUriPath: /kms/xks/v1
Copy

Create CustomKeyStore Resource

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

Constructor syntax

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

@overload
def CustomKeyStore(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   custom_key_store_name: Optional[str] = None,
                   cloud_hsm_cluster_id: Optional[str] = None,
                   custom_key_store_type: Optional[str] = None,
                   key_store_password: Optional[str] = None,
                   trust_anchor_certificate: Optional[str] = None,
                   xks_proxy_authentication_credential: Optional[CustomKeyStoreXksProxyAuthenticationCredentialArgs] = None,
                   xks_proxy_connectivity: Optional[str] = None,
                   xks_proxy_uri_endpoint: Optional[str] = None,
                   xks_proxy_uri_path: Optional[str] = None,
                   xks_proxy_vpc_endpoint_service_name: Optional[str] = None)
func NewCustomKeyStore(ctx *Context, name string, args CustomKeyStoreArgs, opts ...ResourceOption) (*CustomKeyStore, error)
public CustomKeyStore(string name, CustomKeyStoreArgs args, CustomResourceOptions? opts = null)
public CustomKeyStore(String name, CustomKeyStoreArgs args)
public CustomKeyStore(String name, CustomKeyStoreArgs args, CustomResourceOptions options)
type: aws:kms:CustomKeyStore
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. CustomKeyStoreArgs
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. CustomKeyStoreArgs
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. CustomKeyStoreArgs
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. CustomKeyStoreArgs
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. CustomKeyStoreArgs
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 customKeyStoreResource = new Aws.Kms.CustomKeyStore("customKeyStoreResource", new()
{
    CustomKeyStoreName = "string",
    CloudHsmClusterId = "string",
    CustomKeyStoreType = "string",
    KeyStorePassword = "string",
    TrustAnchorCertificate = "string",
    XksProxyAuthenticationCredential = new Aws.Kms.Inputs.CustomKeyStoreXksProxyAuthenticationCredentialArgs
    {
        AccessKeyId = "string",
        RawSecretAccessKey = "string",
    },
    XksProxyConnectivity = "string",
    XksProxyUriEndpoint = "string",
    XksProxyUriPath = "string",
    XksProxyVpcEndpointServiceName = "string",
});
Copy
example, err := kms.NewCustomKeyStore(ctx, "customKeyStoreResource", &kms.CustomKeyStoreArgs{
	CustomKeyStoreName:     pulumi.String("string"),
	CloudHsmClusterId:      pulumi.String("string"),
	CustomKeyStoreType:     pulumi.String("string"),
	KeyStorePassword:       pulumi.String("string"),
	TrustAnchorCertificate: pulumi.String("string"),
	XksProxyAuthenticationCredential: &kms.CustomKeyStoreXksProxyAuthenticationCredentialArgs{
		AccessKeyId:        pulumi.String("string"),
		RawSecretAccessKey: pulumi.String("string"),
	},
	XksProxyConnectivity:           pulumi.String("string"),
	XksProxyUriEndpoint:            pulumi.String("string"),
	XksProxyUriPath:                pulumi.String("string"),
	XksProxyVpcEndpointServiceName: pulumi.String("string"),
})
Copy
var customKeyStoreResource = new CustomKeyStore("customKeyStoreResource", CustomKeyStoreArgs.builder()
    .customKeyStoreName("string")
    .cloudHsmClusterId("string")
    .customKeyStoreType("string")
    .keyStorePassword("string")
    .trustAnchorCertificate("string")
    .xksProxyAuthenticationCredential(CustomKeyStoreXksProxyAuthenticationCredentialArgs.builder()
        .accessKeyId("string")
        .rawSecretAccessKey("string")
        .build())
    .xksProxyConnectivity("string")
    .xksProxyUriEndpoint("string")
    .xksProxyUriPath("string")
    .xksProxyVpcEndpointServiceName("string")
    .build());
Copy
custom_key_store_resource = aws.kms.CustomKeyStore("customKeyStoreResource",
    custom_key_store_name="string",
    cloud_hsm_cluster_id="string",
    custom_key_store_type="string",
    key_store_password="string",
    trust_anchor_certificate="string",
    xks_proxy_authentication_credential={
        "access_key_id": "string",
        "raw_secret_access_key": "string",
    },
    xks_proxy_connectivity="string",
    xks_proxy_uri_endpoint="string",
    xks_proxy_uri_path="string",
    xks_proxy_vpc_endpoint_service_name="string")
Copy
const customKeyStoreResource = new aws.kms.CustomKeyStore("customKeyStoreResource", {
    customKeyStoreName: "string",
    cloudHsmClusterId: "string",
    customKeyStoreType: "string",
    keyStorePassword: "string",
    trustAnchorCertificate: "string",
    xksProxyAuthenticationCredential: {
        accessKeyId: "string",
        rawSecretAccessKey: "string",
    },
    xksProxyConnectivity: "string",
    xksProxyUriEndpoint: "string",
    xksProxyUriPath: "string",
    xksProxyVpcEndpointServiceName: "string",
});
Copy
type: aws:kms:CustomKeyStore
properties:
    cloudHsmClusterId: string
    customKeyStoreName: string
    customKeyStoreType: string
    keyStorePassword: string
    trustAnchorCertificate: string
    xksProxyAuthenticationCredential:
        accessKeyId: string
        rawSecretAccessKey: string
    xksProxyConnectivity: string
    xksProxyUriEndpoint: string
    xksProxyUriPath: string
    xksProxyVpcEndpointServiceName: string
Copy

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

CustomKeyStoreName This property is required. string

Unique name for Custom Key Store.

The following arguments are optional:

CloudHsmClusterId Changes to this property will trigger replacement. string
CustomKeyStoreType Changes to this property will trigger replacement. string
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
KeyStorePassword string
TrustAnchorCertificate Changes to this property will trigger replacement. string
XksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredential
XksProxyConnectivity string
XksProxyUriEndpoint string
XksProxyUriPath string
XksProxyVpcEndpointServiceName string
CustomKeyStoreName This property is required. string

Unique name for Custom Key Store.

The following arguments are optional:

CloudHsmClusterId Changes to this property will trigger replacement. string
CustomKeyStoreType Changes to this property will trigger replacement. string
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
KeyStorePassword string
TrustAnchorCertificate Changes to this property will trigger replacement. string
XksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredentialArgs
XksProxyConnectivity string
XksProxyUriEndpoint string
XksProxyUriPath string
XksProxyVpcEndpointServiceName string
customKeyStoreName This property is required. String

Unique name for Custom Key Store.

The following arguments are optional:

cloudHsmClusterId Changes to this property will trigger replacement. String
customKeyStoreType Changes to this property will trigger replacement. String
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
keyStorePassword String
trustAnchorCertificate Changes to this property will trigger replacement. String
xksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredential
xksProxyConnectivity String
xksProxyUriEndpoint String
xksProxyUriPath String
xksProxyVpcEndpointServiceName String
customKeyStoreName This property is required. string

Unique name for Custom Key Store.

The following arguments are optional:

cloudHsmClusterId Changes to this property will trigger replacement. string
customKeyStoreType Changes to this property will trigger replacement. string
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
keyStorePassword string
trustAnchorCertificate Changes to this property will trigger replacement. string
xksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredential
xksProxyConnectivity string
xksProxyUriEndpoint string
xksProxyUriPath string
xksProxyVpcEndpointServiceName string
custom_key_store_name This property is required. str

Unique name for Custom Key Store.

The following arguments are optional:

cloud_hsm_cluster_id Changes to this property will trigger replacement. str
custom_key_store_type Changes to this property will trigger replacement. str
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
key_store_password str
trust_anchor_certificate Changes to this property will trigger replacement. str
xks_proxy_authentication_credential CustomKeyStoreXksProxyAuthenticationCredentialArgs
xks_proxy_connectivity str
xks_proxy_uri_endpoint str
xks_proxy_uri_path str
xks_proxy_vpc_endpoint_service_name str
customKeyStoreName This property is required. String

Unique name for Custom Key Store.

The following arguments are optional:

cloudHsmClusterId Changes to this property will trigger replacement. String
customKeyStoreType Changes to this property will trigger replacement. String
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
keyStorePassword String
trustAnchorCertificate Changes to this property will trigger replacement. String
xksProxyAuthenticationCredential Property Map
xksProxyConnectivity String
xksProxyUriEndpoint String
xksProxyUriPath String
xksProxyVpcEndpointServiceName String

Outputs

All input properties are implicitly available as output properties. Additionally, the CustomKeyStore 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 CustomKeyStore Resource

Get an existing CustomKeyStore 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?: CustomKeyStoreState, opts?: CustomResourceOptions): CustomKeyStore
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_hsm_cluster_id: Optional[str] = None,
        custom_key_store_name: Optional[str] = None,
        custom_key_store_type: Optional[str] = None,
        key_store_password: Optional[str] = None,
        trust_anchor_certificate: Optional[str] = None,
        xks_proxy_authentication_credential: Optional[CustomKeyStoreXksProxyAuthenticationCredentialArgs] = None,
        xks_proxy_connectivity: Optional[str] = None,
        xks_proxy_uri_endpoint: Optional[str] = None,
        xks_proxy_uri_path: Optional[str] = None,
        xks_proxy_vpc_endpoint_service_name: Optional[str] = None) -> CustomKeyStore
func GetCustomKeyStore(ctx *Context, name string, id IDInput, state *CustomKeyStoreState, opts ...ResourceOption) (*CustomKeyStore, error)
public static CustomKeyStore Get(string name, Input<string> id, CustomKeyStoreState? state, CustomResourceOptions? opts = null)
public static CustomKeyStore get(String name, Output<String> id, CustomKeyStoreState state, CustomResourceOptions options)
resources:  _:    type: aws:kms:CustomKeyStore    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:
CloudHsmClusterId Changes to this property will trigger replacement. string
CustomKeyStoreName string

Unique name for Custom Key Store.

The following arguments are optional:

CustomKeyStoreType Changes to this property will trigger replacement. string
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
KeyStorePassword string
TrustAnchorCertificate Changes to this property will trigger replacement. string
XksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredential
XksProxyConnectivity string
XksProxyUriEndpoint string
XksProxyUriPath string
XksProxyVpcEndpointServiceName string
CloudHsmClusterId Changes to this property will trigger replacement. string
CustomKeyStoreName string

Unique name for Custom Key Store.

The following arguments are optional:

CustomKeyStoreType Changes to this property will trigger replacement. string
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
KeyStorePassword string
TrustAnchorCertificate Changes to this property will trigger replacement. string
XksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredentialArgs
XksProxyConnectivity string
XksProxyUriEndpoint string
XksProxyUriPath string
XksProxyVpcEndpointServiceName string
cloudHsmClusterId Changes to this property will trigger replacement. String
customKeyStoreName String

Unique name for Custom Key Store.

The following arguments are optional:

customKeyStoreType Changes to this property will trigger replacement. String
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
keyStorePassword String
trustAnchorCertificate Changes to this property will trigger replacement. String
xksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredential
xksProxyConnectivity String
xksProxyUriEndpoint String
xksProxyUriPath String
xksProxyVpcEndpointServiceName String
cloudHsmClusterId Changes to this property will trigger replacement. string
customKeyStoreName string

Unique name for Custom Key Store.

The following arguments are optional:

customKeyStoreType Changes to this property will trigger replacement. string
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
keyStorePassword string
trustAnchorCertificate Changes to this property will trigger replacement. string
xksProxyAuthenticationCredential CustomKeyStoreXksProxyAuthenticationCredential
xksProxyConnectivity string
xksProxyUriEndpoint string
xksProxyUriPath string
xksProxyVpcEndpointServiceName string
cloud_hsm_cluster_id Changes to this property will trigger replacement. str
custom_key_store_name str

Unique name for Custom Key Store.

The following arguments are optional:

custom_key_store_type Changes to this property will trigger replacement. str
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
key_store_password str
trust_anchor_certificate Changes to this property will trigger replacement. str
xks_proxy_authentication_credential CustomKeyStoreXksProxyAuthenticationCredentialArgs
xks_proxy_connectivity str
xks_proxy_uri_endpoint str
xks_proxy_uri_path str
xks_proxy_vpc_endpoint_service_name str
cloudHsmClusterId Changes to this property will trigger replacement. String
customKeyStoreName String

Unique name for Custom Key Store.

The following arguments are optional:

customKeyStoreType Changes to this property will trigger replacement. String
Specifies the type of key store to create. Valid values are AWS_CLOUDHSM and EXTERNAL_KEY_STORE. If omitted, AWS will default the value to AWS_CLOUDHSM.
keyStorePassword String
trustAnchorCertificate Changes to this property will trigger replacement. String
xksProxyAuthenticationCredential Property Map
xksProxyConnectivity String
xksProxyUriEndpoint String
xksProxyUriPath String
xksProxyVpcEndpointServiceName String

Supporting Types

CustomKeyStoreXksProxyAuthenticationCredential
, CustomKeyStoreXksProxyAuthenticationCredentialArgs

AccessKeyId This property is required. string
A unique identifier for the raw secret access key.
RawSecretAccessKey This property is required. string
A secret string of 43-64 characters.
AccessKeyId This property is required. string
A unique identifier for the raw secret access key.
RawSecretAccessKey This property is required. string
A secret string of 43-64 characters.
accessKeyId This property is required. String
A unique identifier for the raw secret access key.
rawSecretAccessKey This property is required. String
A secret string of 43-64 characters.
accessKeyId This property is required. string
A unique identifier for the raw secret access key.
rawSecretAccessKey This property is required. string
A secret string of 43-64 characters.
access_key_id This property is required. str
A unique identifier for the raw secret access key.
raw_secret_access_key This property is required. str
A secret string of 43-64 characters.
accessKeyId This property is required. String
A unique identifier for the raw secret access key.
rawSecretAccessKey This property is required. String
A secret string of 43-64 characters.

Import

Using pulumi import, import KMS (Key Management) Custom Key Store using the id. For example:

$ pulumi import aws:kms/customKeyStore:CustomKeyStore example cks-5ebd4ef395a96288e
Copy

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

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.