Skip to content
Snippets Groups Projects
Commit e390b565 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

fikset siste problemer (dns-navn og fast hosted zone for cloudfront)

parent 08072180
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ Parameters:
DomainName:
Type: String
Description: The domain name.
Default: 'beta.ordbok.aws.uib.no.'
Default: 'beta.ordbok.aws.uib.no'
AllowedPattern: (?!-)[a-zA-Z0-9-.]{1,63}(?<!-)
ConstraintDescription: must be a valid DNS zone name
......@@ -27,10 +27,6 @@ Parameters:
Type: String
Default: ''
HostedZone:
Type: String
Default: Z2YZQI8X816BZS
###############################################################################
Resources:
......@@ -39,11 +35,11 @@ Resources:
DNS:
Type: "AWS::Route53::RecordSet"
Properties:
HostedZoneName: !Ref DomainName
HostedZoneName: !Sub "${DomainName}."
Name: !Ref DomainName
Type: A
AliasTarget:
HostedZoneId: !Ref HostedZone
HostedZoneId: Z2FDTNDATAQYW2
DNSName: !GetAtt Distribution.DomainName
WebBucket:
......@@ -67,7 +63,7 @@ Resources:
Statement:
- Sid: PublicReadForGetBucketObjects
Effect: Allow
Action: s3:GetObject
Action: s3:*
Resource: !Join ['', ['arn:aws:s3:::', !Ref 'WebBucket', /*]]
Principal:
CanonicalUser: !GetAtt CloudFrontOriginIdentity.S3CanonicalUserId
......
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