Skip to content

Commit

Permalink
Update defaults per TFC
Browse files Browse the repository at this point in the history
  • Loading branch information
biffgaut committed Jan 8, 2022
1 parent 42017cb commit 8ff3d37
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 58 deletions.
34 changes: 0 additions & 34 deletions package-lock.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@
{
"Essential": true,
"Image": "nginx",
"MemoryReservation": 1024,
"MemoryReservation": 512,
"Name": "test-container",
"PortMappings": [
{
Expand All @@ -912,9 +912,9 @@
]
}
],
"Cpu": "512",
"Cpu": "256",
"Family": "allexistingprivatehttptesttaskdefFB96B83E",
"Memory": "1024",
"Memory": "512",
"NetworkMode": "awsvpc",
"RequiresCompatibilities": [
"FARGATE"
Expand Down Expand Up @@ -985,8 +985,8 @@
"Ref": "testclusterDF8B0D19"
},
"DeploymentConfiguration": {
"MaximumPercent": 200,
"MinimumHealthyPercent": 100
"MaximumPercent": 150,
"MinimumHealthyPercent": 75
},
"DesiredCount": 2,
"EnableECSManagedTags": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@
{
"Essential": true,
"Image": "nginx",
"MemoryReservation": 1024,
"MemoryReservation": 512,
"Name": "test-construct-container",
"PortMappings": [
{
Expand All @@ -1182,9 +1182,9 @@
]
}
],
"Cpu": "512",
"Cpu": "256",
"Family": "allnewpublichttptestconstructtaskdefDF932EBD",
"Memory": "1024",
"Memory": "512",
"NetworkMode": "awsvpc",
"RequiresCompatibilities": [
"FARGATE"
Expand Down Expand Up @@ -1255,8 +1255,8 @@
"Ref": "testconstructcluster7B6231C5"
},
"DeploymentConfiguration": {
"MaximumPercent": 200,
"MinimumHealthyPercent": 100
"MaximumPercent": 150,
"MinimumHealthyPercent": 75
},
"DesiredCount": 2,
"EnableECSManagedTags": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@
{
"Essential": true,
"Image": "nginx",
"MemoryReservation": 1024,
"MemoryReservation": 512,
"Name": "test-construct-container",
"PortMappings": [
{
Expand All @@ -1209,9 +1209,9 @@
]
}
],
"Cpu": "512",
"Cpu": "256",
"Family": "allnewtwotargetstestconstructtaskdef8EF55A85",
"Memory": "1024",
"Memory": "512",
"NetworkMode": "awsvpc",
"RequiresCompatibilities": [
"FARGATE"
Expand Down Expand Up @@ -1282,8 +1282,8 @@
"Ref": "testconstructcluster7B6231C5"
},
"DeploymentConfiguration": {
"MaximumPercent": 200,
"MinimumHealthyPercent": 100
"MaximumPercent": 150,
"MinimumHealthyPercent": 75
},
"DesiredCount": 2,
"EnableECSManagedTags": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ export function DefaultFargateServiceProps(
return {
assignPublicIp: false,
desiredCount: 2,
maxHealthyPercent: 200,
minHealthyPercent: 100,
maxHealthyPercent: 150,
minHealthyPercent: 75,
platformVersion: ecs.FargatePlatformVersion.LATEST,
};
}

export function DefaultFargateTaskDefinitionProps(): ecs.FargateTaskDefinitionProps {
return {
cpu: 512,
memoryLimitMiB: 1024,
cpu: 256,
memoryLimitMiB: 512,
};
}

Expand All @@ -52,7 +52,7 @@ export function DefaultApplicationTargetGroupProps(vpc: ec2.IVpc): elb.Applicati

export function DefaultContainerDefinitionProps(): ecs.ContainerDefinitionOptions | any {
return {
memoryReservationMiB: 1024,
memoryReservationMiB: 512,
portMappings: [ { containerPort: 8080 } ],
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ test('Test with all defaults', () => {
Ref: "testclusterDF8B0D19"
},
DeploymentConfiguration: {
MaximumPercent: 200,
MinimumHealthyPercent: 100
MaximumPercent: 150,
MinimumHealthyPercent: 75
},
DesiredCount: 2,
EnableECSManagedTags: false,
Expand Down Expand Up @@ -115,8 +115,8 @@ test('Test with all defaults in isolated VPC', () => {
Ref: "testclusterDF8B0D19"
},
DeploymentConfiguration: {
MaximumPercent: 200,
MinimumHealthyPercent: 100
MaximumPercent: 150,
MinimumHealthyPercent: 75
},
DesiredCount: 2,
EnableECSManagedTags: false,
Expand Down

0 comments on commit 8ff3d37

Please sign in to comment.