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

cdk-assets

Package Overview
Dependencies
Maintainers
1
Versions
672
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-assets

CDK Asset Publishing Tool

  • 2.155.56
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
566K
decreased by-13.49%
Maintainers
1
Weekly downloads
 
Created

What is cdk-assets?

The cdk-assets npm package is a tool used in the AWS Cloud Development Kit (CDK) ecosystem to manage assets. It helps in packaging, uploading, and managing assets such as files, Docker images, and other resources that are part of your CDK applications.

What are cdk-assets's main functionalities?

Packaging Assets

This feature allows you to package local files or directories as assets. The code sample demonstrates how to create an asset from a local directory.

const { Asset } = require('cdk-assets');
const asset = new Asset(this, 'MyAsset', {
  path: path.join(__dirname, 'my-asset-directory')
});

Uploading Assets

This feature enables you to upload packaged assets to an S3 bucket. The code sample shows how to upload an asset after it has been packaged.

const { Asset } = require('cdk-assets');
const asset = new Asset(this, 'MyAsset', {
  path: path.join(__dirname, 'my-asset-directory')
});
asset.upload();

Managing Docker Images

This feature allows you to manage Docker images as assets. The code sample demonstrates how to create a Docker image asset from a local directory containing a Dockerfile.

const { DockerImageAsset } = require('cdk-assets');
const dockerImage = new DockerImageAsset(this, 'MyDockerImage', {
  directory: path.join(__dirname, 'my-docker-directory')
});

Other packages similar to cdk-assets

Keywords

FAQs

Package last updated on 09 Dec 2024

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