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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd793699c2a21bb18e09ac9b67da9458e4bd3236172205789187142418d86d3 |
|
MD5 | 6dc6fd41862437efd04007488459bd6f |
|
BLAKE2b-256 | fbabe08f7821dd20970bfadf08275881f4b5f0ba5b9d6196d5b566dc75294ea9 |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3eb899f012d784c6ed9cd5ce764eba2d6b7c1842f0a30af3b0228a27ade5a1f |
|
MD5 | edad8f726555f14f35ec937be902dd45 |
|
BLAKE2b-256 | c5286dd2ede7232979d12145d2e987a684f031cc0f91cccbf3b090588e64fd46 |