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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef3cea25d0fc49172480c3795b5b12b0ae05038f81bceb2553987541c0104fb |
|
MD5 | f43b4b2ed947b8ae069216e69176c574 |
|
BLAKE2b-256 | d10f68eb8132f5569c151c9ee6a4e543605b3136b04edcacac9bb97b44e8fb10 |
Close
Hashes for aws_cdk.asset_awscli_v2-2.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3211110a2de54a2e7ec7577a4f712cdf6f30cf82c34deb7b91d12d7cd47803f5 |
|
MD5 | ad8165bb22ae5a5c274007f41756635c |
|
BLAKE2b-256 | ab52da274e1e7075182fff6a0838bfd0981de70dea7d50f9130237b41afd10d6 |