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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4ac889c734a15f3195ab491404b56708423cb64c61471f4be3775e6aff97121 |
|
MD5 | d583573aa866333747e31e8a033311d0 |
|
BLAKE2b-256 | 529fb820058ec76939c2027a0b9433a33eace2b0a9455948ba906346056890c7 |
Close
Hashes for aws_cdk.asset_awscli_v2-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8edfc66484382d8adca239cde3cada0e52cc86478ad24c8b35c2c09f9cde4d78 |
|
MD5 | 2fa2dd76a291222f172a9b6ecf7430a9 |
|
BLAKE2b-256 | 707f58a7e66e216a0ff6343a03cb41992bcbd7192d6f937b51e621ac5007043a |