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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc954df33c19c63bc61e6b37e5d8053f3a878399214a4ff84bd13df2d677498b |
|
MD5 | 2eda5ebbe2eb5bf1fe915199b5a07e33 |
|
BLAKE2b-256 | 9ca6337645ef0442933f43047f861ad09e829940dc8c05dc0f8abda5eb5df368 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813a2f8360e7b17c83b011cb2f449f1f921524c1af3477240179f29fa393053b |
|
MD5 | 869cae86875e9f66d67464de62a27273 |
|
BLAKE2b-256 | 510de191f997663facef07badae5cd3531bc1f41011ba1e2f0d828d0af8e7eac |