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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f0333d30084d2949a64c150845403acff08ba5bc67e5b28782533a7357bc74 |
|
MD5 | 3570b9c3a0adaf9a99db859a70a76c20 |
|
BLAKE2b-256 | 5016c38f04bd3a7bc7c3726a92fef4f263fa9a5b1b0e6c42d3601f328ee9d88c |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a58f3b22728f797b57a7718d374674af764501228049c739a10a31208437ad62 |
|
MD5 | 0114df1116d2e28c8ac0bc7ed983ed8c |
|
BLAKE2b-256 | a7e41ec8685cbcc879029299c1203f9bde01ff1e1ce1fb5dbc2a587d7cba7afa |