1. Registry
  2. Packages
  3. HashiCorp Vault Provider
  4. API Docs
  5. keymgmt
  6. ReplicateKey
Viewing docs for HashiCorp Vault v7.12.0
published on Saturday, Aug 15, 2026 by Pulumi
vault logo vault logo
Viewing docs for HashiCorp Vault v7.12.0
published on Saturday, Aug 15, 2026 by Pulumi

    Manages key replication across multiple AWS regions in AWS KMS. This resource enables AWS KMS multi-region keys, allowing the same key material to be used across different AWS regions for high availability and disaster recovery.

    Note: This resource is only applicable to AWS KMS and does not work with Azure Key Vault or GCP Cloud KMS.

    When you replicate a key to AWS KMS, it becomes a multi-region key that can be used for encryption and decryption operations in multiple AWS regions while maintaining the same key material.

    Important All data provided in the resource configuration will be written in cleartext to state and plan files generated by Terraform, and will appear in the console output when Terraform runs. Protect these artifacts accordingly. See the main provider documentation for more details.

    For more information on AWS KMS multi-region keys with Vault, please refer to the Vault documentation.

    Note this feature is available only with Vault Enterprise and requires a configured AWS KMS provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vault from "@pulumi/vault";
    
    const keymgmt = new vault.Mount("keymgmt", {
        path: "keymgmt",
        type: "keymgmt",
    });
    const key = new vault.keymgmt.Key("key", {
        mount: keymgmt.path,
        name: "multi-region-key",
        type: "aes256-gcm96",
        replicaRegions: [
            "us-east-1",
            "eu-west-1",
        ],
    });
    const aws = new vault.keymgmt.AwsKms("aws", {
        mount: keymgmt.path,
        name: "aws-kms",
        keyCollection: "us-west-2",
        credentialsWo: {
            access_key: awsAccessKeyId,
            secret_key: awsSecretAccessKey,
        },
        credentialsWoVersion: 1,
    });
    const dist = new vault.keymgmt.DistributeKey("dist", {
        mount: keymgmt.path,
        kmsName: aws.name,
        keyName: key.name,
        purposes: [
            "encrypt",
            "decrypt",
        ],
    });
    const replicate = new vault.keymgmt.ReplicateKey("replicate", {
        mount: keymgmt.path,
        kmsName: aws.name,
        keyName: key.name,
    }, {
        dependsOn: [dist],
    });
    
    import pulumi
    import pulumi_vault as vault
    
    keymgmt = vault.Mount("keymgmt",
        path="keymgmt",
        type="keymgmt")
    key = vault.keymgmt.Key("key",
        mount=keymgmt.path,
        name="multi-region-key",
        type="aes256-gcm96",
        replica_regions=[
            "us-east-1",
            "eu-west-1",
        ])
    aws = vault.keymgmt.AwsKms("aws",
        mount=keymgmt.path,
        name="aws-kms",
        key_collection="us-west-2",
        credentials_wo={
            "access_key": aws_access_key_id,
            "secret_key": aws_secret_access_key,
        },
        credentials_wo_version=1)
    dist = vault.keymgmt.DistributeKey("dist",
        mount=keymgmt.path,
        kms_name=aws.name,
        key_name=key.name,
        purposes=[
            "encrypt",
            "decrypt",
        ])
    replicate = vault.keymgmt.ReplicateKey("replicate",
        mount=keymgmt.path,
        kms_name=aws.name,
        key_name=key.name,
        opts = pulumi.ResourceOptions(depends_on=[dist]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-vault/sdk/v7/go/vault"
    	"github.com/pulumi/pulumi-vault/sdk/v7/go/vault/keymgmt"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		keymgmt2, err := vault.NewMount(ctx, "keymgmt", &vault.MountArgs{
    			Path: pulumi.String("keymgmt"),
    			Type: pulumi.String("keymgmt"),
    		})
    		if err != nil {
    			return err
    		}
    		key, err := keymgmt.NewKey(ctx, "key", &keymgmt.KeyArgs{
    			Mount: keymgmt2.Path,
    			Name:  pulumi.String("multi-region-key"),
    			Type:  pulumi.String("aes256-gcm96"),
    			ReplicaRegions: pulumi.StringArray{
    				pulumi.String("us-east-1"),
    				pulumi.String("eu-west-1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		aws, err := keymgmt.NewAwsKms(ctx, "aws", &keymgmt.AwsKmsArgs{
    			Mount:         keymgmt2.Path,
    			Name:          pulumi.String("aws-kms"),
    			KeyCollection: pulumi.String("us-west-2"),
    			CredentialsWo: pulumi.StringMap{
    				"access_key": pulumi.Any(awsAccessKeyId),
    				"secret_key": pulumi.Any(awsSecretAccessKey),
    			},
    			CredentialsWoVersion: pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		dist, err := keymgmt.NewDistributeKey(ctx, "dist", &keymgmt.DistributeKeyArgs{
    			Mount:   keymgmt2.Path,
    			KmsName: aws.Name,
    			KeyName: key.Name,
    			Purposes: pulumi.StringArray{
    				pulumi.String("encrypt"),
    				pulumi.String("decrypt"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = keymgmt.NewReplicateKey(ctx, "replicate", &keymgmt.ReplicateKeyArgs{
    			Mount:   keymgmt2.Path,
    			KmsName: aws.Name,
    			KeyName: key.Name,
    		}, pulumi.DependsOn([]pulumi.Resource{
    			dist,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vault = Pulumi.Vault;
    
    return await Deployment.RunAsync(() => 
    {
        var keymgmt = new Vault.Mount("keymgmt", new()
        {
            Path = "keymgmt",
            Type = "keymgmt",
        });
    
        var key = new Vault.KeyMgmt.Key("key", new()
        {
            Mount = keymgmt.Path,
            Name = "multi-region-key",
            Type = "aes256-gcm96",
            ReplicaRegions = new[]
            {
                "us-east-1",
                "eu-west-1",
            },
        });
    
        var aws = new Vault.KeyMgmt.AwsKms("aws", new()
        {
            Mount = keymgmt.Path,
            Name = "aws-kms",
            KeyCollection = "us-west-2",
            CredentialsWo = 
            {
                { "access_key", awsAccessKeyId },
                { "secret_key", awsSecretAccessKey },
            },
            CredentialsWoVersion = 1,
        });
    
        var dist = new Vault.KeyMgmt.DistributeKey("dist", new()
        {
            Mount = keymgmt.Path,
            KmsName = aws.Name,
            KeyName = key.Name,
            Purposes = new[]
            {
                "encrypt",
                "decrypt",
            },
        });
    
        var replicate = new Vault.KeyMgmt.ReplicateKey("replicate", new()
        {
            Mount = keymgmt.Path,
            KmsName = aws.Name,
            KeyName = key.Name,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                dist,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vault.Mount;
    import com.pulumi.vault.MountArgs;
    import com.pulumi.vault.keymgmt.Key;
    import com.pulumi.vault.keymgmt.KeyArgs;
    import com.pulumi.vault.keymgmt.AwsKms;
    import com.pulumi.vault.keymgmt.AwsKmsArgs;
    import com.pulumi.vault.keymgmt.DistributeKey;
    import com.pulumi.vault.keymgmt.DistributeKeyArgs;
    import com.pulumi.vault.keymgmt.ReplicateKey;
    import com.pulumi.vault.keymgmt.ReplicateKeyArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 keymgmt = new Mount("keymgmt", MountArgs.builder()
                .path("keymgmt")
                .type("keymgmt")
                .build());
    
            var key = new Key("key", KeyArgs.builder()
                .mount(keymgmt.path())
                .name("multi-region-key")
                .type("aes256-gcm96")
                .replicaRegions(            
                    "us-east-1",
                    "eu-west-1")
                .build());
    
            var aws = new AwsKms("aws", AwsKmsArgs.builder()
                .mount(keymgmt.path())
                .name("aws-kms")
                .keyCollection("us-west-2")
                .credentialsWo(Map.ofEntries(
                    Map.entry("access_key", awsAccessKeyId),
                    Map.entry("secret_key", awsSecretAccessKey)
                ))
                .credentialsWoVersion(1)
                .build());
    
            var dist = new DistributeKey("dist", DistributeKeyArgs.builder()
                .mount(keymgmt.path())
                .kmsName(aws.name())
                .keyName(key.name())
                .purposes(            
                    "encrypt",
                    "decrypt")
                .build());
    
            var replicate = new ReplicateKey("replicate", ReplicateKeyArgs.builder()
                .mount(keymgmt.path())
                .kmsName(aws.name())
                .keyName(key.name())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(dist)
                    .build());
    
        }
    }
    
    resources:
      keymgmt:
        type: vault:Mount
        properties:
          path: keymgmt
          type: keymgmt
      key:
        type: vault:keymgmt:Key
        properties:
          mount: ${keymgmt.path}
          name: multi-region-key
          type: aes256-gcm96
          replicaRegions:
            - us-east-1
            - eu-west-1
      aws:
        type: vault:keymgmt:AwsKms
        properties:
          mount: ${keymgmt.path}
          name: aws-kms
          keyCollection: us-west-2
          credentialsWo:
            access_key: ${awsAccessKeyId}
            secret_key: ${awsSecretAccessKey}
          credentialsWoVersion: 1
      dist:
        type: vault:keymgmt:DistributeKey
        properties:
          mount: ${keymgmt.path}
          kmsName: ${aws.name}
          keyName: ${key.name}
          purposes:
            - encrypt
            - decrypt
      replicate:
        type: vault:keymgmt:ReplicateKey
        properties:
          mount: ${keymgmt.path}
          kmsName: ${aws.name}
          keyName: ${key.name}
        options:
          dependsOn:
            - ${dist}
    
    pulumi {
      required_providers {
        vault = {
          source = "pulumi/vault"
        }
      }
    }
    
    resource "vault_mount" "keymgmt" {
      path = "keymgmt"
      type = "keymgmt"
    }
    resource "vault_keymgmt_key" "key" {
      mount           = vault_mount.keymgmt.path
      name            = "multi-region-key"
      type            = "aes256-gcm96"
      replica_regions = ["us-east-1", "eu-west-1"]
    }
    resource "vault_keymgmt_awskms" "aws" {
      mount          = vault_mount.keymgmt.path
      name           = "aws-kms"
      key_collection = "us-west-2"
      credentials_wo = {
        "access_key" = awsAccessKeyId
        "secret_key" = awsSecretAccessKey
      }
      credentials_wo_version = 1
    }
    resource "vault_keymgmt_distributekey" "dist" {
      mount    = vault_mount.keymgmt.path
      kms_name = vault_keymgmt_awskms.aws.name
      key_name = vault_keymgmt_key.key.name
      purposes = ["encrypt", "decrypt"]
    }
    resource "vault_keymgmt_replicatekey" "replicate" {
      depends_on = [vault_keymgmt_distributekey.dist]
      mount      = vault_mount.keymgmt.path
      kms_name   = vault_keymgmt_awskms.aws.name
      key_name   = vault_keymgmt_key.key.name
    }
    

    Create ReplicateKey Resource

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

    Constructor syntax

    new ReplicateKey(name: string, args: ReplicateKeyArgs, opts?: CustomResourceOptions);
    @overload
    def ReplicateKey(resource_name: str,
                     args: ReplicateKeyArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplicateKey(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     key_name: Optional[str] = None,
                     kms_name: Optional[str] = None,
                     mount: Optional[str] = None,
                     namespace: Optional[str] = None)
    func NewReplicateKey(ctx *Context, name string, args ReplicateKeyArgs, opts ...ResourceOption) (*ReplicateKey, error)
    public ReplicateKey(string name, ReplicateKeyArgs args, CustomResourceOptions? opts = null)
    public ReplicateKey(String name, ReplicateKeyArgs args)
    public ReplicateKey(String name, ReplicateKeyArgs args, CustomResourceOptions options)
    
    type: vault:keymgmt:ReplicateKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "vault_keymgmt_replicate_key" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ReplicateKeyArgs
    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 ReplicateKeyArgs
    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 ReplicateKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicateKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicateKeyArgs
    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 replicateKeyResource = new Vault.KeyMgmt.ReplicateKey("replicateKeyResource", new()
    {
        KeyName = "string",
        KmsName = "string",
        Mount = "string",
        Namespace = "string",
    });
    
    example, err := keymgmt.NewReplicateKey(ctx, "replicateKeyResource", &keymgmt.ReplicateKeyArgs{
    	KeyName:   pulumi.String("string"),
    	KmsName:   pulumi.String("string"),
    	Mount:     pulumi.String("string"),
    	Namespace: pulumi.String("string"),
    })
    
    resource "vault_keymgmt_replicate_key" "replicateKeyResource" {
      lifecycle {
        create_before_destroy = true
      }
      key_name  = "string"
      kms_name  = "string"
      mount     = "string"
      namespace = "string"
    }
    
    var replicateKeyResource = new ReplicateKey("replicateKeyResource", ReplicateKeyArgs.builder()
        .keyName("string")
        .kmsName("string")
        .mount("string")
        .namespace("string")
        .build());
    
    replicate_key_resource = vault.keymgmt.ReplicateKey("replicateKeyResource",
        key_name="string",
        kms_name="string",
        mount="string",
        namespace="string")
    
    const replicateKeyResource = new vault.keymgmt.ReplicateKey("replicateKeyResource", {
        keyName: "string",
        kmsName: "string",
        mount: "string",
        namespace: "string",
    });
    
    type: vault:keymgmt:ReplicateKey
    properties:
        keyName: string
        kmsName: string
        mount: string
        namespace: string
    

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

    KeyName string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    KmsName string
    Specifies the name of the AWS KMS provider.
    Mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    Namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    KeyName string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    KmsName string
    Specifies the name of the AWS KMS provider.
    Mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    Namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    key_name string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kms_name string
    Specifies the name of the AWS KMS provider.
    mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    keyName String
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kmsName String
    Specifies the name of the AWS KMS provider.
    mount String
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace String
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    keyName string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kmsName string
    Specifies the name of the AWS KMS provider.
    mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    key_name str
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kms_name str
    Specifies the name of the AWS KMS provider.
    mount str
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace str
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    keyName String
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kmsName String
    Specifies the name of the AWS KMS provider.
    mount String
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace String
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

    Outputs

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

    Get an existing ReplicateKey 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?: ReplicateKeyState, opts?: CustomResourceOptions): ReplicateKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            key_name: Optional[str] = None,
            kms_name: Optional[str] = None,
            mount: Optional[str] = None,
            namespace: Optional[str] = None) -> ReplicateKey
    func GetReplicateKey(ctx *Context, name string, id IDInput, state *ReplicateKeyState, opts ...ResourceOption) (*ReplicateKey, error)
    public static ReplicateKey Get(string name, Input<string> id, ReplicateKeyState? state, CustomResourceOptions? opts = null)
    public static ReplicateKey get(String name, Output<String> id, ReplicateKeyState state, CustomResourceOptions options)
    resources:  _:    type: vault:keymgmt:ReplicateKey    get:      id: ${id}
    import {
      to = vault_keymgmt_replicate_key.example
      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.
    The following state arguments are supported:
    KeyName string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    KmsName string
    Specifies the name of the AWS KMS provider.
    Mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    Namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    KeyName string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    KmsName string
    Specifies the name of the AWS KMS provider.
    Mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    Namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    key_name string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kms_name string
    Specifies the name of the AWS KMS provider.
    mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    keyName String
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kmsName String
    Specifies the name of the AWS KMS provider.
    mount String
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace String
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    keyName string
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kmsName string
    Specifies the name of the AWS KMS provider.
    mount string
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace string
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    key_name str
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kms_name str
    Specifies the name of the AWS KMS provider.
    mount str
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace str
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    keyName String
    Specifies the name of the key to replicate. The key must have replicaRegions configured and must already be distributed to the AWS KMS provider.
    kmsName String
    Specifies the name of the AWS KMS provider.
    mount String
    Path of the Key Management secrets engine mount. Must match the path of a vault.Mount resource with type = "keymgmt". Use vault_mount.keymgmt.path here.
    namespace String
    The namespace of the target resource. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

    Import

    Key replication resources can be imported using the format {path}/kms/{kms_name}/key/{key_name}/replicate, e.g.

    $ pulumi import vault:keymgmt/replicateKey:ReplicateKey us_east keymgmt/kms/aws-us-west-2/key/multi-region-key/replicate
    

    Note: The key must have replicaRegions configured in vault.keymgmt.Key and must be distributed to the AWS KMS provider using vault.keymgmt.DistributeKey before replication.

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

    Package Details

    Repository
    Vault pulumi/pulumi-vault
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vault Terraform Provider.
    vault logo vault logo
    Viewing docs for HashiCorp Vault v7.12.0
    published on Saturday, Aug 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial