-
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
feat(cli): support CloudFormation simplified resource import #29087
Conversation
maybe revert later
Co-authored-by: Luca Pizzini <[email protected]>
Co-authored-by: Luca Pizzini <[email protected]>
Co-authored-by: Luca Pizzini <[email protected]>
Pull request has been modified.
Co-authored-by: Hogan Bobertz <[email protected]> Co-authored-by: Calvin Combs <[email protected]>
Thanks! I addressed all the comments from you :)
As far as I tested, CFn decides whether a resource is created or imported when we create a changeset. If a resource will be imported, the changeset type for the resource will become |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending a CLI test run.
@comcalvi Thanks! Just for confirmation, have you triggered a cli test? I see the request is still pending. (not really sure how it works though) |
@comcalvi Hi, let me know the integ-test result when you get a chance :) I guess I don't have access to it. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
➡️ PR build request submitted to A maintainer must now check the pipeline and add the |
@tmokmss I mean to help you get this PR across the finish line. first step was to fix the merge conflicts, which are a little bit difficult. I did it locally, but I'm not able to push to this branch. Is there any reason that is the case on your end? It makes me sad because I spent some time trying to fix up the branch for you :(.
i can also start a new branch and we can go from there but im first wondering if there's something quick you can do on your end to ensure that i have push access to your fork. |
Hi @kaizencc, thanks for working on this and sorry I didn't realize it was in conflict. I confirmed that `Allow edits and access to secrets by maintainers' is checked, so I think you should be able to push commits. Not sure about the error, but if this is a blocker, it's okay to create a new branch and PR. I'm excited to see this finally merged :) |
@tmokmss i can't figure it out :/ so i just went ahead and created a new PR to main from your PR. I think you'll still get credit, but i also want to add a coauthor message to the PR description just in case. I'll need an email address associated to your github account to make that happen though. |
@kaizencc thanks for your kindness! You can use this address: |
#32676 was merged |
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #28060.
Reason for this change
This feature allows to automatically import exsting resources with the same physical name, such as S3 bucket, DDB table, etc, during a CFn deployment.
Because resource import is a vital feature for CDK users e.g. to refactor a construct tree, cdk migrate, etc, it would benefit many potential users if cdk natively support it.
Description of changes
This PR adds a CLI option --import-exsting-resources: boolean to cdk deploy command and pass it to createChangeSet API call.
Description of how you validated changes
Added a cli integ test.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license