- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.3k
Description
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