Skip to main content

key_signing_keys

Creates, updates, deletes or gets a key_signing_key resource or lists key_signing_keys in a region

Overview

Namekey_signing_keys
TypeResource
DescriptionRepresents a key signing key (KSK) associated with a hosted zone. You can only have two KSKs per hosted zone.
Idaws.route53.key_signing_keys

Fields

NameDatatypeDescription
hosted_zone_idstringThe unique string (ID) used to identify a hosted zone.
statusstringA string specifying the initial status of the key signing key (KSK). You can set the value to ACTIVE or INACTIVE.
namestringAn alphanumeric string used to identify a key signing key (KSK). Name must be unique for each key signing key in the same hosted zone.
key_management_service_arnstringThe Amazon resource name (ARN) for a customer managed key (CMK) in AWS Key Management Service (KMS). The KeyManagementServiceArn must be unique for each key signing key (KSK) in a single hosted zone.
regionstringAWS region.

For more information, see AWS::Route53::KeySigningKey.

Methods

NameAccessible byRequired Params
create_resourceINSERTStatus, HostedZoneId, Name, KeyManagementServiceArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all key_signing_keys in a region.

SELECT
region,
hosted_zone_id,
status,
name,
key_management_service_arn
FROM aws.route53.key_signing_keys
;

Gets all properties from an individual key_signing_key.

SELECT
region,
hosted_zone_id,
status,
name,
key_management_service_arn
FROM aws.route53.key_signing_keys
WHERE data__Identifier = '<HostedZoneId>|<Name>';

INSERT example

Use the following StackQL query and manifest file to create a new key_signing_key resource, using stack-deploy.

/*+ create */
INSERT INTO aws.route53.key_signing_keys (
HostedZoneId,
Status,
Name,
KeyManagementServiceArn,
region
)
SELECT
'{{ HostedZoneId }}',
'{{ Status }}',
'{{ Name }}',
'{{ KeyManagementServiceArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.route53.key_signing_keys
WHERE data__Identifier = '<HostedZoneId|Name>'
AND region = 'us-east-1';

Permissions

To operate on the key_signing_keys resource, the following permissions are required:

Create

route53:CreateKeySigningKey,
kms:DescribeKey,
kms:GetPublicKey,
kms:Sign,
kms:CreateGrant

Read

route53:GetDNSSEC

Update

route53:GetDNSSEC,
route53:ActivateKeySigningKey,
route53:DeactivateKeySigningKey,
kms:DescribeKey,
kms:GetPublicKey,
kms:Sign,
kms:CreateGrant

Delete

route53:DeactivateKeySigningKey,
route53:DeleteKeySigningKey,
kms:DescribeKey,
kms:GetPublicKey,
kms:Sign,
kms:CreateGrant

List

route53:GetDNSSEC,
route53:ListHostedZones