| Importing multiple digitalocean droplets | Martin Cleaver | 8/29/16 2:19 PM | Hi, ImportDroplets can be imported using the droplet My existing set up has 5 nodes. How do I import multiple nodes? Do I do multiple `import` commands? That results in: * Can't import digitalocean_droplet.mydroplet, would collide with an existing resource. I assume this digitalocean_droplet.mydroplet reference is a reference to the class of the resource I'm pulling in rather than the identity of the node The resulting .tfstate document includes: "modules": [ { "path": [ "root" ], "outputs": {}, "resources": { "digitalocean_droplet.mydroplet": { "type": "digitalocean_droplet", "depends_on": [], "primary": { "id": "9553791", "attributes": { Or am I supposed to import, and then rename the resource by editing the tfstate file and then edit the subsequent ones? I tried alternate syntaxes such as multiple IDs on the line... to not avail. Thanks, Martin. |
| Re: Importing multiple digitalocean droplets | Martin Cleaver | 8/29/16 3:49 PM | Ok. Solved it on IRC, thanks to cornfeedhobo The solution is: The thing I missed was that digitalocean_droplet.mydroplet comprises a class "digitalocean_droplet" and an address "mydroplet" So solution is: |
| Re: Importing multiple digitalocean droplets | Martin Cleaver | 8/29/16 4:11 PM | Or rather: M. |