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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8addb5b7a9c36d8ea6be05fd0330e546229983ecaf376434c5248400e25c1d05 |
|
MD5 | 565a810d420e530a7dcaa3b31315002f |
|
BLAKE2b-256 | 266a45c0fe416b37205569a0009188325b43c4e4654f96e3e121732a115602ba |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d31933fb3325818175ce83c42931dc0b56a22a62d1f640a899e127607edc5e6 |
|
MD5 | 505571f5efebfaefd438fa003d840674 |
|
BLAKE2b-256 | 31729b886264fb6f84fe500ad5de22dfa38418d9b2361d48011bb30e2751a8fc |