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

Feature: implement import method of Terraform Runtime #286

Closed
Tracked by #1205
SparkYuan opened this issue Mar 16, 2023 · 4 comments · Fixed by #1186
Closed
Tracked by #1205

Feature: implement import method of Terraform Runtime #286

SparkYuan opened this issue Mar 16, 2023 · 4 comments · Fixed by #1186
Assignees
Labels
help wanted Extra attention is needed kind/feature Categorizes issue or PR as related to a new feature
Milestone

Comments

@SparkYuan
Copy link
Member

What would you like to be added?

We currently support import K8s resources existing in cluster and Spec(Plan resources) but not existing in kusion_state.json automatically. We also need to support this feature for TF resources.

/pkg/engine/runtime/terraform/terraform_runtime.go#L185

Why is this needed?

Importing TF resources automatically is necessary for our users and can help users to manage all resources they have with kusion.

@SparkYuan SparkYuan added help wanted Extra attention is needed kind/feature Categorizes issue or PR as related to a new feature labels Mar 16, 2023
@SparkYuan
Copy link
Member Author

Import resources is supported by Terraform

https://developer.hashicorp.com/terraform/cli/import

@ekkoful
Copy link

ekkoful commented Apr 11, 2023

How to store TF resources now?Local path or other storage(oss/s3)?

@SparkYuan
Copy link
Member Author

How to store TF resources now?Local path or other storage(oss/s3)?

TF resources will be regarded as normal kusion resources and it will be saved in kusion_stat.json. Currently, kusion supports storing kusion_state.json in many storage types, like the local filesystem, oss, database, etc. You can find more details here pkg/engine/states

If you are already familiar with Terraform, we warmly welcome you to participate in this issue. The TerraformRuntime interface provides several other methods that can assist you with this task. However, if you are new to Kusion and Terraform, we suggest taking a look at this 'good first issue' (#173)

@ekkoful
Copy link

ekkoful commented Apr 11, 2023

OK, I‘m familiar with Terraform. But for kusion I need to be familiar with it

@SparkYuan SparkYuan added this to the 0.9.0 milestone Jul 24, 2023
@SparkYuan SparkYuan changed the title Implement import method of Terraform Runtime Feature: implement import method of Terraform Runtime Sep 12, 2023
@ffforest ffforest modified the milestones: 0.9.0, 0.10.0 Oct 7, 2023
@adohe adohe modified the milestones: 0.10.0, v0.11.0 Jan 19, 2024
@SparkYuan SparkYuan modified the milestones: v0.11.0, v0.12.0 Feb 1, 2024
@liu-hm19 liu-hm19 modified the milestones: v0.12.0, v0.13.0 Jun 12, 2024
@SparkYuan SparkYuan added this to the v0.12.1 milestone Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed kind/feature Categorizes issue or PR as related to a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants