Skip to main content

An Asset construct that contains the AWS CLI, for use in Lambda Layers

Project description

Asset with AWS CLI v2

---

cdk-constructs: Experimental


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
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

aws_cdk_asset_awscli_v2-2.0.122.tar.gz (61.6 MB view details)

Uploaded Source

Built Distribution

aws_cdk.asset_awscli_v2-2.0.122-py3-none-any.whl (61.6 MB view details)

Uploaded Python 3

File details

Details for the file aws_cdk_asset_awscli_v2-2.0.122.tar.gz.

File metadata

File hashes

Hashes for aws_cdk_asset_awscli_v2-2.0.122.tar.gz
Algorithm Hash digest
SHA256 ec3f84278ac69c6337253256ccd469c9672608fa166da8d2e40e19af23af45d9
MD5 b4b4af69e59515ad1f0a8c21b138b31c
BLAKE2b-256 505797c5168b5f90aa48594f7f847197e3df6de08d6accd9a7d8c55de4af454d

See more details on using hashes here.

File details

Details for the file aws_cdk.asset_awscli_v2-2.0.122-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk.asset_awscli_v2-2.0.122-py3-none-any.whl
Algorithm Hash digest
SHA256 c0671750359cb5457c5a6955cb00eaea9666c4e10cf11d6c1c9fee92cea32369
MD5 ce723800cf190024aa3657984a294188
BLAKE2b-256 6be504f4459e6d5daf1a89a035d577371864b6916d6ba75701376f3c4936da25

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page