@@ -2,15 +2,15 @@ AWSTemplateFormatVersion: 2010-09-09
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : Provision an instance of the Javabuilder service. Empty the ContentBucket before deleting this Stack.
4
4
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').
8
8
# BaseDomainNameHostedZonedID:
9
9
# Type: String
10
10
# 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').
14
14
AppImageUri :
15
15
Type : String
16
16
Description : URI of the Docker image in ECR.
@@ -19,14 +19,15 @@ Parameters:
19
19
# IsDevCondition: !Equals [!Ref BaseDomainName, "dev-code.org"]
20
20
21
21
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
30
31
31
32
LoadBalancer :
32
33
Type : AWS::ElasticLoadBalancingV2::LoadBalancer
@@ -119,7 +120,7 @@ Resources:
119
120
awslogs-region : !Ref AWS::Region
120
121
awslogs-stream-prefix : ecs
121
122
122
- # Outputs:
123
- # AiProxyURL:
124
- # Value:
125
- # !Ref Domain
123
+ Outputs :
124
+ AiProxyURL :
125
+ Value :
126
+ !Ref Domain
0 commit comments