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

cdk migrate: FooBarStack could not be generated because VpcId is not a valid property for resource EC2NatGatewayNNN of type AWS::EC2::NatGateway #30872

Open
paolo-galati opened this issue Jul 16, 2024 · 0 comments
Assignees
Labels
bug This issue is a bug. effort/medium Medium work item – several days of effort p1 package/tools Related to AWS CDK Tools or CLI

Comments

@paolo-galati
Copy link

Describe the bug

Attempting to migrate some deployed resources, the command returns the error:

Migrate failed for 'FooBar': FooBarStack could not be generated because VpcId is not a valid property for resource EC2NatGatewayNNN of type AWS::EC2::NatGateway.

The command executed is as follows:

cdk migrate -n FooBar -l java --from-scan new --ignore-errors

Expected Behavior

Generate a CDK stack

Current Behavior

Migrate failed with message:

Migrate failed for 'FooBar': FooBarStack could not be generated because VpcId is not a valid property for resource EC2NatGatewayXXX of type AWS::EC2::NatGateway.

Reproduction Steps

Run cdk migrate -n FooBar -l java --from-scan new --ignore-errors on an account where a NAT gateway is present.

Possible Solution

No workaround found.

Additional Information/Context

No response

CDK CLI Version

2.149.0 (build c8e5924)

Framework Version

No response

Node.js Version

v20.15.1

OS

macOS 14.5

Language

Java

Language Version

Java (21)

Other information

No response

@paolo-galati paolo-galati added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 16, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Jul 16, 2024
@ashishdhingra ashishdhingra added p1 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jul 17, 2024
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. effort/medium Medium work item – several days of effort p1 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

3 participants