Skip to content

Instantly share code, notes, and snippets.

@eulersson
Created February 19, 2019 23:54
Show Gist options
  • Save eulersson/282312fc2bf455abcd0f4e9853ad69fe to your computer and use it in GitHub Desktop.
Save eulersson/282312fc2bf455abcd0f4e9853ad69fe to your computer and use it in GitHub Desktop.
Parameters, conditions resources and outputs.
Parameters:
HostedZoneName:
Type: String
Description:
(Optional) If you have a domain available registered with Route 53 you
can type it (e.g. 'foo.com.'; do not miss the final dot!). Then a DNS
record gets created on subdomain ecsfs.foo.com which will route to the
load balancer (the entry point of this application).
Conditions:
HasHostedZoneName: !Not [ !Equals [ !Ref HostedZoneName, '']]
Resources:
# Subsequent yaml snippets will fall under this category.
Outputs:
LoadBalancerDNSName:
Description: Copy and paste this value into your browser to access the app.
Value: !GetAtt LoadBalancer.DNSName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment