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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws-cdk.asset-awscli-v2-2.0.10.tar.gz.
File metadata
- Download URL: aws-cdk.asset-awscli-v2-2.0.10.tar.gz
- Upload date:
- Size: 53.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94114620a04f6c0b62ca59e56a4572e4515c37ef4d4ef5b5b92b09a0120cac56
|
|
| MD5 |
3d564da7f5e003bbc0e27bc9ed819914
|
|
| BLAKE2b-256 |
87ba9bf171fd00ddd0c8622e2ee58896ef3c377b09effd33a037c2278ecb8601
|
File details
Details for the file aws_cdk.asset_awscli_v2-2.0.10-py3-none-any.whl.
File metadata
- Download URL: aws_cdk.asset_awscli_v2-2.0.10-py3-none-any.whl
- Upload date:
- Size: 53.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ce019d2cf245b4d4c47fb1af9fe7c644090c89350295441346e1baefd7d5ce6
|
|
| MD5 |
a72721d8ea37ffe7228700f8d15f0a74
|
|
| BLAKE2b-256 |
d76d58a5860bd33998a48f25a44651660fae1f9a8f415235d073388a7df7d21f
|