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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bc73a357c0947882d2c8394f2a84aec7ec3e233efa5d4b40750e4f211dbcfff |
|
MD5 | 29d7e48e6a13fcbdd3110add3c5b25d1 |
|
BLAKE2b-256 | 951a5d2f5df4ae0ef2d37afa074a931f91165598220a0191825c55324895a961 |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a9d2fb716680c548ae81846f6f69b00c3714c5ced819f9f307815066597e59b |
|
MD5 | 87aa3a19f5c375c8e9ba110cb96803fe |
|
BLAKE2b-256 | 95e26414e6d21daa13a9fa7f916dced5c350cc467efb971be4a03132bf3b6dc1 |