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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6312937bd7bbd59a050e7b86775f0021af4edcb5cb4366d87993cc5fa5e04c9 |
|
MD5 | b03cffbccfeecdeb72eed37c731a9013 |
|
BLAKE2b-256 | 990c7be474ac58190e30c47e60c4117e705c68c7f048694c4fbc86b4fa7f4dae |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a48c4107cf5cad10ee72deebb54c360bf31c069e7d1972b61bb92c2bf7b65026 |
|
MD5 | ae26d4e17d0eed4cda79c751c8558dbe |
|
BLAKE2b-256 | 9a0ab8635a0caa5d1f2d815acf2acbd0fdc65003c95855a46e2a8286739095ee |