A repository for an article on bobbyhadz.com
If you use CDK v1, switch to the cdk-v1 branch
-
Clone the repository
-
Install the dependencies
npm install
-
Replace the
YOUR_FUNCTION_NAME
placeholder, in the call tofromFunctionArn
method, with the name of the lambda function you want to import -
Create the CDK stack
npx aws-cdk deploy
-
Open the AWS CloudFormation Console and the stack should be created in your default region
-
Cleanup
npx aws-cdk destroy