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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c21ca1157fbafa490c8d11f2275a5da38583d3fcbdd139cb1765c257854759c3 |
|
MD5 | e933e19149b1a42ade256ef8997c0330 |
|
BLAKE2b-256 | d6b756512adb6a67ff7bbc8a77a8509713926adbc97d723409da8166f2fdf22b |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b6bfc7fc0d8427e2c4a8518dcbe4a9048b67eb71b53336c12c8fa3cbce7f72 |
|
MD5 | bc529f22660311eafea590fcfbce2f4d |
|
BLAKE2b-256 | e6841d7de73d7d8898f1fe88fe6c0c5391509e7eac472e1c3265edccbda94414 |