An Asset construct that contains the AWS CLI, for use in Lambda Layers
Project description
Asset with AWS CLI v2
---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 v2.
Usage:
// AwsCliLayer bundles the AWS CLI in a lambda layer
import { AwsCliAsset } from '@aws-cdk/asset-awscli-v2';
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-v2-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d0110a591ca98759fb874bcba87c3b5ea7fb7afd1f02757847abcbf33238bf2 |
|
MD5 | 402c5386363411a53fc78ce79bec2152 |
|
BLAKE2b-256 | b5f53a82cc8dd557f1d20cd319a91151bf2187aa2661be5e8e8ad47846483ab7 |
Close
Hashes for aws_cdk.asset_awscli_v2-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2deb12d3b51768022eb4c5ea4e68592fd226292f3150f19660f2067cc4f16135 |
|
MD5 | f5f48be3e5622a7e03c79786ff72f0d6 |
|
BLAKE2b-256 | afd05490033276ac3537d5cf960858fe8dd3f574e2fc6c30ac92994f2205700a |