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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d0791d6430a3865025147a2852306eb8dd2148005a88949cb5737c741b2625 |
|
MD5 | 0ecccfb5338287528d835a3513c6ef4b |
|
BLAKE2b-256 | b5dff15fde1b8a4a8ff1fe0f785622122c9d224092dcb5efe81beaf612e1e743 |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d47471b710fb9713d01bd6e0eefc6493dd10640567dfcbacfc70766c55a4c7 |
|
MD5 | 7d5904404eff18b7ba27b3f4fd87ab47 |
|
BLAKE2b-256 | 8b2d40b233483b30fceb591975f2229201c6d11d15ba3aaed6e4ca8eb72c93d5 |