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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7b9e04767e67c96f261b52c48ea777f70675dc2f3966356eb71853f44a22147 |
|
MD5 | e3e3fd0a6e180496950878ed639a5855 |
|
BLAKE2b-256 | a2dcf1f51228b451c7538dcb6d780d5f1aba41fc58ea92f842c2a5c6d61ea995 |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c88336c992d698a324937221e281d82411af2ae6dfd296622ae53721b66bc583 |
|
MD5 | 09a19198260b53bc4a441fb10036d865 |
|
BLAKE2b-256 | ea09acd463652da58f94fcad65511322a9c235a8ef5cd2eb6b3f3fb7d376f980 |