Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cdk-app

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-app

This project contains source code and supporting files for a serverless application that you can deploy with CDK.

  • 1.4.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
222
increased by38.75%
Maintainers
1
Weekly downloads
 
Created
Source

AWS Lambda Powertools for TypeScript examples in CDK

This is a deployable CDK app that deploys AWS Lambda functions as part of a CloudFormation stack. These Lambda functions use the utilities made available as part of AWS Lambda Powertools for TypeScript to demonstrate their usage.

You will need to have a valid AWS Account in order to deploy these resources. These resources may incur costs to your AWS Account. The cost from some services are covered by the AWS Free Tier but not all of them. If you don't have an AWS Account follow these instructions to create one.

The example functions, located in the src folder, are invoked automatically, twice, when deployed using the CDK construct defined in src/example-function.ts. The first invocation demonstrates the effect on logs/metrics/annotations when the Lambda function has a cold start, and the latter without a cold start.

Deploying the stack

  • Navigate to this location of the repo in your terminal (examples/cdk)
  • npm ci
  • npm run cdk deploy --all --profile <YOUR_AWS_PROFILE>

Note: Prior to deploying you may need to run cdk bootstrap aws://<YOU_AWS_ACCOUNT_ID>/<AWS_REGION> --profile <YOUR_AWS_PROFILE> if you have not already bootstrapped your account for CDK.

Viewing Utility Outputs

All utility outputs can be viewed in the Amazon CloudWatch console.

  • Logger output can be found in Logs > Log groups
  • Metrics output can be found in Metrics > All metrics > CdkExample
  • Tracer output can be found in X-Ray traces > Traces

FAQs

Package last updated on 27 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc