eddycharly / terraform-provider-kops

Brings kOps into terraform in a fully managed way
Apache License 2.0
85 stars 20 forks source link

Make StateStore an attribute of cluster/ig resources #379

Closed fcrespofastly closed 3 years ago

fcrespofastly commented 3 years ago

Hey there!

Thanks for building this, it's awesome!

We have a use case where we want to create the S3 bucket with terraform, since the kops provider uses the provider object to se the bucket, there's no way to interpolate the created bucket with terraform and therefore we have to hardcode it.

Do you think it's feasible to move the state store configuration to the resource/datasource level?

Thanks!

eddycharly commented 3 years ago

Thanks for trying it out.

Moving the state store out of the provider could be pretty challenging TBH.

I’ll think about it but at first sight it sounds not simple at all.

fcrespofastly commented 3 years ago

Maybe an alternative approach could be letting the resource/datasource object override the provider config?

eddycharly commented 3 years ago

Honestly i don't see this feature coming any time soon.

It looks like a lot of work and i feel like it could easily become error prone.

Sorry, i probably won't investigate in this direction :(

eddycharly commented 3 years ago

Closing for now, i don't think it will be addressed soon, sorry.