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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3f7a3a75d34969811b2d9fa3710ff4a2e8b958b81aa5f4298b56b609e6818b2 |
|
MD5 | bea6036f69ddd69792874f35a5aa2376 |
|
BLAKE2b-256 | ad316a1c40da3a59ae2ae010a4d17fb8782e023dbf290002e22fd83a51818d1a |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d9d7253ceb79fb7358a48e771072fbf47c10064d79c3b39cd3e74923f4e126 |
|
MD5 | bf3133bd96c86744a43696b60d94f5b1 |
|
BLAKE2b-256 | bb3a9d67392e9caa74a5a7d0a172298d0d833999150560d7f35d85a7efa938b7 |