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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b834bdad69d7df5a5306e837028c9c09cadee5e9b283a7386fb7cc6b2c45cd |
|
MD5 | befc0a69efee36c3b59c81e88baa76cd |
|
BLAKE2b-256 | 81244558e279c8f072d19644e2b3953c509d82baa6cea1c0c7942b2724cca68d |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a1b7883fc4e35472c1939866a5740b17ffc1db4a22c51c998d23b165d9e74af |
|
MD5 | 2ceb68abeb4335efba89e0f3f3b0dc9a |
|
BLAKE2b-256 | 7476d758f867742b3339960b213c81ecfcce212561a129b00045c0c5f70cea13 |