https://pulumi.com logo
Title
c

creamy-engine-1851

01/17/2021, 8:36 PM
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:
➜  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

gentle-diamond-70147

01/19/2021, 4:29 PM
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

creamy-engine-1851

01/20/2021, 7:48 AM
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