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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c0476b03fb13f18b1702dc75ef49e437c2c081822ea1ade2a92c4991772d79e |
|
MD5 | 283a9e7a752316704d6d49657d4f27a0 |
|
BLAKE2b-256 | 5a78d99a29cbbbf459a73de3b9bc2e69f0ac3fbaaf417d91fa17980789358a3e |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d1e945defbb2c55e1a58bf0e5ed52024eaad21b9d54713193b088323cf0ce3 |
|
MD5 | 87d8cd3329e86fcb2cb452527922d462 |
|
BLAKE2b-256 | 15942894641513e08860c865b720348f5c4964523ddc7d4b6e6aceef3dd6c889 |