This repository was archived by the owner on Nov 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdns.yaml
More file actions
75 lines (59 loc) · 1.57 KB
/
dns.yaml
File metadata and controls
75 lines (59 loc) · 1.57 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
AWSTemplateFormatVersion: 2010-09-09
Description: 'git LFS: Custom API endpoint'
Parameters:
ApiId:
Description: ID of the API.
Type: String
CertificateArn:
Description: ARN of the certificate validating the git LFS endpoint domain.
Type: String
DomainName:
Description: Domain name of git LFS API endpoint.
Type: String
HostedZoneId:
Description: ID of the Route 53 hosted zone in which to create DNS records.
Type: AWS::Route53::HostedZone::Id
StageName:
Description: Name of the API stage.
Type: String
Resources:
Record:
DependsOn:
- Mapping
Type: AWS::Route53::RecordSet
Properties:
AliasTarget:
DNSName:
Fn::GetAtt:
- ApiDomainName
- RegionalDomainName
HostedZoneId:
Fn::GetAtt:
- ApiDomainName
- RegionalHostedZoneId
Comment: git LFS
HostedZoneId:
Ref: HostedZoneId
Name:
Ref: DomainName
Type: A
ApiDomainName:
Type: AWS::ApiGatewayV2::DomainName
Properties:
DomainName:
Ref: DomainName
DomainNameConfigurations:
-
CertificateArn:
Ref: CertificateArn
EndpointType: REGIONAL
Mapping:
Type: AWS::ApiGatewayV2::ApiMapping
Properties:
ApiId:
Ref: ApiId
DomainName:
Ref: ApiDomainName
Stage:
Ref: StageName