An Asset construct that contains the AWS CLI, for use in Lambda Layers
Project description
Asset with AWS CLI v2
---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 v2.
Usage:
// AwsCliLayer bundles the AWS CLI in a lambda layer
import { AwsCliAsset } from '@aws-cdk/asset-awscli-v2';
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-v2-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c79060fb83fc52d451409b4aa5de9341a018d040388f1ff24ea9d7635e88011 |
|
MD5 | 52f92ae343ceea0c1ae3a15d339d897e |
|
BLAKE2b-256 | e2862b73c16425309c6da2ab67103cbaef6646da555d319600a0ccaa091d7a84 |
Close
Hashes for aws_cdk.asset_awscli_v2-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a37a638a2cd82863ea7da9516110b2320de91d98b2841a473c5a55aee71235b5 |
|
MD5 | aab5763bece3a874b93535b327e13544 |
|
BLAKE2b-256 | 3420e2af0e3163d00036c2675ab884dc2f4360bc371de137b365293716f60fcc |