Something went wrong on our end
-
Ole Voldsæter authoredOle Voldsæter authored
beta.ordbok.uib.no_stack.yaml 5.36 KiB
AWSTemplateFormatVersion: '2010-09-09'
Description: >
Script to create S3 bucket, DNS (Route53) and Cloudfront distribution.
##############################################################################
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.
Default: 'beta.ordbok.aws.uib.no'
AllowedPattern: (?!-)[a-zA-Z0-9-.]{1,63}(?<!-)
ConstraintDescription: must be a valid DNS zone name
AltDomainName:
Type: String
Description: The domain name.
Default: 'beta.ordbok.uib.no'
AllowedPattern: (?!-)[a-zA-Z0-9-.]{1,63}(?<!-)
ConstraintDescription: must be a valid DNS zone name
PriceClass:
Type: String
Description: The CloudFront distribution price class
Default: 'PriceClass_All'
AllowedValues:
- 'PriceClass_100'
- 'PriceClass_200'
- 'PriceClass_All'
CertificateArn:
Type: String
PathRewriteLambdaARN:
Type: String
Description: ARN to lambda function in us-east-1 used to rewrite paths
OrdbokCacheOriginDomain:
Type: String
Description: Domain name for ordbok cache
OrdbokCacheStage:
Type: String
AllowedValues:
- DEV
- PROD
###############################################################################
Resources:
###############################################################################
DNS:
Type: "AWS::Route53::RecordSet"
Properties:
HostedZoneName: !Sub "${ZoneDomainName}."
Name: !Ref DomainName
Type: A
AliasTarget:
HostedZoneId: Z2FDTNDATAQYW2
DNSName: !GetAtt Distribution.DomainName
WebBucket: