Skip to content

Commit 4e8a904

Browse files
author
Zvika Badalov
committed
added cluster capacity for further investigation
1 parent 4b8b9e6 commit 4e8a904

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

typescript/ecs/cluster/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class ECSCluster extends cdk.Stack {
2323
/**
2424
* This lines seem to break the synth with the following error:
2525
* Error: There is already a Construct with name 'SsmParameterValue:/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id:C96584B6-F00A-464E-AD19-53AFF4B05118.Parameter' in ECSCluster [MyFirstEcsCluster]
26-
* Hence, commenting out
26+
* This will be investigated and code will be left for now. This will break build however.
2727
*/
2828

29-
// cluster.addCapacity('DefaultAutoScalingGroup', {
30-
// instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.MICRO)
31-
// });
29+
cluster.addCapacity('DefaultAutoScalingGroup', {
30+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.MICRO)
31+
});
3232
}
3333
}
3434

0 commit comments

Comments
 (0)