You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

cdk-assets

Package Overview
Dependencies
Maintainers
0
Versions
785
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.79
Source
npm
Version published
Weekly downloads
742K
5.09%
Maintainers
0
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

aws

FAQs

Package last updated on 04 Jan 2025

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