Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattes/gce-cloudsql-proxy-action
Github action which will start a Google Cloud SQL Proxy as Docker container.
https://github.com/mattes/gce-cloudsql-proxy-action
cloudsql cloudsql-proxy docker github-action google google-cloud google-cloud-sql google-cloud-sql-proxy
Last synced: 2 months ago
JSON representation
Github action which will start a Google Cloud SQL Proxy as Docker container.
- Host: GitHub
- URL: https://github.com/mattes/gce-cloudsql-proxy-action
- Owner: mattes
- License: unlicense
- Created: 2020-09-21T02:33:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T22:52:48.000Z (over 3 years ago)
- Last Synced: 2024-11-02T03:22:46.717Z (2 months ago)
- Topics: cloudsql, cloudsql-proxy, docker, github-action, google, google-cloud, google-cloud-sql, google-cloud-sql-proxy
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 38
- Watchers: 5
- Forks: 44
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Cloud SQL Proxy
Github action which will start a [Google Cloud SQL Proxy](https://cloud.google.com/sql/docs/postgres/sql-proxy) as Docker container.
## Prerequisites
Set up the following resources manually in the Cloud Console
or use a tool like [Terraform](https://www.terraform.io).* Running Cloud SQL instance with a public IP address
* Create Service Account with Role `Cloud SQL Client` and export a new JSON key.## Github Action Inputs
| Variable | Description |
|----------------------------------|-----------------------------------------------------------------------------|
| `creds` | ***Required*** Service Account JSON Key (not base64 encoded) |
| `instance` | ***Required*** Cloud SQL connection name |
| `port` | Listen on port, default 5432 |
| `proxy_version` | Cloud SQL Proxy version, default 1.21.0 |## Example Usage
```
uses: mattes/gce-cloudsql-proxy-action@v1
with:
creds: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
instance: my-project:us-central1:instance-1
```