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

Allow declarative/CLI method to import pre-existing resources #18022

Closed
2 tasks
RichiCoder1 opened this issue Dec 14, 2021 · 2 comments
Closed
2 tasks

Allow declarative/CLI method to import pre-existing resources #18022

RichiCoder1 opened this issue Dec 14, 2021 · 2 comments
Assignees
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI

Comments

@RichiCoder1
Copy link
Contributor

RichiCoder1 commented Dec 14, 2021

Description

Attempting to transition existing resources from non-CloudFormation (even existing CloudFormation) into the CDK currently is a relatively complicated and manual process that requires synthesizing the stack and going through an error prone process via the CFN CLI or Console.

Use Case

To greatly simplify moving existing resources into the CDK stacks when transitioning from other IaC (or manual) methods of creating resources.

Proposed Solution

In theory, some declarative way like .importResource(<resource-identifier>) on supported resources which gets automatically translated to the appropriate import change set upon either A) a newly created stack or B) if the CDK detects that an import statement is present and there's no underlying resources for a given logical resource in a stack.

Other information

No response

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change
@RichiCoder1 RichiCoder1 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 14, 2021
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Dec 14, 2021
@rix0rrr
Copy link
Contributor

rix0rrr commented Dec 24, 2021

It's not going to be declarative, but @tomas-mazak is cooking something up here: #17666

@rix0rrr rix0rrr closed this as completed Dec 24, 2021
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants