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 tool to generate terraform resources & state from existing workspace #56

Open
macnibblet opened this issue Oct 12, 2023 · 5 comments

Comments

@macnibblet
Copy link

Is your feature request related to a problem? Please describe.

Increased adoption of the terraform provider

Describe the solution you'd like

CLI Tool to generate terraform for existing WorkSpace as well as importing the existing state

Describe alternatives you've considered

Manually importing all sources/destinations, which would probably be very error-prone

Additional context

I have been waiting for two years for this provider, thank you so much for creating it!

@deanhuynh
Copy link
Contributor

Thanks for the feedback and very happy to finally have a provider for the community! We will take this request into consideration 🙂

@mr8ock
Copy link

mr8ock commented Oct 18, 2023

Same here, we'd love to use the provider without manually importing existing configurations.

@cv
Copy link
Contributor

cv commented Nov 1, 2023

Hi @macnibblet and @mr8ock! Have you given https://developer.hashicorp.com/terraform/language/import/generating-configuration a try yet? I haven't had time to take it for a spin against the Segment provider yet, but it might just work out of the box.

@Oracen
Copy link

Oracen commented Mar 13, 2024

I have tried it. It requires a little massaging here and there to get running, but by and large it has let me migrate a lot of our stuff relatively painlessly. Some discipline is required to swap between dev, staging and prod envs, but you get in the swing of it pretty quickly.

@deanhuynh
Copy link
Contributor

Hey just wanted to pop in here and let y'all know we just launched a feature called Git Sync to public beta that generates a real time config of your workspace in HCL, so it can be used to generate config for your terraform provider. Not all resources are currently supported, but we are actively working on adding more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants