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:
# Example automatically generated from non-compiling source. May contain errors.
# AwsCliLayer bundles the AWS CLI in a lambda layer
from aws_cdk.asset_awscli_v2 import AwsCliAsset
import aws_cdk.aws_lambda as lambda_
import aws_cdk.aws_s3_assets as s3_assets
from aws_cdk import FileSystem
# fn: lambda.Function
awscli = AwsCliAsset(self, "AwsCliCode")
fn.add_layers(lambda_.LayerVersion(self, "AwsCliLayer",
code=lambda_.Code.from_bucket(awscli.bucket, awscli.s3_object_key)
))
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-2.0.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d95ac3a54dbbbb93e822ce2063862210a75a2f9a751ca8ec00cb5a6033343c |
|
MD5 | 453f2f7e0effdc94bc3bf22eda9882a8 |
|
BLAKE2b-256 | b68e8e87cf726b34b89372c06e87b946d00b8ff8be739be3b555b2e8371ef6c6 |
Close
Hashes for aws_cdk.asset_awscli_v2-2.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e609e6a88faadae05b720c60bbce5ba112c44f0ed5bb36fb2d78a732c4a7c697 |
|
MD5 | 731f81d14a1adea50d73c63cd76a5c2a |
|
BLAKE2b-256 | b1ed2ccd23b220e56977dcc9f7e3b5103d22439da1204bae2f124880f17606bc |