@@ -19,15 +19,14 @@ 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
30
- HostedZoneId : Z2FDTNDATAQYW2 # The hosted zone ID for Elastic Load Balancer in us-east-1
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
31
30
32
31
LoadBalancer :
33
32
Type : AWS::ElasticLoadBalancingV2::LoadBalancer
@@ -48,11 +47,20 @@ Resources:
48
47
Properties :
49
48
DefaultActions :
50
49
- Type : forward
51
- TargetGroupArn : !Ref ECSTargetGroup # Now within a forward configuration
50
+ TargetGroupArn : !Ref ECSTargetGroup
52
51
LoadBalancerArn : !Ref LoadBalancer
53
52
Port : 80
54
53
Protocol : HTTP
55
54
55
+ ECSTargetGroup :
56
+ Type : AWS::ElasticLoadBalancingV2::TargetGroup
57
+ Properties :
58
+ Port : 5000
59
+ Protocol : HTTP
60
+ TargetType : ip
61
+ # TODO: This copies geocoder, but we should probably have a separate VPC for this service.
62
+ VpcId : !ImportValue VPC
63
+
56
64
ECSCluster :
57
65
Type : " AWS::ECS::Cluster"
58
66
@@ -85,15 +93,6 @@ Resources:
85
93
# TODO: This copies geocoder, but we should probably have a separate VPC for this service.
86
94
VpcId : !ImportValue VPC
87
95
88
- ECSTargetGroup :
89
- Type : AWS::ElasticLoadBalancingV2::TargetGroup
90
- Properties :
91
- Port : 5000
92
- Protocol : HTTP
93
- TargetType : ip
94
- # TODO: This copies geocoder, but we should probably have a separate VPC for this service.
95
- VpcId : !ImportValue VPC
96
-
97
96
ECSTaskDefinition :
98
97
Type : " AWS::ECS::TaskDefinition"
99
98
Properties :
0 commit comments