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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef87574761c2c86dd46a1b1509b86d78fe815d3ae11c6477fcc80436b8bc6b1f |
|
MD5 | f057f3b1cbf6b5e2925d1afbde5b57f2 |
|
BLAKE2b-256 | 745a8cd6c90564f883ee4bd764479b8ec564727f9ef9d4d07a4dffb3f1335c44 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e817be3e43c2dc9d9d9ca4df48a35ce911fece40dcc8235978dad6812155cc01 |
|
MD5 | 07189352721c09c468852b588f2788c2 |
|
BLAKE2b-256 | f4edd78c306d764c8b5cd5914151d6fde1d885a94be1fbb129872db6d544c561 |