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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3829166117fe6ec6071523aa5b8aae652d24f2f371320ad289f908d7b4c83955 |
|
MD5 | 72d69aed27f656b365188aadc41a0daa |
|
BLAKE2b-256 | 55a320d55939a1068c75ac62e2fd46ca1f9eafecdf28b47e3b2e18b4e0cec6ee |
Close
Hashes for aws_cdk.asset_awscli_v1-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0277ef3db01ff1f18739c76e9d9f6c304a2220813e2e6911acf14eadb783e34 |
|
MD5 | d0ce202bb7b8a4ecca87aaa8f87865a1 |
|
BLAKE2b-256 | 52497603cf9c3c113df947bcce43f753f4b3f9779d632f428ae1893db02e146d |