A library that contains the AWS CLI for use in Lambda Layers (Stability: Stable)
Get Started
| Product | Versions |
|---|---|
| .NET |
README
Asset with AWS CLI v1
This module bundles the AWS CLI v1 as a local asset. It exposes
constants ASSET_FILE and LAYER_SOURCE_DIR that can be consumed
via the CDK Asset construct.
Any Lambda Function that uses uses this asset must use a Python 3.x runtime.
Usage:
// AwsCliLayer bundles the AWS CLI in a lambda layer
using Aws.Cdk.Asset.Awscli.V1;
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.S3.Assets;
using Amazon.CDK;
Function fn;
var asset = new Asset(this, "layer-asset", new AssetProps {
Path = ASSET_FILE,
AssetHash = FileSystem.Fingerprint(LAYER_SOURCE_DIR)
});
fn.AddLayers(new LayerVersion(this, "AwsCliLayer", new LayerVersionProps {
Code = Code.FromBucket(asset.Bucket, asset.S3ObjectKey)
}));
The CLI will be installed under /opt/awscli/aws.
Downloads by Version
Similar & Alternative Packages
Hand-picked matching NuGet libraries based on tags & ecosystem
Depended On By
Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.