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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce3a3c65999094581ad166ee5b35c2668665fef04684390e1ebcd042118d7fa4 |
|
MD5 | 6a2ef8c42cfe827c6f5364e9d3ebf1da |
|
BLAKE2b-256 | 5fb53a52237b71cc91c69b02f379d4e3be9dbe3ff643383704a42a9182e8991d |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eaca0c9c19da9b8a2319c375f54034d84bfa40f4aef37ab1fc9e53ce23dc34a |
|
MD5 | a71cb8b675d6db2059c56125e76d0ea1 |
|
BLAKE2b-256 | 141613f84a34110b50a9de11d575dcda83f17f65d161d255d6c35cab14d4b95a |