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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd1966c4d7a43b4e12c0cf6e0ad2f3132e84eea8c3d4e542c75cfe1c4d1b678c |
|
MD5 | 88ff4580570e13a2926a347280aa518c |
|
BLAKE2b-256 | 0fdaf842b0a2a767c2b7be2adb40f01efaaf775dd987143d746f0bcb840d9ff4 |
Close
Hashes for aws_cdk.asset_awscli_v1-2.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b83b2435ac506fe75e3654939f644c675378f199309927fd9a2776f56730f85 |
|
MD5 | 9bcefa436bbe1eb29aa6da9e9e188abc |
|
BLAKE2b-256 | 9d076305ec9c724d574c6e47bc69782044293ab5e27bd806283ce29ac6da27a2 |