Skip to content

Instantly share code, notes, and snippets.

@pdehaye
Created January 12, 2018 09:43
Show Gist options
  • Save pdehaye/5f3d783fbc12e01e4b67d01574c608b7 to your computer and use it in GitHub Desktop.
Save pdehaye/5f3d783fbc12e01e4b67d01574c608b7 to your computer and use it in GitHub Desktop.
Parameters:
DomainName:
Description: Beanstalk Domain Name of the Application
Type: String
Default: example.com
ConstraintDescription: Must be a valid Domain Name
DomainZoneId:
Description: Domain Name Hosted Zone ID
Type: String
Default: Z2JEFNTHDAMUTJ
Resources:
DeployApplicationRecordSet:
Type: "AWS::Route53::RecordSet"
Properties:
HostedZoneId:
Ref: DomainZoneId
Comment: "Alias targeted ELB Load Balancer"
Name:
Fn::Join:
- '.'
- - 'test'
- !Ref DomainName
Type: "A"
AliasTarget:
HostedZoneId:
Fn::GetAtt: [ "AWSEBLoadBalancer", "CanonicalHostedZoneNameID" ]
DNSName:
Fn::GetAtt: [ "AWSEBLoadBalancer", "DNSName" ]
Outputs:
DeployApplicationDomainName:
Description: Application Domain Name
Value:
Ref: DomainName
@pdehaye
Copy link
Author

pdehaye commented Jan 12, 2018

Where is this reused?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment