terraform-provider-random icon indicating copy to clipboard operation
terraform-provider-random copied to clipboard

add import to random_pet resource #184

Open wakeful opened this issue 2 years ago • 11 comments

wakeful avatar May 23 '22 20:05 wakeful

@bendbennett, do you know if anyone that may help with that ?

MikaelFerland avatar Oct 21 '22 12:10 MikaelFerland

gosh.. I forgot about this MR, I will rebase & port my fix to work with latest main later today.

wakeful avatar Oct 21 '22 12:10 wakeful

I ported my change to the latest version of main one improvement over the previous version - import now supports adding a custom prefix and separator

@MikaelFerland can you check by building from my branch? if the change works for you? is anything missing?

wakeful avatar Oct 22 '22 12:10 wakeful

@wakeful I could try, but after I will not able to do anything. I'm not working for HashiCorp. @bendbennett do we have to do anything else to have it reviewed ?

MikaelFerland avatar Oct 25 '22 11:10 MikaelFerland

I'd like this merged

mjperrone avatar Nov 08 '22 19:11 mjperrone

Hi @wakeful, @MikaelFerland, @mjperrone 👋

Thank you for submitting the PR @wakeful and apologies in the delay in us getting to it.

Your proposal is an interesting one, as you're essentially overloading the import id with additional attributes/fields for use in populating the resource during import. There are a number of use cases described for this scenario.

At this time, we are intending to implement Import via Configuration for providers developed with the Framework to deliver the ability to import multiple attributes/fields. We would therefore like to hold off and avoid "overloading" the import id until Import via Configuration becomes available.

bendbennett avatar Nov 09 '22 08:11 bendbennett

hi @bendbennett that's an interesting proposal, it would simplify a lot!

my change came from a migration project that I'm currently working on, but I don't mind running a custom provider build.

let's park this change till you guys implement import via configuration.

wakeful avatar Nov 09 '22 10:11 wakeful

Any update to this issue now that import via configuration has been implemented?

jhyelton avatar Mar 06 '24 21:03 jhyelton

hey @jhyelton

TBH I forgot already about this PR 🤦‍♂️ added to ToDo for this week to do a rebase and check what's needed :)

wakeful avatar Mar 06 '24 21:03 wakeful

hey @bendbennett any chance we could try to merge this? (not sure if you are still the maintainer).

wakeful avatar Jun 13 '24 06:06 wakeful