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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6caf5a078461f096b225345ec4a02776c8e2e3fef9f16fd3db98e644ff545738 |
|
MD5 | 04c1d642d423043103c87ab614761b4e |
|
BLAKE2b-256 | 5303f13eac0e33f0081f3f3698f28a1bd06cbf9baf5004156a96796ad5138979 |
Close
Hashes for aws_cdk.asset_awscli_v2-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16eadcd28ae95e3759b17fe1c8410ac4b89722e45d4678925321381e1e209cca |
|
MD5 | d83e5e6e1224d89d959d3f4e80529469 |
|
BLAKE2b-256 | 26c0574903f645ec12796e4f10b24e74dc5c2c8be696ba36d111af5ca9eac67e |