https://pulumi.com logo
#general
Title
# general
a

abundant-yacht-50678

12/29/2021, 11:54 PM
Hi all - I'm getting the following error when attempting to import a database instance on GCP -
Copy code
gcp:sql:DatabaseInstance (app-db):
    error: gcp:sql/databaseInstance:DatabaseInstance resource 'app-db' has a problem: AtLeastOne: "settings": one of `clone,settings` must be specified. Examine values at 'DatabaseInstance.Settings'.
    error: gcp:sql/databaseInstance:DatabaseInstance resource 'app-db' has a problem: AtLeastOne: "clone": one of `clone,settings` must be specified. Examine values at 'DatabaseInstance.Clone'.
    error: one or more inputs failed to validate
Any ideas on how I resolve this?
l

little-cartoon-10569

12/30/2021, 1:29 AM
At the risk of sounding blasé.. would you be able to add a value for either settings or clone? https://www.pulumi.com/registry/packages/gcp/api-docs/sql/databaseinstance/
a

abundant-yacht-50678

12/30/2021, 9:26 AM
Yeah, that makes sense but how do I add these to a resource that I'm importing? Shouldn't the import work out what these values are?
b

billowy-army-68599

12/30/2021, 7:23 PM
@abundant-yacht-50678 these are nearly always bugs, please open an issue with the provider github
👍 1