-
Notifications
You must be signed in to change notification settings - Fork 4
/
api.concordqa.org.yml
30 lines (26 loc) · 1019 Bytes
/
api.concordqa.org.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
AWSTemplateFormatVersion: 2010-09-09
Description: Creates api.concordqa.org API gateway domain and Route53 alias
Resources:
ApiGatewayDomain:
Type: AWS::ApiGateway::DomainName
Properties:
CertificateArn: arn:aws:acm:us-east-1:816253370536:certificate/7b8bb00e-7aa4-4b9f-a722-f49c828af83c
DomainName: api.concordqa.org
ApiGatewayDNSRecord:
DependsOn: ApiGatewayDomain
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: Z270F8MK5GG1RH # concordqa.org
Name: api.concordqa.org.
Type: A
AliasTarget:
DNSName: !GetAtt ApiGatewayDomain.DistributionDomainName
EvaluateTargetHealth: no # this can't be used with CloudFront distribution aliases
HostedZoneId: !GetAtt ApiGatewayDomain.DistributionHostedZoneId
Outputs:
ApiDomainName:
Description: Api domain name
Value: !Ref ApiGatewayDomain
ApiDistributionDomainName:
Description: Api distribution domain name
Value: !GetAtt ApiGatewayDomain.DistributionDomainName