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

CLI to import terraform config #11

Open
7 tasks
kron4eg opened this issue Aug 27, 2019 · 1 comment
Open
7 tasks

CLI to import terraform config #11

kron4eg opened this issue Aug 27, 2019 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kron4eg
Copy link
Contributor

kron4eg commented Aug 27, 2019

kubeterra import command, when run inside the directory with terraform config should create TerraformConfuguration object.

Files to import:

  • contact all *.tf files -> goes to spec.configuration
  • contact terraform.tfvars + *.auto.tfvars if presented -> goes to spec.values
  • always spec.autoApprove=false
  • always spec.paused=true

Once created, print instructions on how to proceed next.

  • tell about spec.template.env and spec.template.envFrom (to configure credentials)
  • tell about spec.template.volumes and spec.template.volumeMounts to configure some additional files (like ssh keys)
  • tell about spec.paused to unpause the processing of TerraformConfuguration.
@scheeles
Copy link
Contributor

the CLI should be an plugin for kubectl

@kron4eg kron4eg added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants