Skip to content

Support psc_auto_connections #738

@OscarVanL

Description

@OscarVanL

TL;DR

I would like to use the new PSC "Create the endpoint automatically" feature. This requires me to configure a couple of flags on the DB instance, including psc_auto_connections.

In gcloud I can set this with gcloud sql instances patch <INSTANCE NAME> --psc-auto-connections=network=projects/<PROJECT NAME>/global/networks/<NETWORK NAME>,project=<CONSUMER PROJECT>

Terraform Resources

I would like to terraform this change, which is supported by the underlying google_sql_database_instance resource, and the hashicorp/google provider version utilised in this repo is already on a supported version.

See here for example usage.

google_sql_database_instance

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions