AWS Fundamentals Logo
AWS Fundamentals
AWS::KMS::ReplicaKey

KMS ReplicaKey

The AWS::KMS::ReplicaKey resource specifies a multi-region replica AWS KMS key in AWS Key Management Service (AWS KMS).

Properties

6 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
KeyPolicy
objectstring
Required
PrimaryKeyArn
string
RequiredCreate-only
Description
string
Enabled
boolean
PendingWindowInDays
integer
Write-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-
KeyIdstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::KMS::ReplicaKey

Resources:
  MyResource:
    Type: AWS::KMS::ReplicaKey
    Properties:
      PrimaryKeyArn: "arn:aws:service:region:account:resource"
      KeyPolicy: "value"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

kms:DescribeKeykms:GetKeyPolicykms:ListResourceTags

create

kms:ReplicateKeykms:CreateKeykms:DescribeKeykms:DisableKeykms:TagResource

update

kms:DescribeKeykms:DisableKeykms:EnableKeykms:PutKeyPolicykms:TagResourcekms:UntagResourcekms:UpdateKeyDescription

list

kms:ListKeyskms:DescribeKey

delete

kms:DescribeKeykms:ScheduleKeyDeletion

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceKMS
Properties8
Required2
TaggingSupported
Primary IDKeyId

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

PrimaryKeyArn

Related Resources

External Links