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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2886c5f73e1dc58326c262f172df0d74245945738b6e3abbb9a961ea9ca51ee5 |
|
MD5 | a7ca23ba6a78b2b8a755b2ae4bd5ccf5 |
|
BLAKE2b-256 | 546978d535b4f79f58a9f2b3be3f421c44f1ec505e3ece488cdb3407188d8820 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd4663e8635ae4e39199e4607f0de9c09ef22471af64cadac4fd25f2a5c9f32e |
|
MD5 | 7de75fafc0310c731230e227281fad8e |
|
BLAKE2b-256 | 5ea0010ea05821916a0a21822aaaebf51bd203b5d723af52da0490e1883bf2f9 |