Intelligently create DNS records an EC2 Instance or load balancer output from a CloudFormation stack. Using this command makes it easier to deal with a stack getting hosed than creating the DNS records with CloudFormation -- when something goes really wrong you can just create a new stack, and update the DNS records to point to it with this command.
Upserts DNS records to Route 53 for either an EC2 Instance output by a CloudFormation stack, or a load balancer output by it. If there are multiple EC2 Instances and/or load balancers output by the stack, an error will be thrown.
The general configuration options for AWS services, like credentials
and region
The name of the stack to generate DNS entries for.
The desired domain name for the DNS entries.
true
if only private zone DNS records should be created, false
if both public and private
records should be created. Defaults to false
.
The time-to-live for the DNS entries (not required for load balancers)
The AWS region to use (unless you are passing instances of the API clients you'll have to pass the region
)
An CloudFormation API client configured how you want.
An EC2 API client configured how you want.
An ELBv2 API client configured how you want.
An Route53 API client configured how you want.
A logging function
Enables verbose log
output
A Promise
that will resolve once the upsert is complete.
Generates the ResourceRecordSets
to upsert to Route 53 for either an
EC2 Instance output by a CloudFormation stack, or a load balancer output by it.
If there are multiple EC2 Instances and/or load balancers output by the stack,
an error will be thrown.
The general configuration options for AWS services, like credentials
and region
The name of the stack to generate DNS entries for.
The desired domain name for the DNS entries.
true
if only private zone DNS records should be created, false
if both public and private
records should be created. Defaults to false
.
The time-to-live for the DNS entries (not required for load balancers)
The AWS region to use (unless you are passing instances of the API clients you'll have to pass the region
)
An CloudFormation API client configured how you want.
An EC2 API client configured how you want.
An ELBv2 API client configured how you want.
A logging function
Enables verbose log
output
A Promise
to be resolved with an array of the following:
{
ResourceRecordSet: {
Name: string,
Type: 'A',
ResourceRecords?: Array<{Value: string}>,
TTL?: number,
AliasTarget?: {
DNSName: string,
EvaluateTargetHealth: boolean,
HostedZoneId: string,
},
},
PrivateZone?: ?boolean,
OutputKey?: ?string,
InstanceId?: ?string,
LoadBalancerArn?: ?string,
}
Intelligently upserts Route 53 entries for an EC2 Instance or load balancer output from a CloudFormation stack.
First it will fetch information from AWS, then display the records it plans to upsert and ask you to confirm whether to upsert them.
If there are multiple EC2 Instances and/or load balancers output by the stack, the command will error out. (In the future, it may ask you to select which you would like to upsert Route 53 entries for.)
cfroute53 upsert <stack name> <domain name> --region <AWS region> [--private-only] [--ttl <time to live>]
--version Show version number [boolean]
--help Show help [boolean]
-p, --private-only only create private zone DNS records [boolean]
--ttl the time-to-live for the record [number]
-c, --comment a comment for the change [string]
--region the AWS region [string]
-q, --quiet suppress output [boolean]
-v, --verbose enable verbose output [boolean]
-y, --yes don't ask for confirmation [boolean]