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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3862ca5b4bab9cc897334d969367c6a04f9378b9b9ca70717b05e5f1b19c4019 |
|
MD5 | 375a4492f1a176c3d3e802b3a0b5638e |
|
BLAKE2b-256 | 773268805a233af1cf580b702f47d98dce47428297cbf00e0addfb06f97d4112 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06ce88b4b14f3ee26d5d113fd84256e51005e67b7c5baee4372f4da74324fe83 |
|
MD5 | 6bcff73579888a35eb7f753932e10d1e |
|
BLAKE2b-256 | 4ab1833930e2ade983e86f933d14866147822d34df4363235b1ed5c54d705347 |