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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f64b1a2a900a960604d65b3eab11adef66972dfbcb44893a27d40c259f4c53c |
|
MD5 | ddd1a79d362e64bc5ece5c9f9c270ce5 |
|
BLAKE2b-256 | 796540136fde669baa09ab40de889072229d7aad792b74c87cf60f7bb4b363d4 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68d65914e26aa3d284615a352d227e6307dfab8b26e8955c2c2f5fc8b734bb24 |
|
MD5 | 48bb534533152798e9e5993b891288d7 |
|
BLAKE2b-256 | 5cf887aa5dc1aea8afa89693da5b8c015afea35888cb9b2eac73c36d7a12527b |