@@ -17,6 +17,8 @@ Mappings:
1717 SubnetId: subnet-08fe76b5c6dc035d0
1818 - AvailabilityZone: us-east-2b
1919 SubnetId: subnet-0797a471ba5029682
20+ Subnet1: 'subnet-08fe76b5c6dc035d0'
21+ Subnet2: 'subnet-0797a471ba5029682'
2022 cardano-tom:
2123 Image: 'ami-07feb56dadb897a30'
2224 Snapshot: 'snap-047e50379c2d1fce9'
@@ -202,21 +204,32 @@ Resources:
202204 - Key: sundae-labs:cost-allocation:Service
203205 Value: sundae-sync-v2
204206
205- SundaeSyncInstances:
206- Type: 'AWS::EC2::EC2Fleet'
207- Properties:
208- ExcessCapacityTerminationPolicy: 'termination'
209- TagSpecifications:
210- - ResourceType: 'instance'
211- Tags:
212- - Key: sundae-labs:cost-allocation:Service
213- Value: sundae-sync-v2
214- TargetCapacitySpecification:
215- TotalTargetCapacity: 2
216- OnDemandTargetCapacity: 1
217- DefaultTargetCapacityType: 'spot'
218- LaunchTemplateConfigs:
219- - LaunchTemplateSpecification:
220- LaunchTemplateId: !Ref SundaeSyncLaunchTemplate
221- Version: $Latest
222- Overrides: !FindInMap [Env, !Ref Env, Subnets]
207+ SundaeSyncInstance1:
208+ Type: AWS::EC2::Instance
209+ Properties:
210+ LaunchTemplate:
211+ LaunchTemplateId: !Ref SundaeSyncLaunchTemplate
212+ Version: $Latest
213+ NetworkInterfaces:
214+ - DeviceIndex: 0
215+ SubnetId: !FindInMap [Env, !Ref Env, Subnet1]
216+ Tags:
217+ - Key: Name
218+ Value: !Sub "${Env}-sundae-sync-1"
219+ - Key: sundae-labs:cost-allocation:Service
220+ Value: sundae-sync-v2
221+
222+ SundaeSyncInstance2:
223+ Type: AWS::EC2::Instance
224+ Properties:
225+ LaunchTemplate:
226+ LaunchTemplateId: !Ref SundaeSyncLaunchTemplate
227+ Version: $Latest
228+ NetworkInterfaces:
229+ - DeviceIndex: 0
230+ SubnetId: !FindInMap [Env, !Ref Env, Subnet1]
231+ Tags:
232+ - Key: Name
233+ Value: !Sub "${Env}-sundae-sync-2"
234+ - Key: sundae-labs:cost-allocation:Service
235+ Value: sundae-sync-v2
0 commit comments