ancient-plastic-80816
11/07/2019, 8:28 PM{import:"resource id"}
.
Problem is that some resources give warnings like the following, while the inputs are configured exactly the same as previous TF code and is correct in relation to the existing TF state. 🤔
And if I run terraform plan
there are no changes to be made, so there should not be any wild configuration changes floating around.
digitalocean:index:Droplet (mgr):
warning: inputs to import do not match the existing resource; importing this resource will fail
gentle-diamond-70147
11/08/2019, 4:20 PMpulumi preview --diff
will also show you the full detailsancient-plastic-80816
11/11/2019, 6:48 AMconst tld = new digitalocean.Domain('<http://tld.com|tld.com>', {...}, {import: 'identifier'});
const sub = new digitalocean.DnsRecord('<http://sub.tld.com|sub.tld.com>', {
domain = tld.name,
...
}, {import: 'identifier'});
The empty string thing is the same even when I hardcode the domain in the subdomain.gentle-diamond-70147
11/11/2019, 4:44 PMdigitalocean.DnsRecord
resource I believe it will import fine and then you can revert to using the tld.name
reference.