square-tiger-5809
11/15/2023, 2:49 PMinstance = gcp.sql.DatabaseInstance("instance",
database_version="MYSQL_8_0",
name=f'us-gcp-csql-prod-{instance_num}-v8',
project=f'{project}',
region=f'{region}',
settings=gcp.sql.DatabaseInstanceSettingsArgs(
version=8026
)
Per the docs, version is an int
format of versioning isn't specified here https://www.pulumi.com/registry/packages/gcp/api-docs/sql/databaseinstance/#databaseinstancesettings
But I get: gcp:sql/databaseInstance:DatabaseInstance resource 'instance' has a problem: Value for unconfigurable attribute. Can't configure a value for "settings.0.version": its value will be decided automatically based on the result of applying this configuration.
Why can't we set the version? It's possible through the GCP console, is there another way?dry-keyboard-94795
11/15/2023, 3:52 PMsettings.version
may relate to something else.
It looks like you can specify the minor version for mysql through the database_version
string from these values: https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersiondatabase_version="MYSQL_8_0_26"
square-tiger-5809
11/15/2023, 3:57 PM