Skip to content

Instantly share code, notes, and snippets.

@axelhodler
Created February 23, 2021 05:52
Show Gist options
  • Save axelhodler/7bad33e660f458317f0574a1ca4a6583 to your computer and use it in GitHub Desktop.
Save axelhodler/7bad33e660f458317f0574a1ca4a6583 to your computer and use it in GitHub Desktop.
test('Fargate service is using the default values', () => {
const app = new cdk.App();
const stack = new Cdktests.CdktestsStack(app, 'MyTestStack');
expectCDK(stack).to(haveResource("AWS::ECS::Service",{
LaunchType: 'FARGATE',
DesiredCount: 1,
HealthCheckGracePeriodSeconds: 60
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment