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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d254248af6ed3b89e4b591548e4aeafdde223303b556a7f4e539d879deaef3b9 |
|
MD5 | 2bedc641f25a16ef65d395757ced5703 |
|
BLAKE2b-256 | 1c14414881d4d21cd95accfcc7bf2e0873faa96f90a3b3e1c85c5cc661e9d69a |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf880cefb3190e96e4c3e2ab116a04a12fb6770fde1d4b783cc3da6ef9832981 |
|
MD5 | 5f88b2b48c2de7b8a1bed5d97e667206 |
|
BLAKE2b-256 | 2a30050a528c92e42c37e43c4bdef5ea5b5d7fc8bf19adf379f6e6927aaad12a |