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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 736bf6792a7f06cb8bf4eb77d10eda92597856028aa0119d453dc23222007995 |
|
MD5 | 6669289d6c0a765ccbbc3296f2142cc5 |
|
BLAKE2b-256 | 92bbb870f1f26fa4469dc41f5c8bf4b700d9c9913f3ca4d2f4e0ad7717d63c1f |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5cb0cb72d05382e06a990cfdb32883f1d49a072f187b49df51f86f0caadb4b |
|
MD5 | c0a15786d03dedb14d56bbdae03c90cc |
|
BLAKE2b-256 | 3c1c1a5d59446ed03d06113467376e1a6f2e530475aad94fd1fc71f4230d4818 |