segmentio / terraform-provider-segment

Terraform provider for Segment, using the Public API
https://registry.terraform.io/providers/segmentio/segment/latest
MIT License
26 stars 3 forks source link

cli tool to generate terraform resources & state from existing workspace #56

Open macnibblet opened 11 months ago

macnibblet commented 11 months ago

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 commented 11 months ago

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

mr8ock commented 11 months ago

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

cv commented 11 months ago

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 commented 6 months ago

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 commented 3 months ago

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.