Skip to content

Route 53 Resolver

CloudMock emulates Amazon Route 53 Resolver, supporting resolver endpoints, resolver rules, rule associations, and query log configurations.

OperationStatusNotes
CreateResolverEndpointSupportedCreates a resolver endpoint
GetResolverEndpointSupportedReturns endpoint details
ListResolverEndpointsSupportedLists all endpoints
DeleteResolverEndpointSupportedDeletes an endpoint
CreateResolverRuleSupportedCreates a resolver rule
GetResolverRuleSupportedReturns rule details
ListResolverRulesSupportedLists all rules
DeleteResolverRuleSupportedDeletes a rule
AssociateResolverRuleSupportedAssociates a rule with a VPC
GetResolverRuleAssociationSupportedReturns association details
ListResolverRuleAssociationsSupportedLists rule associations
DisassociateResolverRuleSupportedDisassociates a rule from a VPC
CreateQueryLogConfigSupportedCreates a query log config
GetQueryLogConfigSupportedReturns query log config details
ListQueryLogConfigsSupportedLists query log configs
DeleteQueryLogConfigSupportedDeletes a query log config
import { Route53ResolverClient, CreateResolverEndpointCommand } from '@aws-sdk/client-route53resolver';
const client = new Route53ResolverClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const { ResolverEndpoint } = await client.send(new CreateResolverEndpointCommand({
CreatorRequestId: 'unique-id',
Direction: 'INBOUND',
SecurityGroupIds: ['sg-12345'],
IpAddresses: [{ SubnetId: 'subnet-12345' }],
}));
console.log(ResolverEndpoint.Id);
import boto3
client = boto3.client('route53resolver',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.create_resolver_endpoint(
CreatorRequestId='unique-id',
Direction='INBOUND',
SecurityGroupIds=['sg-12345'],
IpAddresses=[{'SubnetId': 'subnet-12345'}])
print(response['ResolverEndpoint']['Id'])
cloudmock.yml
services:
route53resolver:
enabled: true
  • Resolver endpoints do not perform actual DNS resolution
  • Rule associations are stored but do not affect DNS queries
  • Query logging does not capture real DNS queries