Skip to content

Instantly share code, notes, and snippets.

@cagingulsen
Created March 1, 2022 21:21
Show Gist options
  • Select an option

  • Save cagingulsen/cb58b0f6423e7124e618d4a428e8c0f3 to your computer and use it in GitHub Desktop.

Select an option

Save cagingulsen/cb58b0f6423e7124e618d4a428e8c0f3 to your computer and use it in GitHub Desktop.
for Production-Ready CDK - CDK Pipelines
import * as cdk from 'aws-cdk-lib';
import { Template } from 'aws-cdk-lib/assertions';
import { LambdaStack } from '../src/lambda-stack';
test('Lambda created', () => {
const app = new cdk.App();
const stack = new LambdaStack(app, 'LambdaStack');
const template = Template.fromStack(stack);
template.resourceCountIs('AWS::Lambda::Function', 1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment