https://pulumi.com logo
#python
Title
# python
f

flaky-rainbow-10344

03/20/2024, 12:57 PM
Copy code
sql_instance = gcp.sql.DatabaseInstance("sql-instance",
    name="instance-name",
    region="us-central1",
    settings=gcp.sql.DatabaseInstanceSettingsArgs(
        tier="db-f1-micro",
        ip_configuration=gcp.sql.DatabaseInstanceSettingsIpConfigurationArgs(
            ipv4_enabled=False,
            private_network="projects/my-project/global/networks/my-network"
        )
    ),
    # Use `ignore_changes` to specify that `settings.diskSize` should be ignored during updates.
    opts=pulumi.ResourceOptions(ignore_changes=["settings.0.disk_size"])