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.63.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c4a11f1b433bf7b219b87a12fd39552b2c2b0819c860556d24fae55fdfe77c8 |
|
MD5 | 7625fda57a366be8990659a76587d2fb |
|
BLAKE2b-256 | 34b4b5b92b43c90185301f99147600c47352ca836c0fc6c2a0df41f822413c5e |
Close
Hashes for aws_cdk.asset_awscli_v2-2.0.63-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19b7d832abc5c8b6ac2b0cd1d7895d71839e6aed1f49e29b23a999804a75e3c4 |
|
MD5 | cdb963bbc1e5916abdbf69804779a38f |
|
BLAKE2b-256 | b1bf23bb19d9854c169ee5a06d71a5511f2c233db15b613ac2f5f23ab74f2e7f |