https://pulumi.com logo
q

quick-action-34599

08/26/2019, 6:46 PM
Does this
import
option currently exist in Pulumi or is it just planned? https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi/#adopting-existing-resources
h

high-translator-22614

08/26/2019, 6:46 PM
it exists and is in the API docs
w

white-balloon-205

08/26/2019, 6:46 PM
Yep - it exists for both JavaScript and Python.
q

quick-action-34599

08/26/2019, 6:46 PM
weird
I’m getting an error about it not being available on
CustomResourceOptions
w

white-balloon-205

08/26/2019, 6:47 PM
Share the full error message?
q

quick-action-34599

08/26/2019, 6:47 PM
v1.0.0-beta.2
w

white-balloon-205

08/26/2019, 6:48 PM
I suspect you must have an old version of some package installed.
q

quick-action-34599

08/26/2019, 6:48 PM
ah
w

white-balloon-205

08/26/2019, 6:48 PM
Check your
package-lock.json
to see if there are any old version perhaps?
q

quick-action-34599

08/26/2019, 6:48 PM
sure, I’ll do that
For reference, full message is
Copy code
Argument of type ‘{ provider: Provider; import: string; }’ is not assignable to parameter of type ‘CustomResourceOptions’.
      Object literal may only specify known properties, and ‘import’ does not exist in type ‘CustomResourceOptions’.
w

white-balloon-205

08/26/2019, 6:50 PM
Yeah - the definitely means there's an older package in the mix.
h

high-translator-22614

08/26/2019, 6:51 PM
I've made that mistake repeatedly--update the pulumi binaries and forgetting to update the pulumi language packages
q

quick-action-34599

08/26/2019, 6:53 PM
roger; thanks gents
@white-balloon-205 after updating my libraries, pulumi is now trying to delete/create a bunch of already existing resources