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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea8ceab71383ae8c9ffd26af681f60986e3a4535f02981e7670f0373c97f910 |
|
MD5 | 436a1cafab7e5bc1f2a9927c81ba2fba |
|
BLAKE2b-256 | 2a1e05ed184b6fdb55e12f27c1b826880bc8d1c12e89733f74341a6e188822cb |
Close
Hashes for aws_cdk.asset_awscli_v2-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47e60f0fa69027bcff7e720c6425e6648542d733be44ce1483c2fa82c547892b |
|
MD5 | 98428463e8f014e6d962077edc121cce |
|
BLAKE2b-256 | 89a09f5aad9a9c79a721a0da000efd1bc85832d2580d173aae47058496af1291 |