Categorygithub.com/cdklabs/awscdk-asset-awscli-go/awscliv2/v2
modulepackage
2.0.118
Repository: https://github.com/cdklabs/awscdk-asset-awscli-go.git
Documentation: pkg.go.dev

# README

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
import "github.com/cdklabs/awscdk-asset-awscli-go/awscliv2"
import "github.com/aws/aws-cdk-go/awscdk"
import s3_assets "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var fn function

awscli := awscliv2.NewAwsCliAsset(this, jsii.String("AwsCliCode"))
fn.AddLayers(lambda.NewLayerVersion(this, jsii.String("AwsCliLayer"), &LayerVersionProps{
	Code: lambda.Code_FromBucket(awscli.Bucket, awscli.S3ObjectKey),
}))

The CLI will be installed under /opt/awscli/aws.

# Packages

Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.

# Functions

Checks if `x` is a construct.
No description provided by the author
No description provided by the author

# Interfaces

A CDK Asset construct that contains the AWS CLI.