Application/Network load balancer DNS record.
Install Node.js and npm first!
npm i @cfn-modules/lb-dns-record
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
Record:
Type: 'AWS::CloudFormation::Stack'
Properties:
Parameters:
HostedZoneModule: !GetAtt 'HostedZone.Outputs.StackName' # required
LoadBalancerModule: !GetAtt 'Alb.Outputs.StackName' # required
SubDomainNameWithDot: '' # optional
TemplateURL: './node_modules/@cfn-modules/lb-dns-record/module.yml'
none
Name | Description | Default | Required? | Allowed values |
---|---|---|---|---|
HostedZoneModule | Stack name of module implementing HostedZone | yes | ||
LoadBalancerModule | Stack name of module implementing HostedZone | no | ||
SubDomainNameWithDot | Name that is used to create the DNS entry with trailing dot, e.g. §{SubDomainNameWithDot}§{HostedZoneName}. Leave blank for naked (or apex and bare) domain | no |