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),
});
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)
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
	})
}
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),
    });
});
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 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());
    }
}
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
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",
});
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")
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
	})
}
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",
    });
});
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());
    }
}
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
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",
});
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")
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
	})
}
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",
    });
});
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());
    }
}
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
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 string
- The unique name of the resource.
- args CustomKeyStoreArgs
- 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 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 string
- The unique name of the resource.
- args CustomKeyStoreArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomKeyStoreArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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:
- CustomKey stringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- CloudHsm stringCluster Id 
- CustomKey stringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- KeyStore stringPassword 
- TrustAnchor stringCertificate 
- XksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential 
- XksProxy stringConnectivity 
- XksProxy stringUri Endpoint 
- XksProxy stringUri Path 
- XksProxy stringVpc Endpoint Service Name 
- CustomKey stringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- CloudHsm stringCluster Id 
- CustomKey stringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- KeyStore stringPassword 
- TrustAnchor stringCertificate 
- XksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential Args 
- XksProxy stringConnectivity 
- XksProxy stringUri Endpoint 
- XksProxy stringUri Path 
- XksProxy stringVpc Endpoint Service Name 
- customKey StringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- cloudHsm StringCluster Id 
- customKey StringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- keyStore StringPassword 
- trustAnchor StringCertificate 
- xksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential 
- xksProxy StringConnectivity 
- xksProxy StringUri Endpoint 
- xksProxy StringUri Path 
- xksProxy StringVpc Endpoint Service Name 
- customKey stringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- cloudHsm stringCluster Id 
- customKey stringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- keyStore stringPassword 
- trustAnchor stringCertificate 
- xksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential 
- xksProxy stringConnectivity 
- xksProxy stringUri Endpoint 
- xksProxy stringUri Path 
- xksProxy stringVpc Endpoint Service Name 
- custom_key_ strstore_ name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- cloud_hsm_ strcluster_ id 
- custom_key_ strstore_ type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- key_store_ strpassword 
- trust_anchor_ strcertificate 
- xks_proxy_ Customauthentication_ credential Key Store Xks Proxy Authentication Credential Args 
- xks_proxy_ strconnectivity 
- xks_proxy_ struri_ endpoint 
- xks_proxy_ struri_ path 
- xks_proxy_ strvpc_ endpoint_ service_ name 
- customKey StringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- cloudHsm StringCluster Id 
- customKey StringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- keyStore StringPassword 
- trustAnchor StringCertificate 
- xksProxy Property MapAuthentication Credential 
- xksProxy StringConnectivity 
- xksProxy StringUri Endpoint 
- xksProxy StringUri Path 
- xksProxy StringVpc Endpoint Service Name 
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) -> CustomKeyStorefunc 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
- 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.
- CloudHsm stringCluster Id 
- CustomKey stringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- CustomKey stringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- KeyStore stringPassword 
- TrustAnchor stringCertificate 
- XksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential 
- XksProxy stringConnectivity 
- XksProxy stringUri Endpoint 
- XksProxy stringUri Path 
- XksProxy stringVpc Endpoint Service Name 
- CloudHsm stringCluster Id 
- CustomKey stringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- CustomKey stringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- KeyStore stringPassword 
- TrustAnchor stringCertificate 
- XksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential Args 
- XksProxy stringConnectivity 
- XksProxy stringUri Endpoint 
- XksProxy stringUri Path 
- XksProxy stringVpc Endpoint Service Name 
- cloudHsm StringCluster Id 
- customKey StringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- customKey StringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- keyStore StringPassword 
- trustAnchor StringCertificate 
- xksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential 
- xksProxy StringConnectivity 
- xksProxy StringUri Endpoint 
- xksProxy StringUri Path 
- xksProxy StringVpc Endpoint Service Name 
- cloudHsm stringCluster Id 
- customKey stringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- customKey stringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- keyStore stringPassword 
- trustAnchor stringCertificate 
- xksProxy CustomAuthentication Credential Key Store Xks Proxy Authentication Credential 
- xksProxy stringConnectivity 
- xksProxy stringUri Endpoint 
- xksProxy stringUri Path 
- xksProxy stringVpc Endpoint Service Name 
- cloud_hsm_ strcluster_ id 
- custom_key_ strstore_ name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- custom_key_ strstore_ type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- key_store_ strpassword 
- trust_anchor_ strcertificate 
- xks_proxy_ Customauthentication_ credential Key Store Xks Proxy Authentication Credential Args 
- xks_proxy_ strconnectivity 
- xks_proxy_ struri_ endpoint 
- xks_proxy_ struri_ path 
- xks_proxy_ strvpc_ endpoint_ service_ name 
- cloudHsm StringCluster Id 
- customKey StringStore Name 
- Unique name for Custom Key Store. - The following arguments are optional: 
- customKey StringStore Type 
- Specifies the type of key store to create. Valid values are AWS_CLOUDHSMandEXTERNAL_KEY_STORE. If omitted, AWS will default the value toAWS_CLOUDHSM.
- keyStore StringPassword 
- trustAnchor StringCertificate 
- xksProxy Property MapAuthentication Credential 
- xksProxy StringConnectivity 
- xksProxy StringUri Endpoint 
- xksProxy StringUri Path 
- xksProxy StringVpc Endpoint Service Name 
Supporting Types
CustomKeyStoreXksProxyAuthenticationCredential, CustomKeyStoreXksProxyAuthenticationCredentialArgs              
- AccessKey stringId 
- A unique identifier for the raw secret access key.
- RawSecret stringAccess Key 
- A secret string of 43-64 characters.
- AccessKey stringId 
- A unique identifier for the raw secret access key.
- RawSecret stringAccess Key 
- A secret string of 43-64 characters.
- accessKey StringId 
- A unique identifier for the raw secret access key.
- rawSecret StringAccess Key 
- A secret string of 43-64 characters.
- accessKey stringId 
- A unique identifier for the raw secret access key.
- rawSecret stringAccess Key 
- A secret string of 43-64 characters.
- access_key_ strid 
- A unique identifier for the raw secret access key.
- raw_secret_ straccess_ key 
- A secret string of 43-64 characters.
- accessKey StringId 
- A unique identifier for the raw secret access key.
- rawSecret StringAccess Key 
- 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
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 awsTerraform Provider.