-
Notifications
You must be signed in to change notification settings - Fork 255
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
Possibility of "adopting" existing AWS resources #41
Comments
Thanks @marcindulak and can you flesh out your proposal a little, please? |
It's just a question about ASO that had to be asked at some point. By "adopting" I mean starting to manage, using ASO, the already existing AWS resources. The term "adopting" is used by pulumi https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi An example use case:
|
Thanks for the clarification @marcindulak. Adopting of existing AWS resources is out of scope, at least for now. I will keep this issue open as a reminder, though for if and when we revisit this topic again. |
Adopting existing resources should be a first class feature. I have two use cases for adopting resources:
|
As discussed on Twitch for Containers Day, posting some thoughts here: adopting/importing resources is also vital for handling failures, and upgrades. ACK holds its state in etcd, and while etcd is stable( and backed up, and replicated, and so on), it can be broken. Importing resources would help a lot in case of disasters or when restoring backups is too lengthy. Another use-case is cell-based architectures or blue-green deployments for cluster versions. Treating clusters as cattle will become very difficult if ACK and its resources cannot be easily moved between clusters. Having a very coddled cluster because it manages "that critical S3 bucket" is... not ideal. On the other hand, this could be a feature: ACK only manages short-lived resources and it should not be used for anything else. Having an import ability would also help migrating to ACK from CF, TF, CDK, or whatever else. At this time ACK can only handle "new" resources. I can see 2 major import scenarios:
Does the CDK set any labels on resources? I am thinking the ALB Ingress Controller / AWS VPC CNI model of using "ownership" labels could maybe work here too + some "taint" commands that stop the reconciler loop on specific sets of resources. EDIT: #82 is also considering labels for lifecycle management |
@Vlaaaaaaad @hikhvar @marcindulak I'd love to invite you to all provide feedback on #639. It's an evolving design for an implementation strategy for this issue. |
Runtime tag v0.1.0 contains the new |
@RedbackThomson remaining items on this task: user docs and e2e tests? |
There are other elements of the proposal that have not been touched, yet, either - such as the validating webhooks. But yes for this version, e2e tests and docs. |
The e2e test framework has been a pending PR for a while - aws-controllers-k8s/test-infra#64 |
Issues go stale after 90d of inactivity. |
/remove-lifecycle stale |
This is implemented now |
Is there any documentation for importing/adopting resources? |
Hi @bwhaley! @RedbackThomson is actually working on documentation of AdoptedResource in this sprint. Expect to see some docs shortly. Thanks for your patience! |
Cloudformation supports importing existing resources https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import.html
A parallel issue is opened in aws/aws-cdk-rfcs#52
The text was updated successfully, but these errors were encountered: