Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-lambda-python-alpha: panic: JsiiError: @jsii/kernel.Fault Module '@aws-cdk/aws-lambda-python-alpha' not found #4737

Open
1 task
kaykhan opened this issue Dec 16, 2024 · 11 comments
Labels
bug This issue is a bug. module/kernel Issues affecting the `jsii-kernel` module p2

Comments

@kaykhan
Copy link

kaykhan commented Dec 16, 2024

Describe the bug

I want to deploy a python function using https://docs.aws.amazon.com/cdk/api/v2/docs/aws-lambda-python-alpha-readme.html

However i get the error panic: JsiiError: @jsii/kernel.Fault Module '@aws-cdk/aws-lambda-python-alpha' not found
when i run any cdk command.

I installed using.

go get -u github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2

go: downloading github.com/aws/jsii-runtime-go v1.105.0
go: downloading github.com/aws/constructs-go v0.0.0-20241014125741-52e7ddc71aae
go: downloading github.com/aws/constructs-go/constructs v0.0.0-20210203051210-8754df3d2bfd
go: downloading github.com/cdklabs/cloud-assembly-schema-go v0.0.0-20241216002747-b2fc8a3ba4cb
go: downloading github.com/cdklabs/awscdk-asset-kubectl-go v0.0.0-20241010141422-eef99ab750e0
go: downloading github.com/cdklabs/awscdk-asset-awscli-go/awscliv1 v0.0.13
go: downloading github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20 v0.0.21
go: downloading github.com/cdklabs/awscdk-asset-awscli-go v0.0.0-20241209155413-94cd21215ea0
go: downloading github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.214
go: downloading github.com/cdklabs/awscdk-asset-node-proxy-agent-go v0.0.0-20240903093635-1dfb93ea640b
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/Masterminds/semver/v3 v3.3.1
go: downloading github.com/fatih/color v1.18.0
go: downloading golang.org/x/tools v0.27.0
go: downloading golang.org/x/mod v0.22.0
go: upgraded github.com/Masterminds/semver/v3 v3.3.0 => v3.3.1
go: upgraded github.com/aws/jsii-runtime-go v1.104.0 => v1.105.0
go: upgraded github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.208 => v2.2.214
go: upgraded github.com/fatih/color v1.17.0 => v1.18.0
go: upgraded golang.org/x/mod v0.21.0 => v0.22.0
go: upgraded golang.org/x/tools v0.26.0 => v0.27.0
	DocumentXBRLParserStack(app, fmt.Sprintf("market-data-%s-%s-xbrl-parser", providerName, pipelineName), &CHStreamFilingDocumentLib.DocumentXBRLParserStackProps{
		Environment: environment,
		StackProps: awscdk.StackProps{
			StackName: jsii.String(fmt.Sprintf("market-data-%s-%s-xbrl-parser", providerName, pipelineName)),
			Env:       env(),
		},
		Dependency: CHStreamFilingDocumentLib.DocumentXBRLParserStackDependencyProps{
			PipelineName: pipelineName,
			ProviderName: providerName,
		},
	})
	
	
...
func DocumentXBRLParserStack(scope constructs.Construct, id string, props *DocumentXBRLParserStackProps) awscdk.Stack {
	var sprops awscdk.StackProps
	if props != nil {
		sprops = props.StackProps
	}
	stack := awscdk.NewStack(scope, &id, &sprops)
	name := *stack.StackName()
	pipelineName := props.Dependency.PipelineName
	providerName := props.Dependency.ProviderName
	serviceName := pipelineName + "xbrl-parser"

	awscdklambdapythonalpha.NewPythonFunction(stack, jsii.String(fmt.Sprintf("%s-lfn", name)), &awscdklambdapythonalpha.PythonFunctionProps{
		FunctionName: jsii.String(name),
		Runtime:      awslambda.Runtime_PYTHON_3_8(),
		Entry:        jsii.String(fmt.Sprintf("src/%s/stream/filings/document/xbrl/parser", providerName)),
		Environment: &map[string]*string{
			"ENV":           &props.Environment,
			"STACK_NAME":    &name,
			"SERVICE_NAME":  &serviceName,
			"PIPELINE_NAME": &pipelineName,
			"PROVIDER_NAME": &providerName,
		},
		Timeout:                      awscdk.Duration_Seconds(jsii.Number(60)),
		ReservedConcurrentExecutions: jsii.Number(2),
	})

	return stack
}

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Expect to be able to use awscdklambdapythonalpha construct to deploy a python function in my go code.

Current Behavior

cdk ls --app "go run bin/ch/main.go"

panic: JsiiError: @jsii/kernel.Fault Module '@aws-cdk/aws-lambda-python-alpha' not found

goroutine 1 [running]:
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0x10147a0?, 0x617a180?, 0x10?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:207 +0x6e6
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0xfff720?, 0xc00052a388?, 0x4?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:203 +0x59b
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0xf246a0?, 0xc0006ca9d0?, 0x4?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:189 +0x8e7
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0xf246e0?, 0xc0006ca788?, 0x4ab405?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:189 +0x8e7
github.com/aws/jsii-runtime-go/runtime.convertArguments({0xc0006bbaa8, 0x3, 0x10195a0?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/runtime/runtime.go:381 +0xef
github.com/aws/jsii-runtime-go/runtime.Create({0x122db8d, 0x27}, {0xc0006bbaa8, 0x3, 0x3}, {0x11cf800, 0xc000549a00})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/runtime/runtime.go:196 +0xb50
github.com/aws/aws-cdk-go/awscdklambdagoalpha/v2.NewGoFunction({0x7f4ca1c38a20, 0xc000527dd0}, 0xc000549770, 0xc0006ca788)
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/aws-cdk-go/awscdklambdagoalpha/[email protected]/GoFunction.go:511 +0x112
market-data/lib/ch/filings.FilingsStreamProcessorStack({0x7f4ca1c38938, 0xc0005124d0}, {0xc0004f6de0, 0x27}, 0xc0000e2c60)
        /home/kay/kay/market-data/lib/ch/filing_stream_processor.go:58 +0x9bd
main.main()
        /home/kay/kay/market-data/bin/ch/main.go:32 +0x539
exit status 2
Subprocess exited with error 1

Reproduction Steps

go get -u github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.173.1 (build 4eac959)

Framework Version

No response

Node.js Version

20.14

OS

Ubuntu 24

Language

Go

Language Version

1.23.3

Other information

No response

@kaykhan kaykhan added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 16, 2024
@ashishdhingra ashishdhingra self-assigned this Dec 16, 2024
@ashishdhingra ashishdhingra added p2 investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Dec 16, 2024
@ashishdhingra
Copy link
Contributor

@kaykhan Good morning. If you check https://pkg.go.dev/github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2, the latest version is v2.173.1-alpha.0. Below CDK project works fine:
go.mod

module cdktest-go

go 1.22.0

toolchain go1.22.10

require (
	github.com/aws/aws-cdk-go/awscdk/v2 v2.173.1
	github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0
	github.com/aws/constructs-go/constructs/v10 v10.4.2
	github.com/aws/jsii-runtime-go v1.104.0
)

require (
	github.com/Masterminds/semver/v3 v3.3.0 // indirect
	github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.208 // indirect
	github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3 // indirect
	github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0 // indirect
	github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/v38 v38.0.1 // indirect
	github.com/fatih/color v1.17.0 // indirect
	github.com/mattn/go-colorable v0.1.13 // indirect
	github.com/mattn/go-isatty v0.0.20 // indirect
	github.com/yuin/goldmark v1.4.13 // indirect
	golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
	golang.org/x/mod v0.21.0 // indirect
	golang.org/x/sync v0.8.0 // indirect
	golang.org/x/sys v0.26.0 // indirect
	golang.org/x/tools v0.26.0 // indirect
)

Take note of declaration github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0.

cdktest-go.go

package main

import (
	"github.com/aws/aws-cdk-go/awscdk/v2"
	"github.com/aws/aws-cdk-go/awscdk/v2/awslambda"

	"github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2"
	"github.com/aws/constructs-go/constructs/v10"
	"github.com/aws/jsii-runtime-go"
)

type CdktestGoStackProps struct {
	awscdk.StackProps
}

func NewCdktestGoStack(scope constructs.Construct, id string, props *CdktestGoStackProps) awscdk.Stack {
	var sprops awscdk.StackProps
	if props != nil {
		sprops = props.StackProps
	}
	stack := awscdk.NewStack(scope, &id, &sprops)

	awscdklambdapythonalpha.NewPythonFunction(stack, jsii.String("MyFunction"), &awscdklambdapythonalpha.PythonFunctionProps{
		Entry: jsii.String("./lib/lambda"),
		Runtime: awslambda.Runtime_PYTHON_3_8(),
		Index: jsii.String("testlambda.py"),
		Handler: jsii.String("lambda_handler"),
	})
	return stack
}

func main() {
	defer jsii.Close()

	app := awscdk.NewApp(nil)

	NewCdktestGoStack(app, "CdktestGoStack", &CdktestGoStackProps{
		awscdk.StackProps{
			Env: env(),
		},
	})

	app.Synth(nil)
}

// env determines the AWS environment (account+region) in which our stack is to
// be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html
func env() *awscdk.Environment {
	// If unspecified, this stack will be "environment-agnostic".
	// Account/Region-dependent features and context lookups will not work, but a
	// single synthesized template can be deployed anywhere.
	//---------------------------------------------------------------------------
	return nil

	// Uncomment if you know exactly what account and region you want to deploy
	// the stack to. This is the recommendation for production stacks.
	//---------------------------------------------------------------------------
	// return &awscdk.Environment{
	//  Account: jsii.String("123456789012"),
	//  Region:  jsii.String("us-east-1"),
	// }

	// Uncomment to specialize this stack for the AWS Account and Region that are
	// implied by the current CLI configuration. This is recommended for dev
	// stacks.
	//---------------------------------------------------------------------------
	// return &awscdk.Environment{
	//  Account: jsii.String(os.Getenv("CDK_DEFAULT_ACCOUNT")),
	//  Region:  jsii.String(os.Getenv("CDK_DEFAULT_REGION")),
	// }
}

lib/lambda/testlambda.py

import boto3
import botocore

def lambda_handler(event, context):
   print(f'boto3 version: {boto3.__version__}')
   print(f'botocore version: {botocore.__version__}')

Before running cdk synth, command go get was executed (this also updated go.sum):

go: downloading github.com/fatih/color v1.17.0
go: downloading golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
go: downloading golang.org/x/tools v0.26.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.208
go: downloading github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3
go: downloading github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0
go: downloading github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/v38 v38.0.1
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading golang.org/x/sys v0.26.0
go: golang.org/x/[email protected] requires go >= 1.22.0; switching to go1.22.10
go: downloading go1.22.10 (darwin/arm64)
go: downloading golang.org/x/tools v0.26.0
go: downloading golang.org/x/mod v0.21.0
go: downloading github.com/yuin/goldmark v1.4.13
go: downloading golang.org/x/sync v0.8.0
go: upgraded go 1.18 => 1.22.0
go: added toolchain go1.22.10

Please check if github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0 is properly declared in go.mod.

Thanks,
Ashish

@ashishdhingra ashishdhingra added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed p2 investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Dec 16, 2024
@kaykhan
Copy link
Author

kaykhan commented Dec 16, 2024

@kaykhan Good morning. If you check https://pkg.go.dev/github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2, the latest version is v2.173.1-alpha.0. Below CDK project works fine: go.mod

module cdktest-go

go 1.22.0

toolchain go1.22.10

require (
	github.com/aws/aws-cdk-go/awscdk/v2 v2.173.1
	github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0
	github.com/aws/constructs-go/constructs/v10 v10.4.2
	github.com/aws/jsii-runtime-go v1.104.0
)

require (
	github.com/Masterminds/semver/v3 v3.3.0 // indirect
	github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.208 // indirect
	github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3 // indirect
	github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0 // indirect
	github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/v38 v38.0.1 // indirect
	github.com/fatih/color v1.17.0 // indirect
	github.com/mattn/go-colorable v0.1.13 // indirect
	github.com/mattn/go-isatty v0.0.20 // indirect
	github.com/yuin/goldmark v1.4.13 // indirect
	golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
	golang.org/x/mod v0.21.0 // indirect
	golang.org/x/sync v0.8.0 // indirect
	golang.org/x/sys v0.26.0 // indirect
	golang.org/x/tools v0.26.0 // indirect
)

Take note of declaration github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0.

cdktest-go.go

package main

import (
	"github.com/aws/aws-cdk-go/awscdk/v2"
	"github.com/aws/aws-cdk-go/awscdk/v2/awslambda"

	"github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2"
	"github.com/aws/constructs-go/constructs/v10"
	"github.com/aws/jsii-runtime-go"
)

type CdktestGoStackProps struct {
	awscdk.StackProps
}

func NewCdktestGoStack(scope constructs.Construct, id string, props *CdktestGoStackProps) awscdk.Stack {
	var sprops awscdk.StackProps
	if props != nil {
		sprops = props.StackProps
	}
	stack := awscdk.NewStack(scope, &id, &sprops)

	awscdklambdapythonalpha.NewPythonFunction(stack, jsii.String("MyFunction"), &awscdklambdapythonalpha.PythonFunctionProps{
		Entry: jsii.String("./lib/lambda"),
		Runtime: awslambda.Runtime_PYTHON_3_8(),
		Index: jsii.String("testlambda.py"),
		Handler: jsii.String("lambda_handler"),
	})
	return stack
}

func main() {
	defer jsii.Close()

	app := awscdk.NewApp(nil)

	NewCdktestGoStack(app, "CdktestGoStack", &CdktestGoStackProps{
		awscdk.StackProps{
			Env: env(),
		},
	})

	app.Synth(nil)
}

// env determines the AWS environment (account+region) in which our stack is to
// be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html
func env() *awscdk.Environment {
	// If unspecified, this stack will be "environment-agnostic".
	// Account/Region-dependent features and context lookups will not work, but a
	// single synthesized template can be deployed anywhere.
	//---------------------------------------------------------------------------
	return nil

	// Uncomment if you know exactly what account and region you want to deploy
	// the stack to. This is the recommendation for production stacks.
	//---------------------------------------------------------------------------
	// return &awscdk.Environment{
	//  Account: jsii.String("123456789012"),
	//  Region:  jsii.String("us-east-1"),
	// }

	// Uncomment to specialize this stack for the AWS Account and Region that are
	// implied by the current CLI configuration. This is recommended for dev
	// stacks.
	//---------------------------------------------------------------------------
	// return &awscdk.Environment{
	//  Account: jsii.String(os.Getenv("CDK_DEFAULT_ACCOUNT")),
	//  Region:  jsii.String(os.Getenv("CDK_DEFAULT_REGION")),
	// }
}

lib/lambda/testlambda.py

import boto3
import botocore

def lambda_handler(event, context):
   print(f'boto3 version: {boto3.__version__}')
   print(f'botocore version: {botocore.__version__}')

Before running cdk synth, command go get was executed (this also updated go.sum):

go: downloading github.com/fatih/color v1.17.0
go: downloading golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
go: downloading golang.org/x/tools v0.26.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.208
go: downloading github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3
go: downloading github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0
go: downloading github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/v38 v38.0.1
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading golang.org/x/sys v0.26.0
go: golang.org/x/[email protected] requires go >= 1.22.0; switching to go1.22.10
go: downloading go1.22.10 (darwin/arm64)
go: downloading golang.org/x/tools v0.26.0
go: downloading golang.org/x/mod v0.21.0
go: downloading github.com/yuin/goldmark v1.4.13
go: downloading golang.org/x/sync v0.8.0
go: upgraded go 1.18 => 1.22.0
go: added toolchain go1.22.10

Please check if github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0 is properly declared in go.mod.

Thanks, Ashish

go.mod file

go 1.23

toolchain go1.23.3

require (
        github.com/PuerkitoBio/goquery v1.10.0
        github.com/antchfx/htmlquery v1.3.3
        github.com/aws/aws-cdk-go/awscdk/v2 v2.173.1
        github.com/aws/aws-cdk-go/awscdklambdagoalpha/v2 v2.149.0-alpha.0
        github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0
        github.com/aws/aws-lambda-go v1.47.0
        github.com/aws/aws-sdk-go-v2 v1.30.4
        github.com/aws/aws-sdk-go-v2/config v1.27.24
        github.com/aws/aws-sdk-go-v2/service/s3 v1.58.0
        github.com/aws/aws-sdk-go-v2/service/sns v1.31.1
        github.com/aws/aws-sdk-go-v2/service/sqs v1.34.4
        github.com/aws/constructs-go/constructs/v10 v10.4.2
        github.com/aws/jsii-runtime-go v1.105.0
        github.com/gofiber/fiber/v2 v2.52.5
        github.com/hashicorp/go-retryablehttp v0.7.7
        github.com/joho/godotenv v1.5.1
        github.com/lib/pq v1.10.9
        github.com/shopspring/decimal v1.4.0
        github.com/steebchen/prisma-client-go v0.43.0
        github.com/valyala/fasthttp v1.55.0
        go.uber.org/zap v1.27.0
        golang.org/x/net v0.31.0
)

require (
        github.com/Masterminds/semver/v3 v3.3.1 // indirect
        github.com/andybalholm/brotli v1.1.0 // indirect
        github.com/andybalholm/cascadia v1.3.2 // indirect
        github.com/antchfx/xpath v1.3.2 // indirect
        github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.3 // indirect
        github.com/aws/aws-sdk-go-v2/credentials v1.17.24 // indirect
        github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.9 // indirect
        github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16 // indirect
        github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16 // indirect
        github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
        github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.13 // indirect
        github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
        github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.15 // indirect
        github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.15 // indirect
        github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.13 // indirect
        github.com/aws/aws-sdk-go-v2/service/sso v1.22.1 // indirect
        github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.2 // indirect
        github.com/aws/aws-sdk-go-v2/service/sts v1.30.1 // indirect
        github.com/aws/smithy-go v1.20.4 // indirect
        github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.214 // indirect
        github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3 // indirect
        github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0 // indirect
        github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/v38 v38.0.1 // indirect
        github.com/fatih/color v1.18.0 // indirect
        github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
        github.com/google/uuid v1.5.0 // indirect
        github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
        github.com/klauspost/compress v1.17.9 // indirect
        github.com/mattn/go-colorable v0.1.13 // indirect
        github.com/mattn/go-isatty v0.0.20 // indirect
        github.com/mattn/go-runewidth v0.0.15 // indirect
        github.com/rivo/uniseg v0.2.0 // indirect
        github.com/valyala/bytebufferpool v1.0.0 // indirect
        github.com/valyala/tcplisten v1.0.0 // indirect
        github.com/yuin/goldmark v1.4.13 // indirect
        go.uber.org/multierr v1.11.0 // indirect
        golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
        golang.org/x/mod v0.22.0 // indirect
        golang.org/x/sync v0.9.0 // indirect
        golang.org/x/sys v0.27.0 // indirect
        golang.org/x/text v0.20.0 // indirect
        golang.org/x/tools v0.27.0 // indirect
)

I am using github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0

@kaykhan
Copy link
Author

kaykhan commented Dec 16, 2024

I wonder if it has something to do with the github.com/aws/jsii-runtime-go version update with aws-cdk?

unforutantly im not able to donwgrade to version github.com/aws/jsii-runtime-go v1.104.0 like you have in yours as it looks like there is a dependent project relying on the newest v1.105.0

go mod graph | grep jsii-runtime-go 

market-data github.com/aws/[email protected]
github.com/aws/aws-cdk-go/awscdk/[email protected] github.com/aws/[email protected]
github.com/aws/aws-cdk-go/awscdklambdagoalpha/[email protected] github.com/aws/[email protected]
github.com/aws/aws-cdk-go/awscdklambdapythonalpha/[email protected] github.com/aws/[email protected]
github.com/aws/constructs-go/constructs/[email protected] github.com/aws/[email protected]
github.com/aws/[email protected] github.com/Masterminds/semver/[email protected]
github.com/aws/[email protected] github.com/fatih/[email protected]
github.com/aws/[email protected] github.com/mattn/[email protected]
github.com/aws/[email protected] github.com/stretchr/[email protected]
github.com/aws/[email protected] golang.org/x/[email protected]
github.com/aws/[email protected] golang.org/x/[email protected]
github.com/aws/[email protected] github.com/davecgh/[email protected]
github.com/aws/[email protected] github.com/mattn/[email protected]
github.com/aws/[email protected] github.com/pmezard/[email protected]
github.com/aws/[email protected] github.com/yuin/[email protected]
github.com/aws/[email protected] golang.org/x/[email protected]
github.com/aws/[email protected] golang.org/x/[email protected]
github.com/aws/[email protected] golang.org/x/[email protected]
github.com/aws/[email protected] gopkg.in/[email protected]
github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/[email protected] github.com/aws/[email protected]
github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/[email protected] github.com/aws/[email protected]
github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/[email protected] github.com/aws/[email protected]
github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/[email protected] github.com/aws/[email protected]

@ashishdhingra
Copy link
Contributor

I wonder if it has something to do with the github.com/aws/jsii-runtime-go version update with aws-cdk?

@kaykhan Assuming if this is the case, please wait for sometime before trying again. As packages for different languages are released, it might take some time for package managers to get updated.

@ashishdhingra ashishdhingra added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Dec 16, 2024
@kaykhan
Copy link
Author

kaykhan commented Dec 16, 2024

I wonder if it has something to do with the github.com/aws/jsii-runtime-go version update with aws-cdk?

@kaykhan Assuming if this is the case, please wait for sometime before trying again. As packages for different languages are released, it might take some time for package managers to get updated.

v1.105.0 It was released last month, could you try bump it in your sample project and retest?

and again i'm not entirely sure if it the issue, so would be good to confirm

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Dec 16, 2024
@kaykhan
Copy link
Author

kaykhan commented Dec 17, 2024

@ashishdhingra we downgraded to 1.0.4 and still getting the same error.

panic: JsiiError: @jsii/kernel.Fault Module '@aws-cdk/aws-lambda-python-alpha' not found

goroutine 1 [running]:
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0x10147a0?, 0x60e36c0?, 0x10?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:207 +0x6e6
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0xfff720?, 0xc00063c208?, 0x4?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:203 +0x59b
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0xf246a0?, 0xc0006349d0?, 0x4?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:189 +0x8e7
github.com/aws/jsii-runtime-go/internal/kernel.(*Client).CastPtrToRef(0xc000132060, {0xf246e0?, 0xc000634788?, 0x4ab405?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/internal/kernel/conversions.go:189 +0x8e7
github.com/aws/jsii-runtime-go/runtime.convertArguments({0xc000579aa8, 0x3, 0x10195a0?})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/runtime/runtime.go:381 +0xef
github.com/aws/jsii-runtime-go/runtime.Create({0x122db8d, 0x27}, {0xc000579aa8, 0x3, 0x3}, {0x11cf800, 0xc000613910})
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/[email protected]/runtime/runtime.go:196 +0xb50
github.com/aws/aws-cdk-go/awscdklambdagoalpha/v2.NewGoFunction({0x77fb7704d1f8, 0xc000133e78}, 0xc000613680, 0xc000634788)
        /home/kay/go/1.22.4/pkg/mod/github.com/aws/aws-cdk-go/awscdklambdagoalpha/[email protected]/GoFunction.go:511 +0x112
market-data/lib/ch/stream/filings.FilingsStreamProcessorStack({0x77fb7704a8a0, 0xc000632460}, {0xc000432db0, 0x27}, 0xc000442630)
        /home/kay/kay/xyz.trade/market-data/lib/ch/stream/filings/filing_stream_processor.go:58 +0x9bd
main.main()
        /home/kay/kay/xyz.trade/market-data/bin/ch/stream/filings/main.go:32 +0x539
exit status 2
Subprocess exited with error 1
module market-data

go 1.23

toolchain go1.23.3

require (
	github.com/PuerkitoBio/goquery v1.10.0
	github.com/antchfx/htmlquery v1.3.3
	github.com/aws/aws-cdk-go/awscdk/v2 v2.173.1
	github.com/aws/aws-cdk-go/awscdklambdagoalpha/v2 v2.149.0-alpha.0
	github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2 v2.173.1-alpha.0
	github.com/aws/aws-lambda-go v1.47.0
	github.com/aws/aws-sdk-go-v2 v1.30.4
	github.com/aws/aws-sdk-go-v2/config v1.27.24
	github.com/aws/aws-sdk-go-v2/service/s3 v1.58.0
	github.com/aws/aws-sdk-go-v2/service/sns v1.31.1
	github.com/aws/aws-sdk-go-v2/service/sqs v1.34.4
	github.com/aws/constructs-go/constructs/v10 v10.4.2
	github.com/aws/jsii-runtime-go v1.104.0
	github.com/gofiber/fiber/v2 v2.52.5
	github.com/hashicorp/go-retryablehttp v0.7.7
	github.com/joho/godotenv v1.5.1
	github.com/lib/pq v1.10.9
	github.com/shopspring/decimal v1.4.0
	github.com/steebchen/prisma-client-go v0.43.0
	github.com/valyala/fasthttp v1.55.0
	go.uber.org/zap v1.27.0
	golang.org/x/net v0.32.0
)

require (
	github.com/Masterminds/semver/v3 v3.3.1 // indirect
	github.com/andybalholm/brotli v1.1.0 // indirect
	github.com/andybalholm/cascadia v1.3.2 // indirect
	github.com/antchfx/xpath v1.3.2 // indirect
	github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.3 // indirect
	github.com/aws/aws-sdk-go-v2/credentials v1.17.24 // indirect
	github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.9 // indirect
	github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16 // indirect
	github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16 // indirect
	github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
	github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.13 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.15 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.15 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.13 // indirect
	github.com/aws/aws-sdk-go-v2/service/sso v1.22.1 // indirect
	github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.2 // indirect
	github.com/aws/aws-sdk-go-v2/service/sts v1.30.1 // indirect
	github.com/aws/smithy-go v1.20.4 // indirect
	github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.208 // indirect
	github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3 // indirect
	github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0 // indirect
	github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/v38 v38.0.1 // indirect
	github.com/fatih/color v1.18.0 // indirect
	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
	github.com/google/uuid v1.5.0 // indirect
	github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
	github.com/klauspost/compress v1.17.9 // indirect
	github.com/mattn/go-colorable v0.1.13 // indirect
	github.com/mattn/go-isatty v0.0.20 // indirect
	github.com/mattn/go-runewidth v0.0.15 // indirect
	github.com/rivo/uniseg v0.2.0 // indirect
	github.com/valyala/bytebufferpool v1.0.0 // indirect
	github.com/valyala/tcplisten v1.0.0 // indirect
	github.com/yuin/goldmark v1.4.13 // indirect
	go.uber.org/multierr v1.11.0 // indirect
	golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
	golang.org/x/mod v0.22.0 // indirect
	golang.org/x/sync v0.10.0 // indirect
	golang.org/x/sys v0.28.0 // indirect
	golang.org/x/text v0.21.0 // indirect
	golang.org/x/tools v0.28.0 // indirect
)

@kaykhan
Copy link
Author

kaykhan commented Dec 18, 2024

@ashishdhingra Apologise again for another message - but i come with good news - a reproducible minimal example.

https://github.com/kaykhan/aws-lambda-python-alpha-kernal-fault-jsii

cdk ls --app "go run bin/main.go"

The issue occurs when introducing the Bundling.Command hooks in a awscdklambdagoalpha.NewGoFunction construct

https://github.com/kaykhan/aws-lambda-python-alpha-kernal-fault-jsii/blob/main/lib/stacks/golang_stack.go#L29-L31

Why is the above is causing a kernal fault and preventing the awscdklambdapythonalpha.NewPythonFunction is the main issue as the hooks themselves work correctly.

panic: JsiiError: @jsii/kernel.Fault Module '@aws-cdk/aws-lambda-python-alpha' not found

Please do test and confirm the bug and get back to us.

@ashishdhingra ashishdhingra added the needs-reproduction This issue needs reproduction. label Dec 19, 2024
@ashishdhingra
Copy link
Contributor

@ashishdhingra Apologise again for another message - but i come with good news - a reproducible minimal example.

https://github.com/kaykhan/aws-lambda-python-alpha-kernal-fault-jsii

cdk ls --app "go run bin/main.go"

The issue occurs when introducing the Bundling.Command hooks in a awscdklambdagoalpha.NewGoFunction construct

https://github.com/kaykhan/aws-lambda-python-alpha-kernal-fault-jsii/blob/main/lib/stacks/golang_stack.go#L29-L31

Why is the above is causing a kernal fault and preventing the awscdklambdapythonalpha.NewPythonFunction is the main issue as the hooks themselves work correctly.

panic: JsiiError: @jsii/kernel.Fault Module '@aws-cdk/aws-lambda-python-alpha' not found

Please do test and confirm the bug and get back to us.

@kaykhan Good morning. Thanks for opening the issue. This issue was initially reported when using @aws-cdk/aws-lambda-python-alpha module. The above reproduction minimal code makes use of @aws-cdk/aws-lambda-go-alpha module module that sets Bundling > CommandHooks.

Using your sample minimal reproducible code from https://github.com/kaykhan/aws-lambda-python-alpha-kernal-fault-jsii
, running cdk synth works fine (go get command was run first per Tutorial: Create your first AWS CDK app: Go):

#0 building with "default" instance using docker driver

aws/aws-cdk#1 [internal] load build definition from Dockerfile
aws/aws-cdk#1 transferring dockerfile: 1.37kB done
aws/aws-cdk#1 DONE 0.0s

aws/aws-cdk#2 [internal] load metadata for public.ecr.aws/sam/build-python3.8:latest
aws/aws-cdk#2 DONE 0.6s

aws/aws-cdk#3 [internal] load .dockerignore
aws/aws-cdk#3 transferring context: 2B done
aws/aws-cdk#3 DONE 0.0s

aws/aws-cdk#4 [1/2] FROM public.ecr.aws/sam/build-python3.8:latest@sha256:396bafa3347d24e566a02d5ad62f47ec8456f59467166d96f41499a05079782f
aws/aws-cdk#4 resolve public.ecr.aws/sam/build-python3.8:latest@sha256:396bafa3347d24e566a02d5ad62f47ec8456f59467166d96f41499a05079782f 0.0s done
aws/aws-cdk#4 sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 2.10MB / 105.07MB 0.1s
aws/aws-cdk#4 sha256:c04c188a9d995ff3728c4c1daef7d36d8651439479d60ea437c65581960a6c2f 0B / 87.99kB 0.1s
aws/aws-cdk#4 sha256:2854265e87d3f520ee73781f5449cb1b7b93dd547782620b4ea3c026a84cb392 3.48kB / 3.48kB done
aws/aws-cdk#4 sha256:396bafa3347d24e566a02d5ad62f47ec8456f59467166d96f41499a05079782f 743B / 743B done
aws/aws-cdk#4 sha256:6615d8488c39acae82f62be4569bf01e9ab2d6980fc9b50f92ff684cc980f44b 8.33kB / 8.33kB done
aws/aws-cdk#4 sha256:50fa92adbc1b6d9e272221b3ad56bfffa7a91b6af875d8dd91e9c404a3d03678 0B / 417B 0.1s
aws/aws-cdk#4 sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 18.87MB / 105.07MB 0.3s
aws/aws-cdk#4 sha256:c04c188a9d995ff3728c4c1daef7d36d8651439479d60ea437c65581960a6c2f 87.99kB / 87.99kB 0.2s done
aws/aws-cdk#4 sha256:50fa92adbc1b6d9e272221b3ad56bfffa7a91b6af875d8dd91e9c404a3d03678 417B / 417B 0.1s done
aws/aws-cdk#4 sha256:35e8cd243a506790d0fe4ac7e61c71ab19aa4b83441559be52d388b93be5fe78 2.68MB / 2.68MB 0.3s
aws/aws-cdk#4 sha256:e1318558c667cfa5c742bbbcf199869dfcaa9658e0715221d0bc3be65c6dd25c 0B / 56.34MB 0.3s
aws/aws-cdk#4 sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 38.80MB / 105.07MB 0.5s
aws/aws-cdk#4 sha256:35e8cd243a506790d0fe4ac7e61c71ab19aa4b83441559be52d388b93be5fe78 2.68MB / 2.68MB 0.3s done
aws/aws-cdk#4 sha256:e1318558c667cfa5c742bbbcf199869dfcaa9658e0715221d0bc3be65c6dd25c 16.78MB / 56.34MB 0.5s
aws/aws-cdk#4 sha256:7b27dde323bc7a902add6347a485506de16a7365b6c021ac74101972d573559a 9.44MB / 21.07MB 0.5s
aws/aws-cdk#4 sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 51.38MB / 105.07MB 0.6s
aws/aws-cdk#4 sha256:e1318558c667cfa5c742bbbcf199869dfcaa9658e0715221d0bc3be65c6dd25c 25.17MB / 56.34MB 0.6s
aws/aws-cdk#4 sha256:7b27dde323bc7a902add6347a485506de16a7365b6c021ac74101972d573559a 21.07MB / 21.07MB 0.6s
aws/aws-cdk#4 sha256:7b27dde323bc7a902add6347a485506de16a7365b6c021ac74101972d573559a 21.07MB / 21.07MB 0.6s done
aws/aws-cdk#4 sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 97.52MB / 105.07MB 0.9s
aws/aws-cdk#4 sha256:e1318558c667cfa5c742bbbcf199869dfcaa9658e0715221d0bc3be65c6dd25c 56.34MB / 56.34MB 0.9s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 23.07MB / 224.56MB 0.9s
aws/aws-cdk#4 sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 105.07MB / 105.07MB 1.1s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 36.61MB / 224.56MB 1.0s
aws/aws-cdk#4 sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889 2.10MB / 64.95MB 1.1s
aws/aws-cdk#4 sha256:e1318558c667cfa5c742bbbcf199869dfcaa9658e0715221d0bc3be65c6dd25c 56.34MB / 56.34MB 1.0s done
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 75.50MB / 224.56MB 1.3s
aws/aws-cdk#4 sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889 24.12MB / 64.95MB 1.3s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 92.27MB / 224.56MB 1.4s
aws/aws-cdk#4 sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889 41.94MB / 64.95MB 1.4s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 105.91MB / 224.56MB 1.5s
aws/aws-cdk#4 sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889 60.68MB / 64.95MB 1.5s
aws/aws-cdk#4 extracting sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68
aws/aws-cdk#4 sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 105.07MB / 105.07MB 1.5s done
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 119.54MB / 224.56MB 1.6s
aws/aws-cdk#4 sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889 64.95MB / 64.95MB 1.6s
aws/aws-cdk#4 sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3 2.10MB / 71.71MB 1.6s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 132.12MB / 224.56MB 1.7s
aws/aws-cdk#4 sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3 14.68MB / 71.71MB 1.7s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 143.65MB / 224.56MB 1.8s
aws/aws-cdk#4 sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3 28.31MB / 71.71MB 1.8s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 171.97MB / 224.56MB 2.0s
aws/aws-cdk#4 sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3 56.62MB / 71.71MB 2.0s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 185.60MB / 224.56MB 2.1s
aws/aws-cdk#4 sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889 64.95MB / 64.95MB 2.0s done
aws/aws-cdk#4 sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3 70.25MB / 71.71MB 2.1s
aws/aws-cdk#4 sha256:f28cdcebae508daf3cfd995b377378e96530d94522c459cca2fda5fea25e8e3c 5.04kB / 5.04kB 2.1s done
aws/aws-cdk#4 sha256:24011bcedb4e43a4d6ae65a976dee70b6434b311b6644880097962939f70e504 0B / 1.82MB 2.1s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 199.23MB / 224.56MB 2.2s
aws/aws-cdk#4 sha256:24011bcedb4e43a4d6ae65a976dee70b6434b311b6644880097962939f70e504 1.82MB / 1.82MB 2.2s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 214.96MB / 224.56MB 2.3s
aws/aws-cdk#4 sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3 71.71MB / 71.71MB 2.7s done
aws/aws-cdk#4 sha256:24011bcedb4e43a4d6ae65a976dee70b6434b311b6644880097962939f70e504 1.82MB / 1.82MB 2.7s done
aws/aws-cdk#4 sha256:1c609a2f0189dc2e228df0b252d12662b3ca39de93a0585ec4082912b3f0c92f 178.35kB / 178.35kB 3.0s
aws/aws-cdk#4 sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 224.56MB / 224.56MB 4.9s done
aws/aws-cdk#4 sha256:1c609a2f0189dc2e228df0b252d12662b3ca39de93a0585ec4082912b3f0c92f 178.35kB / 178.35kB 4.9s done
aws/aws-cdk#4 sha256:7cc29817bd23a8f8c5e0706e042b5ea0c5e617f290253a1c24678829cecbd22f 0B / 8.78MB 5.0s
aws/aws-cdk#4 sha256:2fe74767f5e826ee42d4e71d84aca9886b2680b4db13b1ac31e36938796069b4 0B / 122.19kB 5.0s
aws/aws-cdk#4 sha256:ceae4d4eea69473aa51df3c1e774b30c795588b4e8fc39535def2ea168341562 259.51kB / 259.51kB 5.0s done
aws/aws-cdk#4 sha256:7cc29817bd23a8f8c5e0706e042b5ea0c5e617f290253a1c24678829cecbd22f 7.34MB / 8.78MB 5.1s
aws/aws-cdk#4 sha256:2fe74767f5e826ee42d4e71d84aca9886b2680b4db13b1ac31e36938796069b4 122.19kB / 122.19kB 5.0s done
aws/aws-cdk#4 sha256:7cc29817bd23a8f8c5e0706e042b5ea0c5e617f290253a1c24678829cecbd22f 8.78MB / 8.78MB 5.2s done
aws/aws-cdk#4 extracting sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 5.0s
aws/aws-cdk#4 extracting sha256:551ede2dc1153693d2bc8a1da0bdbc2cefac8de344eb443daddf6d916dc20c68 6.0s done
aws/aws-cdk#4 extracting sha256:c04c188a9d995ff3728c4c1daef7d36d8651439479d60ea437c65581960a6c2f
aws/aws-cdk#4 extracting sha256:c04c188a9d995ff3728c4c1daef7d36d8651439479d60ea437c65581960a6c2f done
aws/aws-cdk#4 extracting sha256:50fa92adbc1b6d9e272221b3ad56bfffa7a91b6af875d8dd91e9c404a3d03678
aws/aws-cdk#4 extracting sha256:50fa92adbc1b6d9e272221b3ad56bfffa7a91b6af875d8dd91e9c404a3d03678 done
aws/aws-cdk#4 extracting sha256:35e8cd243a506790d0fe4ac7e61c71ab19aa4b83441559be52d388b93be5fe78
aws/aws-cdk#4 extracting sha256:35e8cd243a506790d0fe4ac7e61c71ab19aa4b83441559be52d388b93be5fe78 0.1s done
aws/aws-cdk#4 extracting sha256:e1318558c667cfa5c742bbbcf199869dfcaa9658e0715221d0bc3be65c6dd25c
aws/aws-cdk#4 extracting sha256:e1318558c667cfa5c742bbbcf199869dfcaa9658e0715221d0bc3be65c6dd25c 3.6s done
aws/aws-cdk#4 extracting sha256:7b27dde323bc7a902add6347a485506de16a7365b6c021ac74101972d573559a
aws/aws-cdk#4 extracting sha256:7b27dde323bc7a902add6347a485506de16a7365b6c021ac74101972d573559a 2.0s done
aws/aws-cdk#4 extracting sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d
aws/aws-cdk#4 extracting sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 5.0s
aws/aws-cdk#4 extracting sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 10.1s
aws/aws-cdk#4 extracting sha256:62d634bbe5c27cbccb42592c3d3948d0c021bacde5301821fb46f8d8ada7440d 10.9s done
aws/aws-cdk#4 extracting sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889
aws/aws-cdk#4 extracting sha256:184bc17f5bad2faea24a6f61af22c134b9cc43a81dc824ae853030690b15d889 3.2s done
aws/aws-cdk#4 extracting sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3
aws/aws-cdk#4 extracting sha256:c76574e9f3b20321b2669e37955c66542bcae44079334e58d31183a3dc73f0e3 3.1s done
aws/aws-cdk#4 extracting sha256:f28cdcebae508daf3cfd995b377378e96530d94522c459cca2fda5fea25e8e3c
aws/aws-cdk#4 extracting sha256:f28cdcebae508daf3cfd995b377378e96530d94522c459cca2fda5fea25e8e3c done
aws/aws-cdk#4 extracting sha256:24011bcedb4e43a4d6ae65a976dee70b6434b311b6644880097962939f70e504 0.0s done
aws/aws-cdk#4 extracting sha256:7cc29817bd23a8f8c5e0706e042b5ea0c5e617f290253a1c24678829cecbd22f 0.1s
aws/aws-cdk#4 extracting sha256:7cc29817bd23a8f8c5e0706e042b5ea0c5e617f290253a1c24678829cecbd22f 0.5s done
aws/aws-cdk#4 extracting sha256:1c609a2f0189dc2e228df0b252d12662b3ca39de93a0585ec4082912b3f0c92f
aws/aws-cdk#4 extracting sha256:1c609a2f0189dc2e228df0b252d12662b3ca39de93a0585ec4082912b3f0c92f 0.0s done
aws/aws-cdk#4 extracting sha256:ceae4d4eea69473aa51df3c1e774b30c795588b4e8fc39535def2ea168341562 done
aws/aws-cdk#4 extracting sha256:2fe74767f5e826ee42d4e71d84aca9886b2680b4db13b1ac31e36938796069b4
aws/aws-cdk#4 extracting sha256:2fe74767f5e826ee42d4e71d84aca9886b2680b4db13b1ac31e36938796069b4 done
aws/aws-cdk#4 DONE 34.8s

aws/aws-cdk#5 [2/2] RUN     python -m venv /usr/app/venv &&     mkdir /tmp/pip-cache &&     chmod -R 777 /tmp/pip-cache &&     pip install --upgrade pip &&     mkdir /tmp/poetry-cache &&     chmod -R 777 /tmp/poetry-cache &&     pip install pipenv==2022.4.8 poetry==1.5.1 &&     rm -rf /tmp/pip-cache/* /tmp/poetry-cache/*
aws/aws-cdk#5 4.209 Requirement already satisfied: pip in /usr/app/venv/lib/python3.8/site-packages (23.0.1)
aws/aws-cdk#5 4.367 Collecting pip
aws/aws-cdk#5 4.414   Downloading pip-24.3.1-py3-none-any.whl (1.8 MB)
aws/aws-cdk#5 4.478      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 30.0 MB/s eta 0:00:00
aws/aws-cdk#5 4.521 Installing collected packages: pip
aws/aws-cdk#5 4.521   Attempting uninstall: pip
aws/aws-cdk#5 4.522     Found existing installation: pip 23.0.1
aws/aws-cdk#5 4.765     Uninstalling pip-23.0.1:
aws/aws-cdk#5 4.776       Successfully uninstalled pip-23.0.1
aws/aws-cdk#5 5.701 Successfully installed pip-24.3.1
aws/aws-cdk#5 6.407 Collecting pipenv==2022.4.8
aws/aws-cdk#5 6.447   Downloading pipenv-2022.4.8-py2.py3-none-any.whl.metadata (13 kB)
aws/aws-cdk#5 6.603 Collecting poetry==1.5.1
aws/aws-cdk#5 6.615   Downloading poetry-1.5.1-py3-none-any.whl.metadata (7.0 kB)
aws/aws-cdk#5 6.627 Requirement already satisfied: pip>=18.0 in /usr/app/venv/lib/python3.8/site-packages (from pipenv==2022.4.8) (24.3.1)
aws/aws-cdk#5 6.663 Collecting certifi (from pipenv==2022.4.8)
aws/aws-cdk#5 6.674   Downloading certifi-2024.12.14-py3-none-any.whl.metadata (2.3 kB)
aws/aws-cdk#5 6.682 Requirement already satisfied: setuptools>=36.2.1 in /usr/app/venv/lib/python3.8/site-packages (from pipenv==2022.4.8) (56.0.0)
aws/aws-cdk#5 6.711 Collecting virtualenv-clone>=0.2.5 (from pipenv==2022.4.8)
aws/aws-cdk#5 6.723   Downloading virtualenv_clone-0.5.7-py3-none-any.whl.metadata (2.7 kB)
aws/aws-cdk#5 6.867 Collecting virtualenv (from pipenv==2022.4.8)
aws/aws-cdk#5 6.879   Downloading virtualenv-20.28.0-py3-none-any.whl.metadata (4.4 kB)
aws/aws-cdk#5 6.932 Collecting build<0.11.0,>=0.10.0 (from poetry==1.5.1)
aws/aws-cdk#5 6.943   Downloading build-0.10.0-py3-none-any.whl.metadata (4.1 kB)
aws/aws-cdk#5 6.987 Collecting cachecontrol<0.13.0,>=0.12.9 (from cachecontrol[filecache]<0.13.0,>=0.12.9->poetry==1.5.1)
aws/aws-cdk#5 6.998   Downloading CacheControl-0.12.14-py2.py3-none-any.whl.metadata (2.2 kB)
aws/aws-cdk#5 7.046 Collecting cleo<3.0.0,>=2.0.0 (from poetry==1.5.1)
aws/aws-cdk#5 7.057   Downloading cleo-2.1.0-py3-none-any.whl.metadata (12 kB)
aws/aws-cdk#5 7.086 Collecting crashtest<0.5.0,>=0.4.1 (from poetry==1.5.1)
aws/aws-cdk#5 7.097   Downloading crashtest-0.4.1-py3-none-any.whl.metadata (1.1 kB)
aws/aws-cdk#5 7.308 Collecting dulwich<0.22.0,>=0.21.2 (from poetry==1.5.1)
aws/aws-cdk#5 7.319   Downloading dulwich-0.21.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.3 kB)
aws/aws-cdk#5 7.379 Collecting filelock<4.0.0,>=3.8.0 (from poetry==1.5.1)
aws/aws-cdk#5 7.391   Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
aws/aws-cdk#5 7.424 Collecting html5lib<2.0,>=1.0 (from poetry==1.5.1)
aws/aws-cdk#5 7.435   Downloading html5lib-1.1-py2.py3-none-any.whl.metadata (16 kB)
aws/aws-cdk#5 7.528 Collecting importlib-metadata>=4.4 (from poetry==1.5.1)
aws/aws-cdk#5 7.540   Downloading importlib_metadata-8.5.0-py3-none-any.whl.metadata (4.8 kB)
aws/aws-cdk#5 7.581 Collecting installer<0.8.0,>=0.7.0 (from poetry==1.5.1)
aws/aws-cdk#5 7.591   Downloading installer-0.7.0-py3-none-any.whl.metadata (936 bytes)
aws/aws-cdk#5 7.654 Collecting jsonschema<5.0.0,>=4.10.0 (from poetry==1.5.1)
aws/aws-cdk#5 7.665   Downloading jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
aws/aws-cdk#5 7.765 Collecting keyring<24.0.0,>=23.9.0 (from poetry==1.5.1)
aws/aws-cdk#5 7.776   Downloading keyring-23.13.1-py3-none-any.whl.metadata (20 kB)
aws/aws-cdk#5 7.812 Collecting lockfile<0.13.0,>=0.12.2 (from poetry==1.5.1)
aws/aws-cdk#5 7.822   Downloading lockfile-0.12.2-py2.py3-none-any.whl.metadata (2.4 kB)
aws/aws-cdk#5 7.869 Collecting packaging>=20.4 (from poetry==1.5.1)
aws/aws-cdk#5 7.880   Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
aws/aws-cdk#5 7.909 Collecting pexpect<5.0.0,>=4.7.0 (from poetry==1.5.1)
aws/aws-cdk#5 7.920   Downloading pexpect-4.9.0-py2.py3-none-any.whl.metadata (2.5 kB)
aws/aws-cdk#5 7.960 Collecting pkginfo<2.0.0,>=1.9.4 (from poetry==1.5.1)
aws/aws-cdk#5 7.971   Downloading pkginfo-1.12.0-py3-none-any.whl.metadata (12 kB)
aws/aws-cdk#5 8.021 Collecting platformdirs<4.0.0,>=3.0.0 (from poetry==1.5.1)
aws/aws-cdk#5 8.032   Downloading platformdirs-3.11.0-py3-none-any.whl.metadata (11 kB)
aws/aws-cdk#5 8.092 Collecting poetry-core==1.6.1 (from poetry==1.5.1)
aws/aws-cdk#5 8.104   Downloading poetry_core-1.6.1-py3-none-any.whl.metadata (3.4 kB)
aws/aws-cdk#5 8.141 Collecting poetry-plugin-export<2.0.0,>=1.4.0 (from poetry==1.5.1)
aws/aws-cdk#5 8.152   Downloading poetry_plugin_export-1.8.0-py3-none-any.whl.metadata (2.8 kB)
aws/aws-cdk#5 8.179 Collecting pyproject-hooks<2.0.0,>=1.0.0 (from poetry==1.5.1)
aws/aws-cdk#5 8.190   Downloading pyproject_hooks-1.2.0-py3-none-any.whl.metadata (1.3 kB)
aws/aws-cdk#5 8.258 Collecting requests<3.0,>=2.18 (from poetry==1.5.1)
aws/aws-cdk#5 8.269   Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
aws/aws-cdk#5 8.303 Collecting requests-toolbelt<2,>=0.9.1 (from poetry==1.5.1)
aws/aws-cdk#5 8.316   Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl.metadata (14 kB)
aws/aws-cdk#5 8.362 Collecting shellingham<2.0,>=1.5 (from poetry==1.5.1)
aws/aws-cdk#5 8.373   Downloading shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
aws/aws-cdk#5 8.412 Collecting tomli<3.0.0,>=2.0.1 (from poetry==1.5.1)
aws/aws-cdk#5 8.423   Downloading tomli-2.2.1-py3-none-any.whl.metadata (10 kB)
aws/aws-cdk#5 8.484 Collecting tomlkit<1.0.0,>=0.11.4 (from poetry==1.5.1)
aws/aws-cdk#5 8.495   Downloading tomlkit-0.13.2-py3-none-any.whl.metadata (2.7 kB)
aws/aws-cdk#5 8.551 Collecting trove-classifiers>=2022.5.19 (from poetry==1.5.1)
aws/aws-cdk#5 8.561   Downloading trove_classifiers-2024.10.21.16-py3-none-any.whl.metadata (2.2 kB)
aws/aws-cdk#5 8.638 Collecting urllib3<2.0.0,>=1.26.0 (from poetry==1.5.1)
aws/aws-cdk#5 8.650   Downloading urllib3-1.26.20-py2.py3-none-any.whl.metadata (50 kB)
aws/aws-cdk#5 8.856 Collecting msgpack>=0.5.2 (from cachecontrol<0.13.0,>=0.12.9->cachecontrol[filecache]<0.13.0,>=0.12.9->poetry==1.5.1)
aws/aws-cdk#5 8.867   Downloading msgpack-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)
aws/aws-cdk#5 9.848 Collecting rapidfuzz<4.0.0,>=3.0.0 (from cleo<3.0.0,>=2.0.0->poetry==1.5.1)
aws/aws-cdk#5 9.860   Downloading rapidfuzz-3.9.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)
aws/aws-cdk#5 10.06 Collecting six>=1.9 (from html5lib<2.0,>=1.0->poetry==1.5.1)
aws/aws-cdk#5 10.08   Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
aws/aws-cdk#5 10.10 Collecting webencodings (from html5lib<2.0,>=1.0->poetry==1.5.1)
aws/aws-cdk#5 10.11   Downloading webencodings-0.5.1-py2.py3-none-any.whl.metadata (2.1 kB)
aws/aws-cdk#5 10.16 Collecting zipp>=3.20 (from importlib-metadata>=4.4->poetry==1.5.1)
aws/aws-cdk#5 10.17   Downloading zipp-3.20.2-py3-none-any.whl.metadata (3.7 kB)
aws/aws-cdk#5 10.22 Collecting attrs>=22.2.0 (from jsonschema<5.0.0,>=4.10.0->poetry==1.5.1)
aws/aws-cdk#5 10.23   Downloading attrs-24.3.0-py3-none-any.whl.metadata (11 kB)
aws/aws-cdk#5 10.31 Collecting importlib-resources>=1.4.0 (from jsonschema<5.0.0,>=4.10.0->poetry==1.5.1)
aws/aws-cdk#5 10.33   Downloading importlib_resources-6.4.5-py3-none-any.whl.metadata (4.0 kB)
aws/aws-cdk#5 10.37 Collecting jsonschema-specifications>=2023.03.6 (from jsonschema<5.0.0,>=4.10.0->poetry==1.5.1)
aws/aws-cdk#5 10.38   Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
aws/aws-cdk#5 10.41 Collecting pkgutil-resolve-name>=1.3.10 (from jsonschema<5.0.0,>=4.10.0->poetry==1.5.1)
aws/aws-cdk#5 10.42   Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl.metadata (624 bytes)
aws/aws-cdk#5 10.48 Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.10.0->poetry==1.5.1)
aws/aws-cdk#5 10.49   Downloading referencing-0.35.1-py3-none-any.whl.metadata (2.8 kB)
aws/aws-cdk#5 10.88 Collecting rpds-py>=0.7.1 (from jsonschema<5.0.0,>=4.10.0->poetry==1.5.1)
aws/aws-cdk#5 10.89   Downloading rpds_py-0.20.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.2 kB)
aws/aws-cdk#5 10.93 Collecting jaraco.classes (from keyring<24.0.0,>=23.9.0->poetry==1.5.1)
aws/aws-cdk#5 10.94   Downloading jaraco.classes-3.4.0-py3-none-any.whl.metadata (2.6 kB)
aws/aws-cdk#5 10.99 Collecting SecretStorage>=3.2 (from keyring<24.0.0,>=23.9.0->poetry==1.5.1)
aws/aws-cdk#5 11.00   Downloading SecretStorage-3.3.3-py3-none-any.whl.metadata (4.0 kB)
aws/aws-cdk#5 11.03 Collecting jeepney>=0.4.2 (from keyring<24.0.0,>=23.9.0->poetry==1.5.1)
aws/aws-cdk#5 11.04   Downloading jeepney-0.8.0-py3-none-any.whl.metadata (1.3 kB)
aws/aws-cdk#5 11.13 Collecting ptyprocess>=0.5 (from pexpect<5.0.0,>=4.7.0->poetry==1.5.1)
aws/aws-cdk#5 11.14   Downloading ptyprocess-0.7.0-py2.py3-none-any.whl.metadata (1.3 kB)
aws/aws-cdk#5 11.16 INFO: pip is looking at multiple versions of poetry-plugin-export to determine which version is compatible with other requirements. This could take a while.
aws/aws-cdk#5 11.16 Collecting poetry-plugin-export<2.0.0,>=1.4.0 (from poetry==1.5.1)
aws/aws-cdk#5 11.17   Downloading poetry_plugin_export-1.7.1-py3-none-any.whl.metadata (2.8 kB)
aws/aws-cdk#5 11.21   Downloading poetry_plugin_export-1.7.0-py3-none-any.whl.metadata (2.8 kB)
aws/aws-cdk#5 11.23   Downloading poetry_plugin_export-1.6.0-py3-none-any.whl.metadata (2.8 kB)
aws/aws-cdk#5 11.26   Downloading poetry_plugin_export-1.5.0-py3-none-any.whl.metadata (2.7 kB)
aws/aws-cdk#5 11.42 Collecting charset-normalizer<4,>=2 (from requests<3.0,>=2.18->poetry==1.5.1)
aws/aws-cdk#5 11.43   Downloading charset_normalizer-3.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (34 kB)
aws/aws-cdk#5 11.48 Collecting idna<4,>=2.5 (from requests<3.0,>=2.18->poetry==1.5.1)
aws/aws-cdk#5 11.49   Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
aws/aws-cdk#5 11.58 Collecting distlib<1,>=0.3.7 (from virtualenv->pipenv==2022.4.8)
aws/aws-cdk#5 11.59   Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
aws/aws-cdk#5 11.96 Collecting cryptography>=2.0 (from SecretStorage>=3.2->keyring<24.0.0,>=23.9.0->poetry==1.5.1)
aws/aws-cdk#5 11.97   Downloading cryptography-44.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.7 kB)
aws/aws-cdk#5 12.03 Collecting more-itertools (from jaraco.classes->keyring<24.0.0,>=23.9.0->poetry==1.5.1)
aws/aws-cdk#5 12.04   Downloading more_itertools-10.5.0-py3-none-any.whl.metadata (36 kB)
aws/aws-cdk#5 12.23 Collecting cffi>=1.12 (from cryptography>=2.0->SecretStorage>=3.2->keyring<24.0.0,>=23.9.0->poetry==1.5.1)
aws/aws-cdk#5 12.25   Downloading cffi-1.17.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
aws/aws-cdk#5 12.28 Collecting pycparser (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring<24.0.0,>=23.9.0->poetry==1.5.1)
aws/aws-cdk#5 12.29   Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
aws/aws-cdk#5 12.32 Downloading pipenv-2022.4.8-py2.py3-none-any.whl (3.6 MB)
aws/aws-cdk#5 12.38    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 70.7 MB/s eta 0:00:00
aws/aws-cdk#5 12.40 Downloading poetry-1.5.1-py3-none-any.whl (225 kB)
aws/aws-cdk#5 12.41 Downloading poetry_core-1.6.1-py3-none-any.whl (450 kB)
aws/aws-cdk#5 12.43 Downloading build-0.10.0-py3-none-any.whl (17 kB)
aws/aws-cdk#5 12.45 Downloading CacheControl-0.12.14-py2.py3-none-any.whl (21 kB)
aws/aws-cdk#5 12.47 Downloading cleo-2.1.0-py3-none-any.whl (78 kB)
aws/aws-cdk#5 12.49 Downloading crashtest-0.4.1-py3-none-any.whl (7.6 kB)
aws/aws-cdk#5 12.50 Downloading dulwich-0.21.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (516 kB)
aws/aws-cdk#5 12.52 Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
aws/aws-cdk#5 12.54 Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
aws/aws-cdk#5 12.56 Downloading importlib_metadata-8.5.0-py3-none-any.whl (26 kB)
aws/aws-cdk#5 12.58 Downloading installer-0.7.0-py3-none-any.whl (453 kB)
aws/aws-cdk#5 12.60 Downloading jsonschema-4.23.0-py3-none-any.whl (88 kB)
aws/aws-cdk#5 12.61 Downloading keyring-23.13.1-py3-none-any.whl (37 kB)
aws/aws-cdk#5 12.63 Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
aws/aws-cdk#5 12.65 Downloading packaging-24.2-py3-none-any.whl (65 kB)
aws/aws-cdk#5 12.67 Downloading pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
aws/aws-cdk#5 12.68 Downloading pkginfo-1.12.0-py3-none-any.whl (32 kB)
aws/aws-cdk#5 12.70 Downloading platformdirs-3.11.0-py3-none-any.whl (17 kB)
aws/aws-cdk#5 12.72 Downloading poetry_plugin_export-1.5.0-py3-none-any.whl (10 kB)
aws/aws-cdk#5 12.74 Downloading pyproject_hooks-1.2.0-py3-none-any.whl (10 kB)
aws/aws-cdk#5 12.75 Downloading requests-2.32.3-py3-none-any.whl (64 kB)
aws/aws-cdk#5 12.77 Downloading certifi-2024.12.14-py3-none-any.whl (164 kB)
aws/aws-cdk#5 12.79 Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
aws/aws-cdk#5 12.80 Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
aws/aws-cdk#5 12.82 Downloading tomli-2.2.1-py3-none-any.whl (14 kB)
aws/aws-cdk#5 12.84 Downloading tomlkit-0.13.2-py3-none-any.whl (37 kB)
aws/aws-cdk#5 12.86 Downloading trove_classifiers-2024.10.21.16-py3-none-any.whl (13 kB)
aws/aws-cdk#5 12.87 Downloading urllib3-1.26.20-py2.py3-none-any.whl (144 kB)
aws/aws-cdk#5 12.89 Downloading virtualenv-20.28.0-py3-none-any.whl (4.3 MB)
aws/aws-cdk#5 12.93    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 130.7 MB/s eta 0:00:00
aws/aws-cdk#5 12.94 Downloading virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
aws/aws-cdk#5 12.95 Downloading attrs-24.3.0-py3-none-any.whl (63 kB)
aws/aws-cdk#5 12.97 Downloading charset_normalizer-3.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (143 kB)
aws/aws-cdk#5 12.99 Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
aws/aws-cdk#5 13.01 Downloading idna-3.10-py3-none-any.whl (70 kB)
aws/aws-cdk#5 13.03 Downloading importlib_resources-6.4.5-py3-none-any.whl (36 kB)
aws/aws-cdk#5 13.04 Downloading jeepney-0.8.0-py3-none-any.whl (48 kB)
aws/aws-cdk#5 13.06 Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
aws/aws-cdk#5 13.08 Downloading msgpack-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (381 kB)
aws/aws-cdk#5 13.09 Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)
aws/aws-cdk#5 13.11 Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
aws/aws-cdk#5 13.13 Downloading rapidfuzz-3.9.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB)
aws/aws-cdk#5 13.16    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 122.1 MB/s eta 0:00:00
aws/aws-cdk#5 13.17 Downloading referencing-0.35.1-py3-none-any.whl (26 kB)
aws/aws-cdk#5 13.19 Downloading rpds_py-0.20.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (360 kB)
aws/aws-cdk#5 13.21 Downloading SecretStorage-3.3.3-py3-none-any.whl (15 kB)
aws/aws-cdk#5 13.22 Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
aws/aws-cdk#5 13.24 Downloading zipp-3.20.2-py3-none-any.whl (9.2 kB)
aws/aws-cdk#5 13.26 Downloading jaraco.classes-3.4.0-py3-none-any.whl (6.8 kB)
aws/aws-cdk#5 13.27 Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
aws/aws-cdk#5 13.29 Downloading cryptography-44.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB)
aws/aws-cdk#5 13.33    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.1/4.1 MB 113.5 MB/s eta 0:00:00
aws/aws-cdk#5 13.34 Downloading more_itertools-10.5.0-py3-none-any.whl (60 kB)
aws/aws-cdk#5 13.36 Downloading cffi-1.17.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (446 kB)
aws/aws-cdk#5 13.38 Downloading pycparser-2.22-py3-none-any.whl (117 kB)
aws/aws-cdk#5 13.64 Installing collected packages: webencodings, trove-classifiers, ptyprocess, lockfile, distlib, zipp, virtualenv-clone, urllib3, tomlkit, tomli, six, shellingham, rpds-py, rapidfuzz, pyproject-hooks, pycparser, poetry-core, platformdirs, pkgutil-resolve-name, pkginfo, pexpect, packaging, msgpack, more-itertools, jeepney, installer, idna, filelock, crashtest, charset-normalizer, certifi, attrs, virtualenv, requests, referencing, jaraco.classes, importlib-resources, importlib-metadata, html5lib, dulwich, cleo, cffi, build, requests-toolbelt, pipenv, jsonschema-specifications, cryptography, cachecontrol, SecretStorage, jsonschema, keyring, poetry-plugin-export, poetry
aws/aws-cdk#5 18.58 Successfully installed SecretStorage-3.3.3 attrs-24.3.0 build-0.10.0 cachecontrol-0.12.14 certifi-2024.12.14 cffi-1.17.1 charset-normalizer-3.4.0 cleo-2.1.0 crashtest-0.4.1 cryptography-44.0.0 distlib-0.3.9 dulwich-0.21.7 filelock-3.16.1 html5lib-1.1 idna-3.10 importlib-metadata-8.5.0 importlib-resources-6.4.5 installer-0.7.0 jaraco.classes-3.4.0 jeepney-0.8.0 jsonschema-4.23.0 jsonschema-specifications-2023.12.1 keyring-23.13.1 lockfile-0.12.2 more-itertools-10.5.0 msgpack-1.1.0 packaging-24.2 pexpect-4.9.0 pipenv-2022.4.8 pkginfo-1.12.0 pkgutil-resolve-name-1.3.10 platformdirs-3.11.0 poetry-1.5.1 poetry-core-1.6.1 poetry-plugin-export-1.5.0 ptyprocess-0.7.0 pycparser-2.22 pyproject-hooks-1.2.0 rapidfuzz-3.9.7 referencing-0.35.1 requests-2.32.3 requests-toolbelt-1.0.0 rpds-py-0.20.1 shellingham-1.5.4 six-1.17.0 tomli-2.2.1 tomlkit-0.13.2 trove-classifiers-2024.10.21.16 urllib3-1.26.20 virtualenv-20.28.0 virtualenv-clone-0.5.7 webencodings-0.5.1 zipp-3.20.2
aws/aws-cdk#5 DONE 19.2s

aws/aws-cdk#6 exporting to image
aws/aws-cdk#6 exporting layers
aws/aws-cdk#6 exporting layers 0.8s done
aws/aws-cdk#6 writing image sha256:99ed28d8f536e13a448508ca0b6b674b7f68d0f3d07a5abc6887dac7a0657ee0 done
aws/aws-cdk#6 naming to docker.io/library/cdk-d08f8bcc79f72d1a1ccacea9535739ebc2bdf99733e1941cfe76ac600cf140f9 done
aws/aws-cdk#6 DONE 0.8s
Bundling asset NewCdkPythonTestAppGoStack/MyFunction/Code/Stage...
sending incremental file list
testlambda.py

sent 281 bytes  received 35 bytes  632.00 bytes/sec
total size is 168  speedup is 0.53
Bundling asset NewCdkGoTestAppGoStack/MyFunction/Code/Stage...
Before bundling: InputDir=/projects, OutputDir=/projects/cdk.out/bundling-temp-e647449a8615eb824cf07fba45b4d1f25fe672318658140862d3afa7fefbe771
after install commands...
Successfully synthesized to /projects/cdk.out
Supply a stack id (NewCdkPythonTestAppGoStack, NewCdkGoTestAppGoStack) to display its template.

Notice your Bundling > CommandHooks being executed per below statements in above output:

  • Before bundling: InputDir=/projects, OutputDir=/projects/cdk.out/bundling-temp-e647449a8615eb824cf07fba45b4d1f25fe672318658140862d3afa7fefbe771
  • after install commands...

Environment details:

  • go version go1.23.4 linux/amd64
  • cdk --version: 2.173.2 (build f8e6207)
  • node --version: v18.20.2

It produced below CloudFormation templates in cdk.out directory:
NewCdkGoTestAppGoStack.template.json

{
 "Resources": {
  "MyFunctionServiceRole3C357FF2": {
   "Type": "AWS::IAM::Role",
   "Properties": {
    "AssumeRolePolicyDocument": {
     "Statement": [
      {
       "Action": "sts:AssumeRole",
       "Effect": "Allow",
       "Principal": {
        "Service": "lambda.amazonaws.com"
       }
      }
     ],
     "Version": "2012-10-17"
    },
    "ManagedPolicyArns": [
     {
      "Fn::Join": [
       "",
       [
        "arn:",
        {
         "Ref": "AWS::Partition"
        },
        ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
       ]
      ]
     }
    ]
   },
   "Metadata": {
    "aws:cdk:path": "NewCdkGoTestAppGoStack/MyFunction/ServiceRole/Resource"
   }
  },
  "MyFunction3BAA72D1": {
   "Type": "AWS::Lambda::Function",
   "Properties": {
    "Code": {
     "S3Bucket": {
      "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
     },
     "S3Key": "6edd379be82f84e013de4cca9d53a3bb281faae816d89a44420c3b9fc23123d1.zip"
    },
    "Handler": "bootstrap",
    "Role": {
     "Fn::GetAtt": [
      "MyFunctionServiceRole3C357FF2",
      "Arn"
     ]
    },
    "Runtime": "provided.al2"
   },
   "DependsOn": [
    "MyFunctionServiceRole3C357FF2"
   ],
   "Metadata": {
    "aws:cdk:path": "NewCdkGoTestAppGoStack/MyFunction/Resource",
    "aws:asset:path": "asset.6edd379be82f84e013de4cca9d53a3bb281faae816d89a44420c3b9fc23123d1",
    "aws:asset:is-bundled": true,
    "aws:asset:property": "Code"
   }
  },
  "CDKMetadata": {
   "Type": "AWS::CDK::Metadata",
   "Properties": {
    "Analytics": "v2:deflate64:H4sIAAAAAAAA/0WOSw6CMBCGz8K+HRSMblUS3eMBzFAKjpSpYdpoQri7QTSuvsX/zGC9y2HMEnyKNnWnHVUwXgKaTuFTriNhD2PpnVVFwzMnJfkVRWwQOMxQksMxms6GI4pVDvuqRigaPkU2gTxPqrTi42Cs+gQuAVvi9lP4E4qGC881Lf5Mo3vcEFbJ/vsrnblU69Z/5bP/T7R+DVkOm9QRx1eKfb3dJHch0kPkQL2FcuEbFmTErvIAAAA="
   },
   "Metadata": {
    "aws:cdk:path": "NewCdkGoTestAppGoStack/CDKMetadata/Default"
   },
   "Condition": "CDKMetadataAvailable"
  }
 },
 "Conditions": {
  "CDKMetadataAvailable": {
   "Fn::Or": [
    {
     "Fn::Or": [
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "af-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-east-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-northeast-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-northeast-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-northeast-3"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-south-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-3"
       ]
      }
     ]
    },
    {
     "Fn::Or": [
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-4"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ca-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ca-west-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "cn-north-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "cn-northwest-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-central-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-north-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-south-2"
       ]
      }
     ]
    },
    {
     "Fn::Or": [
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-west-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-west-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-west-3"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "il-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "me-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "me-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "sa-east-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "us-east-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "us-east-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "us-west-1"
       ]
      }
     ]
    },
    {
     "Fn::Equals": [
      {
       "Ref": "AWS::Region"
      },
      "us-west-2"
     ]
    }
   ]
  }
 },
 "Parameters": {
  "BootstrapVersion": {
   "Type": "AWS::SSM::Parameter::Value<String>",
   "Default": "/cdk-bootstrap/hnb659fds/version",
   "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
  }
 },
 "Rules": {
  "CheckBootstrapVersion": {
   "Assertions": [
    {
     "Assert": {
      "Fn::Not": [
       {
        "Fn::Contains": [
         [
          "1",
          "2",
          "3",
          "4",
          "5"
         ],
         {
          "Ref": "BootstrapVersion"
         }
        ]
       }
      ]
     },
     "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
    }
   ]
  }
 }
}

NewCdkPythonTestAppGoStack.template.json

{
 "Resources": {
  "MyFunctionServiceRole3C357FF2": {
   "Type": "AWS::IAM::Role",
   "Properties": {
    "AssumeRolePolicyDocument": {
     "Statement": [
      {
       "Action": "sts:AssumeRole",
       "Effect": "Allow",
       "Principal": {
        "Service": "lambda.amazonaws.com"
       }
      }
     ],
     "Version": "2012-10-17"
    },
    "ManagedPolicyArns": [
     {
      "Fn::Join": [
       "",
       [
        "arn:",
        {
         "Ref": "AWS::Partition"
        },
        ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
       ]
      ]
     }
    ]
   },
   "Metadata": {
    "aws:cdk:path": "NewCdkPythonTestAppGoStack/MyFunction/ServiceRole/Resource"
   }
  },
  "MyFunction3BAA72D1": {
   "Type": "AWS::Lambda::Function",
   "Properties": {
    "Code": {
     "S3Bucket": {
      "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
     },
     "S3Key": "27f9f3c41bb3edb391df713137c497dd4c43ad7e9c9eb3fbfc1dfc69b6e7f3fc.zip"
    },
    "Handler": "testlambda.lambda_handler",
    "Role": {
     "Fn::GetAtt": [
      "MyFunctionServiceRole3C357FF2",
      "Arn"
     ]
    },
    "Runtime": "python3.8"
   },
   "DependsOn": [
    "MyFunctionServiceRole3C357FF2"
   ],
   "Metadata": {
    "aws:cdk:path": "NewCdkPythonTestAppGoStack/MyFunction/Resource",
    "aws:asset:path": "asset.27f9f3c41bb3edb391df713137c497dd4c43ad7e9c9eb3fbfc1dfc69b6e7f3fc",
    "aws:asset:is-bundled": true,
    "aws:asset:property": "Code"
   }
  },
  "CDKMetadata": {
   "Type": "AWS::CDK::Metadata",
   "Properties": {
    "Analytics": "v2:deflate64:H4sIAAAAAAAA/0WOwQ6CMBBEv4V7uygYvaokng1+gFlLwZWyJW4bNcR/N4DG08tkZ2Yng+UmhyFL8CHaVK12dIHhFNC0Ch9yHgg7GErvrCpqHvlWkp9RxAaB3QglOeyjaW3Yo1jlsLtUCEXNh8gmkOe3Kq34eDdWTYFTwIa4mQp/h6LmwnNFsz/T6PorwiLZfnelI+dq3b/C1fPXcpzE/1Xjl5DlsEodcXym2FXrVXITIn2PHKizUM78APd1o7r6AAAA"
   },
   "Metadata": {
    "aws:cdk:path": "NewCdkPythonTestAppGoStack/CDKMetadata/Default"
   },
   "Condition": "CDKMetadataAvailable"
  }
 },
 "Conditions": {
  "CDKMetadataAvailable": {
   "Fn::Or": [
    {
     "Fn::Or": [
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "af-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-east-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-northeast-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-northeast-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-northeast-3"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-south-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-3"
       ]
      }
     ]
    },
    {
     "Fn::Or": [
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ap-southeast-4"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ca-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "ca-west-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "cn-north-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "cn-northwest-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-central-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-north-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-south-2"
       ]
      }
     ]
    },
    {
     "Fn::Or": [
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-west-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-west-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "eu-west-3"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "il-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "me-central-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "me-south-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "sa-east-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "us-east-1"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "us-east-2"
       ]
      },
      {
       "Fn::Equals": [
        {
         "Ref": "AWS::Region"
        },
        "us-west-1"
       ]
      }
     ]
    },
    {
     "Fn::Equals": [
      {
       "Ref": "AWS::Region"
      },
      "us-west-2"
     ]
    }
   ]
  }
 },
 "Parameters": {
  "BootstrapVersion": {
   "Type": "AWS::SSM::Parameter::Value<String>",
   "Default": "/cdk-bootstrap/hnb659fds/version",
   "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
  }
 },
 "Rules": {
  "CheckBootstrapVersion": {
   "Assertions": [
    {
     "Assert": {
      "Fn::Not": [
       {
        "Fn::Contains": [
         [
          "1",
          "2",
          "3",
          "4",
          "5"
         ],
         {
          "Ref": "BootstrapVersion"
         }
        ]
       }
      ]
     },
     "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
    }
   ]
  }
 }
}

I'm unsure what's the issue in your environment and if we would be able to troubleshoot environment specific issue.

Thanks,
Ashish

@ashishdhingra ashishdhingra added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-reproduction This issue needs reproduction. labels Dec 20, 2024
@kaykhan
Copy link
Author

kaykhan commented Dec 20, 2024

@ashishdhingra Please use the command in my instructions so that it targets the exact application and does not target the default one - cdk ls --app "go run bin/main.go" thank you.

The issue is a conflict when using both @aws-cdk/aws-lambda-go-alpha @aws-cdk/aws-lambda-python-alpha in the same application where @aws-cdk/aws-lambda-go-alpha is using a CommandHook during bundling.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Dec 20, 2024
@ashishdhingra
Copy link
Contributor

ashishdhingra commented Dec 24, 2024

Reproducible with cdk ls --app "go run bin/main.go" on customer provided code. Most likely JSII issue. Transferring to https://github.com/aws/jsii/ repository.

@ashishdhingra ashishdhingra transferred this issue from aws/aws-cdk Dec 24, 2024
@ashishdhingra ashishdhingra removed their assignment Dec 24, 2024
@ashishdhingra ashishdhingra added module/kernel Issues affecting the `jsii-kernel` module p2 labels Dec 24, 2024
@kaykhan
Copy link
Author

kaykhan commented Dec 25, 2024

#4727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. module/kernel Issues affecting the `jsii-kernel` module p2
Projects
None yet
Development

No branches or pull requests

2 participants