An Asset construct that contains the AWS CLI, for use in Lambda Layers
Project description
Asset with AWS CLI v1
---This library is currently under development. Do not use!
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-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d792f59a34d4b3df4e6299a2df96f37b19585b29225e6c9541360f1c4d7c6ae3 |
|
MD5 | 4226a5bcb09340e2833407c7e593bcbd |
|
BLAKE2b-256 | 99eb5475219e88501ae7a1b0a8b2bb3c3d60c1fb94a0b48c4f694e8cdaa59b26 |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6849aafd5ec2751ffb787a99d97f33c03e21d6c53bd767e3864763322f886075 |
|
MD5 | b7bcb9f109ae19be69cb61110e77e357 |
|
BLAKE2b-256 | a1832f19dbb8697413c72ddc917e7f0f53980087c1881cf763309a3e9b62ffc4 |