Skip to content

[email protected]: deploy not working due to undefined value #35862

@nicolasalberti00

Description

@nicolasalberti00

Describe the bug

Hi, I get this error when trying to deploy my code via CDK:

github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions

--
../pkg/mod/github.com/aws/aws-cdk-go/awscdk/[email protected]/awsstepfunctions/StateMachineProps.go:65:18: undefined: awsiam
go mod download && go run infra/infra.go: Subprocess exited with error 1

This happens when updating the CDK to the latest version, the issue is not present in version 2.220.0.

Regression Issue

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

Last Known Working CDK Library Version

2.220.0

Expected Behavior

I expect the deploy to work correctly.

Current Behavior

This is the error from the Go CDK:

github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions

--
../pkg/mod/github.com/aws/aws-cdk-go/awscdk/[email protected]/awsstepfunctions/StateMachineProps.go:65:18: undefined: awsiam

Reproduction Steps

Update to version 2.221.0 of the CDK and use the stepfunctions package import and try to deploy the changes via CDK.

Possible Solution

Maybe there is a missing import statement for the awsiam package.

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.221.0

AWS CDK CLI version

2.1021.0

Node.js Version

20.13.1

OS

Ubuntu 24.04

Language

Go

Language Version

1.25.3

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-stepfunctionsRelated to AWS StepFunctionsbugThis issue is a bug.investigatingThis issue is being investigated and/or work is in progress to resolve the issue.p1potential-regressionMarking this issue as a potential regression to be checked by team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions