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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f5125c8f05440de049ac5d7260ea1cfd52414d64c1952cdb61142169093c6e |
|
MD5 | f95248f5bbd3677289a0c545726d5ff8 |
|
BLAKE2b-256 | 7598e3ae9a936d8b0264c82c16c7fe2217ab7db117e142d2197a730d82707727 |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17aeeb7b97530e88d1d46efbcd18005a94677259a9fb5fafef9408c82968a111 |
|
MD5 | 356bfce9a87ed735c07aea0c09980ace |
|
BLAKE2b-256 | ac3b9a6df5c2921131a5fbd9321491ea6f63bf6fcacb4d782d4b7b33295c9085 |