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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f67a6fb2624b3a17a9032a4380b2fb3b346753c2ceae59bb304d1ab1983c077 |
|
MD5 | ffa7358bf988e95e09a8b19a2d833ee6 |
|
BLAKE2b-256 | b7fcbf59db425c8b4a546a9388a4b17ed990f46ecdaa5294b319acea89f69b2b |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd294a3a0ae520f91d30493ce180e4cd41abcf5115230f7e3bd50522e18ce772 |
|
MD5 | cc296b0f71faf023148076bdc0a3c0dd |
|
BLAKE2b-256 | 0e09e5d4da2c4a5244e8ec828e9493a490ba2213d7655d4845bb35efec294c4f |