Skip to main content

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

Project description

Asset with AWS CLI v1

---

cdk-constructs: Stable


This module exports a single class called AwsCliAsset which is an s3_assets.Asset that bundles the AWS CLI v1.

Any Lambda Function that uses a LayerVersion created from this Asset must use a Python 3.x runtime.

Usage:

// AwsCliLayer bundles the AWS CLI in a lambda layer
import { AwsCliAsset } from '@aws-cdk/asset-awscli-v1';

declare const fn: lambda.Function;
const awscli = new AwsCliAsset(this, 'AwsCliCode');
fn.addLayers(new lambda.LayerVersion(this, 'AwsCliLayer', {
  code: lambda.Code.fromBucket(awscli.bucket, awscli.s3ObjectKey),
}));

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-v1-2.1.9.tar.gz (13.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cdk.asset_awscli_v1-2.1.9-py3-none-any.whl (13.4 MB view details)

Uploaded Python 3

File details

Details for the file aws-cdk.asset-awscli-v1-2.1.9.tar.gz.

File metadata

  • Download URL: aws-cdk.asset-awscli-v1-2.1.9.tar.gz
  • Upload date:
  • Size: 13.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for aws-cdk.asset-awscli-v1-2.1.9.tar.gz
Algorithm Hash digest
SHA256 8f64b1a2a900a960604d65b3eab11adef66972dfbcb44893a27d40c259f4c53c
MD5 ddd1a79d362e64bc5ece5c9f9c270ce5
BLAKE2b-256 796540136fde669baa09ab40de889072229d7aad792b74c87cf60f7bb4b363d4

See more details on using hashes here.

File details

Details for the file aws_cdk.asset_awscli_v1-2.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk.asset_awscli_v1-2.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 68d65914e26aa3d284615a352d227e6307dfab8b26e8955c2c2f5fc8b734bb24
MD5 48bb534533152798e9e5993b891288d7
BLAKE2b-256 5cf887aa5dc1aea8afa89693da5b8c015afea35888cb9b2eac73c36d7a12527b

See more details on using hashes here.

Supported by

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