Hello, I've got a problem when I try to refresh, p...
# google-cloud
c
Hello, I've got a problem when I try to refresh, preview or up a stack that contains a Cloud SQL database. It gives me the following error:
Copy code
➜  pulumi-gcp-databases git:(master) pulumi preview --diff   
Previewing update (dev)

View Live: <https://app.pulumi.com/Kansuler/minikontrakt-gcp-databases/dev/previews/2e34bc6b-191a-484d-a5cf-78b6c98e692f>

+ pulumi:pulumi:Stack: (create)
    [urn=urn:pulumi:dev::minikontrakt-gcp-databases::pulumi:pulumi:Stack::minikontrakt-gcp-databases-dev]
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
error: gcp:sql/databaseInstance:DatabaseInstance resource 'general-database' has a problem: AtLeastOne
Resources:
    + 1 to create
g
I believe you're missing a property on your SQL database, but unfortunately Pulumi isn't giving you a complete error message. Can you share your code? I can likely help figure out what's missing.
c
You are right, I did a change I forgot about... 🤦‍♂️ Thanks for pointing it out @gentle-diamond-70147!
I had set a
sql.DatabaseInstanceReplicaConfigurationArgs{}
with only nil values
👍 1