Skip to content
GitHubXDiscordRSS

KeySigningKey

Learn how to create, update, and manage AWS Route53 KeySigningKeys using Alchemy Cloud Control.

The KeySigningKey resource allows you to manage AWS Route53 KeySigningKeys for signing DNSSEC records.

Create a basic KeySigningKey with required properties and one optional property.

import AWS from "alchemy/aws/control";
const keySigningKey = await AWS.Route53.KeySigningKey("myKeySigningKey", {
Status: "ACTIVE",
KeyManagementServiceArn: "arn:aws:kms:us-west-2:123456789012:key/my-key-id",
HostedZoneId: "Z3M3LMN4V2M4FJ",
Name: "MyKeySigningKey",
adopt: true // Adopt existing resource if it already exists
});

Configure a KeySigningKey with detailed properties, including status and KMS ARN.

const advancedKeySigningKey = await AWS.Route53.KeySigningKey("advancedKeySigningKey", {
Status: "ACTIVE",
KeyManagementServiceArn: "arn:aws:kms:us-west-2:123456789012:key/my-advanced-key-id",
HostedZoneId: "Z3M3LMN4V2M4FJ",
Name: "AdvancedKeySigningKey"
});

Update an existing KeySigningKey’s status to inactive while retaining its properties.

const updatedKeySigningKey = await AWS.Route53.KeySigningKey("myKeySigningKey", {
Status: "INACTIVE",
KeyManagementServiceArn: "arn:aws:kms:us-west-2:123456789012:key/my-key-id",
HostedZoneId: "Z3M3LMN4V2M4FJ",
Name: "MyKeySigningKey"
});

Delete a KeySigningKey when it is no longer needed.

await AWS.Route53.KeySigningKey("myKeySigningKey", {
Status: "DELETED",
KeyManagementServiceArn: "arn:aws:kms:us-west-2:123456789012:key/my-key-id",
HostedZoneId: "Z3M3LMN4V2M4FJ",
Name: "MyKeySigningKey"
});