Skip to content

Commit 148e745

Browse files
restore dns record placeholder
1 parent ad468b5 commit 148e745

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ AWSTemplateFormatVersion: 2010-09-09
22
Transform: AWS::Serverless-2016-10-31
33
Description: Provision an instance of the Javabuilder service. Empty the ContentBucket before deleting this Stack.
44
Parameters:
5-
# BaseDomainName:
6-
# Type: String
7-
# Description: Base domain name (e.g. 'code.org' in 'aiproxy.code.org').
5+
BaseDomainName:
6+
Type: String
7+
Description: Base domain name (e.g. 'code.org' in 'aiproxy.code.org').
88
# BaseDomainNameHostedZonedID:
99
# Type: String
1010
# Description: AWS Route53 Hosted Zone ID for base domain name.
11-
# SubdomainName:
12-
# Type: String
13-
# Description: Subdomain name for javabuilder service (e.g. 'javabuilder' in 'javabuilder.code.org').
11+
SubdomainName:
12+
Type: String
13+
Description: Subdomain name for javabuilder service (e.g. 'javabuilder' in 'javabuilder.code.org').
1414
AppImageUri:
1515
Type: String
1616
Description: URI of the Docker image in ECR.
@@ -19,14 +19,15 @@ Parameters:
1919
# IsDevCondition: !Equals [!Ref BaseDomainName, "dev-code.org"]
2020

2121
Resources:
22-
# Domain:
23-
# Type: AWS::Route53::RecordSet
24-
# Properties:
25-
# HostedZoneName: !Sub "${BaseDomainName}."
26-
# Name: !Sub "${SubdomainName}.${BaseDomainName}"
27-
# Type: A
28-
# AliasTarget:
29-
# DNSName: !GetAtt LoadBalancer.DNSName # Reference the DNS name of the load balancer
22+
Domain:
23+
Type: AWS::Route53::RecordSet
24+
Properties:
25+
HostedZoneName: !Sub "${BaseDomainName}."
26+
Name: !Sub "${SubdomainName}.${BaseDomainName}"
27+
Type: A
28+
TTL: 300
29+
ResourceRecords:
30+
- 8.8.8.8
3031

3132
LoadBalancer:
3233
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
@@ -119,7 +120,7 @@ Resources:
119120
awslogs-region: !Ref AWS::Region
120121
awslogs-stream-prefix: ecs
121122

122-
# Outputs:
123-
# AiProxyURL:
124-
# Value:
125-
# !Ref Domain
123+
Outputs:
124+
AiProxyURL:
125+
Value:
126+
!Ref Domain

0 commit comments

Comments
 (0)