Created
January 12, 2018 09:43
-
-
Save pdehaye/5f3d783fbc12e01e4b67d01574c608b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where is this reused?