Skip to content

Commit

Permalink
test: improve speed of ecs integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwwright committed Nov 11, 2023
1 parent 39531ba commit 25d8e0c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,16 @@ class EcsHotswapStack extends cdk.Stack {
environment: {
SOME_VARIABLE: process.env.DYNAMIC_ECS_PROPERTY_VALUE ?? 'environment',
},
healthCheck: {
command: ['CMD-SHELL', 'exit 0'], // fake health check to speed up deployment
interval: cdk.Duration.seconds(5),
},
});
const service = new ecs.FargateService(this, 'service', {
cluster,
taskDefinition,
assignPublicIp: true, // required without NAT to pull image
circuitBreaker: { rollback: true },
circuitBreaker: { rollback: false },
desiredCount,
});

Expand Down

0 comments on commit 25d8e0c

Please sign in to comment.