An Asset construct that contains the AWS CLI, for use in Lambda Layers
Project description
Asset with AWS CLI v1
---This library is currently under development. Do not use!
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-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c48ff6bc1bf7e477b32323fa24074fc2fc5966862af2d42461d8a9d56b18973d |
|
MD5 | 3dcbd8a77e70d574de41d441d67f8fcf |
|
BLAKE2b-256 | 589056ef8b4459fa93cbfa46972fe07f0d94a2ab63fddb1834201093bab00cfa |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c84bb3396c4b9196c593d8a967a83768ba9e756f5bf58a9886553c6af5d249f0 |
|
MD5 | bcd4d8d4929d5e5d247656810c0d4150 |
|
BLAKE2b-256 | cbff9af89ee613517dc99c0face05125745b35fd727e7f1416b1012bb6a220f0 |