Skip to main content

An Asset construct that contains the AWS CLI, for use in Lambda Layers

Project description

Asset with AWS CLI v1

---

cdk-constructs: Experimental


This library is currently under development. Do not use!

This module exports a single class called AwsCliAsset which is an s3_assets.Asset that bundles the AWS CLI v1.

Any Lambda Function that uses a LayerVersion created from this Asset must use a Python 3.x runtime.

Usage:

// AwsCliLayer bundles the AWS CLI in a lambda layer
import { AwsCliAsset } from '@aws-cdk/asset-awscli-v1';

declare const fn: lambda.Function;
const awscli = new AwsCliAsset(this, 'AwsCliCode');
fn.addLayers(new lambda.LayerVersion(this, 'AwsCliLayer', {
  code: lambda.Code.fromBucket(awscli.bucket, awscli.s3ObjectKey),
}));

The CLI will be installed under /opt/awscli/aws.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-cdk.asset-awscli-v1-0.0.7.tar.gz (13.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cdk.asset_awscli_v1-0.0.7-py3-none-any.whl (13.3 MB view details)

Uploaded Python 3

File details

Details for the file aws-cdk.asset-awscli-v1-0.0.7.tar.gz.

File metadata

  • Download URL: aws-cdk.asset-awscli-v1-0.0.7.tar.gz
  • Upload date:
  • Size: 13.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for aws-cdk.asset-awscli-v1-0.0.7.tar.gz
Algorithm Hash digest
SHA256 8abe951c068acf112513f327c38c1ff7a15e76189e4c986238f16877fc5ff183
MD5 b10294fdd5f7e8e994addd30936a7bff
BLAKE2b-256 a75ec8601bc21fddde6d5a2d53a8dae6ee825583a6fc51a07b751179a87aa695

See more details on using hashes here.

File details

Details for the file aws_cdk.asset_awscli_v1-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk.asset_awscli_v1-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 142a2c52e4b9b99bfc22c1307f9197f1f876f76329f32b5c3aba4d364f9206f2
MD5 2a93d3fcb18db9297e3f3f5fd26966fd
BLAKE2b-256 a904703f551294c3f933f69ec584f34ff3b87f95c966c2ad941bf88292b32166

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page