Config-driven importing through identity (TF-23179)#36703
Conversation
e6c5f49 to
0252e5a
Compare
b6f8033 to
cc694a7
Compare
cc694a7 to
92ffcdd
Compare
92ffcdd to
1dbb40e
Compare
1dbb40e to
7e069d4
Compare
There was a problem hiding this comment.
Apologies for creeping on this PR 👀 , but I was just perusing how close this PR is to ready. I found one (already in main) decode problem here -> #36806 .
The other problem I ran into was something this PR may eventually have resolved so I'm just dropping it here 😄.
Currently, when importing by identity, the actual identity data isn't passed to the following ReadResource RPC call since it's not being added to the ResourceInstanceObject:
terraform/internal/states/instance_object.go
Lines 70 to 76 in dcb06b9
With both of those resolved, looks like the data is properly passed around after that with some basic smoke tests 🎉
7e069d4 to
c39a786
Compare
jbardin
left a comment
There was a problem hiding this comment.
LGTM! We can probably get rid of those getProvider calls since you're not using the provider. That little wrapper is a bit weird, and a result of refactoring long ago, but I'm not sure what to do with it for now since it does cut down on some repetition when providers are used.
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR adds support for importing resources via their identity
Target Release
1.12.x
CHANGELOG entry
I'm planning to add changelog entries for the whole feature in a separate PR