Skip to content

Commit 75ad95f

Browse files
committed
Add Route53 A record for user pool domain
We need this record which is an ALIAS to the Cognito User Pool Domain CF distro
1 parent 7c77779 commit 75ad95f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

stacksets/userpool/stackset.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ Resources:
4444
TTL: '3600'
4545
ResourceRecords: !GetAtt AuthnzZone.NameServers
4646

47+
AuthnzARecord:
48+
Type: "AWS::Route53::RecordSet"
49+
Properties:
50+
HostedZoneId: !Ref AuthnzZone
51+
Name: !Ref UserPoolDomainName
52+
Type: A
53+
AliasTarget:
54+
HostedZoneId: Z2FDTNDATAQYW2
55+
DNSName: !GetAtt UserPoolDomain.CloudFrontDistribution
56+
EvaluateTargetHealth: false
57+
4758
SiteCertificate:
4859
Type: AWS::CertificateManager::Certificate
4960
Properties:

0 commit comments

Comments
 (0)