Skip to content
Snippets Groups Projects
Commit 10e9b2ee authored by Lennart Nordgreen's avatar Lennart Nordgreen :speech_balloon:
Browse files

Update beta.ordbok.uib.no_stack.yaml - adding new parameter ZoneDomainName so...

Update beta.ordbok.uib.no_stack.yaml - adding new parameter ZoneDomainName so we can create the DNS records directly on the "top" domain rather then creating separate sub zones for each endpoint. 
parent 12f83e18
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,13 @@ Description: >
Parameters:
##############################################################################
ZoneDomainName:
Type: String
Description: The domain name.
Default: 'ordbok.aws.uib.no'
AllowedPattern: (?!-)[a-zA-Z0-9-.]{1,63}(?<!-)
ConstraintDescription: must be a valid DNS zone name
DomainName:
Type: String
Description: The domain name.
......@@ -53,7 +60,7 @@ Resources:
DNS:
Type: "AWS::Route53::RecordSet"
Properties:
HostedZoneName: !Sub "${DomainName}."
HostedZoneName: !Sub "${ZoneDomainName}."
Name: !Ref DomainName
Type: A
AliasTarget:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment