-
Notifications
You must be signed in to change notification settings - Fork 4k
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
EC2 fails when importing cdk #31724
Comments
Unsure if fix implemented for #31716 would mitigate this issue. Let's wait for new CDK version containing this fix to be released before we reproduce this issue. |
@matsui20 Good morning. Could you please test it using the latest CDK version Thanks, |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
@ashishdhingra |
This is because |
When I tracked the code, I found the below code update the old template which is referred from CloudFormation deployment with new resources which is made from source code. In the function, it says So, it should be
class ResourceImporter > currentTemplateWithAdditions aws-cdk/packages/aws-cdk/lib/import.ts Lines 231 to 242 in fb74c41
|
Describe the bug
When creating an EC2 in the AWS Management Console and importing it into the cdk using the cdk import command, the following error occurs and prevents importing
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
When executing the cdk import command, you will be prompted for the EC2 instanceID, and if you enter it, the EC2 instance will be imported into the CDK code.
Current Behavior
The following error is output
Reproduction Steps
I created the following typescript in the CDK lib folder and tried to import a service with a definition of “MyInstance_restor”
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.126.0
Framework Version
No response
Node.js Version
18.18.2
OS
WIndows
Language
TypeScript
Language Version
TypeScript 5.5.3
Other information
No response
The text was updated successfully, but these errors were encountered: