Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudsql connector example #317

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Cloudsql connector example #317

merged 2 commits into from
Jan 31, 2023

Conversation

anovis
Copy link
Collaborator

@anovis anovis commented Jan 31, 2023

Cloudsql connectors need to be set as a volumeMount in Cloudrun (closes #298 ).

{
    "cloudrun_revision": {
        "serviceAccount": "SERVICE_ACCOUNT",
        "volumes": [
            {
                "name": "NAME",
                "cloudSqlInstance": {
                    "instances": [
                        "PROJECT:REGION:INSTANCE_NAME"
                    ]
                }
            }
        ]
    },
    "cloudrun_container": {
        "volumeMounts": [
            {
                "name": "NAME",
                "mountPath": "/cloudsql/INSTANCE_NAME"
            }
        ]
    }
}

@anovis anovis merged commit f8db644 into main Jan 31, 2023
@anovis anovis deleted the cloudsql-example branch January 31, 2023 14:32
quajones pushed a commit to quajones/goblet that referenced this pull request Oct 19, 2023
Cloudsql connectors need to be set as a volumeMount in Cloudrun (closes goblet#298 ). 

```
{
    "cloudrun_revision": {
        "serviceAccount": "SERVICE_ACCOUNT",
        "volumes": [
            {
                "name": "NAME",
                "cloudSqlInstance": {
                    "instances": [
                        "PROJECT:REGION:INSTANCE_NAME"
                    ]
                }
            }
        ]
    },
    "cloudrun_container": {
        "volumeMounts": [
            {
                "name": "NAME",
                "mountPath": "/cloudsql/INSTANCE_NAME"
            }
        ]
    }
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cloudrun] Unable to attach cloudsql connector
1 participant