You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cast received types.Object into an actual resource Model structure
Fill Import State struct with data from the model (location, names etc.)
Marshal import state struct into JSON and return it
Figure out error handling between our code and terraform functions.
An example implementation for a simple Entry-type resource, although not complete - we need marshaling of Terraform Locations for it to work, and EncodeLocation() doesn't seem to work properly:
Uuid-style and Entry-style lists will require some tweaks: it would probably be enough to change Name string to Names []string and copy names from the map/list (depending on the resource type).
The text was updated successfully, but these errors were encountered:
kklimonda-cl
changed the title
Create per-resource functions that convert types.Object into JSON bytes by using those new structures
Create per-resource functions to generate import id base64 data
Aug 30, 2024
Figure out error handling between our code and terraform functions.
An example implementation for a simple Entry-type resource, although not complete - we need marshaling of Terraform Locations for it to work, and EncodeLocation() doesn't seem to work properly:
Uuid-style and Entry-style lists will require some tweaks: it would probably be enough to change
Name string
toNames []string
and copy names from the map/list (depending on the resource type).The text was updated successfully, but these errors were encountered: