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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 098a56c4d50473308a6279d82c275dfdd843a3bf885bad5c3413e8d422c3c205 |
|
MD5 | 506cdbca6832f6729ac8bf7c8f2d9875 |
|
BLAKE2b-256 | d17af1c1b42482d20d2a75c16531dbb742d9e83592ea1a385a7f5d2ebe07ba78 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 159411f5e6b70e6b56e741026e941f88cb8223cacc3b879ca504436d8761c5ee |
|
MD5 | e6768bde6c18fd75997ea76267b71f38 |
|
BLAKE2b-256 | b641688a0accfd7edb31180a9818d0209a92270561b6279f402af3bcf11f99e5 |