An Asset construct that contains the AWS CLI, for use in Lambda Layers
Project description
Asset with AWS CLI v1
---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
Built Distribution
Close
Hashes for aws-cdk.asset-awscli-v1-2.1.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 348177aade4fc5fcf199304ee4dadf584cde44f180d7d2651e37436ab7548cac |
|
MD5 | 46d11e9b2cd2f022a43a2435568b9437 |
|
BLAKE2b-256 | 3fba3ca6bc8a6014f5541dcfd7b9264683cb88b0a9a791a6beb00265467d3578 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e776c2ec388acee4dad34486b36365a034c8027ca9ddecc23c0e1595d5c3c8f9 |
|
MD5 | 1b79e50f7cf463e53ad9d25110d5a3a1 |
|
BLAKE2b-256 | 89e8d754a81909b0b498dd7ec526bfae6978dbf73a25dc53155b5485c2aa3f84 |