-
Notifications
You must be signed in to change notification settings - Fork 4
/
api.concord.org.yml
30 lines (26 loc) · 1011 Bytes
/
api.concord.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.concord.org API gateway domain and Route53 alias
Resources:
ApiGatewayDomain:
Type: AWS::ApiGateway::DomainName
Properties:
CertificateArn: arn:aws:acm:us-east-1:612297603577:certificate/2b62511e-ccc8-434b-ba6c-a8c33bbd509e
DomainName: api.concord.org
ApiGatewayDNSRecord:
DependsOn: ApiGatewayDomain
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: Z2P4W3M7MDAUV6 # concord.org
Name: api.concord.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