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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c1300d1a06c552452b5e6ac88f74b201a55f690fdb851ef1fcc38bcc31d01b4 |
|
MD5 | e029229a0faadb722abed4a8625e0536 |
|
BLAKE2b-256 | c651288ea72ef84435a9a6de35a4a8d92b1fedc47d462f04059ec1556202bc22 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08022f8c7138f45068b2e5ca25a24be5c4a852e4c27844d14872e4e12fd22928 |
|
MD5 | d7ba6a912a3c5c8a336d824f515808fd |
|
BLAKE2b-256 | e671ad0d4a0fe6530c77123a1681e78a7d5b35901010198fb05ba4436db5aaec |