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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 716c9ba2b86d0be81fe687c31095b063271fd01743d9cc1c360f8ad011449624 |
|
MD5 | 0434e55e56931a0a7b1e4fb9ed20f9e8 |
|
BLAKE2b-256 | f594625e7c6a43152e8d4e2c2278b291e79544db964c038d082794d9247e816c |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 654fcf8d1d2f496f9cfaea94e9dc3460f1c42d0dce723aaa48a77ee6d3994ba6 |
|
MD5 | 46376b7ee30907db8badc7dbf34bc026 |
|
BLAKE2b-256 | 4d8c77409a868e77637ba33db16663519302e6f0f9cfae86f6107bbb2986c952 |