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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0bfa37b62893670d0a679972b9831e4f2b1a58ffff4de45a851edc3dea8e532 |
|
MD5 | fa08b6baf8f773001bc32a2543054b08 |
|
BLAKE2b-256 | e7d278d1ceb2189762d9a36205de9e1b74e95e50bb01a733815580eafe236dcb |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9266c68dd08dcc8f246e6019c20ab9612f07026ed4c482eb03af9d352cac411f |
|
MD5 | 7edd53f77ed1d81d407b6e39b2e170b8 |
|
BLAKE2b-256 | c3723aa3ecface6a18e7e9191083b0ce87e628c1ec5282c5073636ed0b43e8ca |