Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dedeco committed Sep 12, 2023
1 parent b69717e commit 34ded3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Spring boot app connecting to AlloyDb by JDBC using SA mitigating Short lived credentials - IAM based
# Spring boot app connecting to AlloyDb
Spring boot app with JDBC SA mitigating Short lived credentials - IAM based

## Install Java 17
See https://sdkman.io/usage
Expand All @@ -8,13 +9,13 @@ See https://cloud.google.com/alloydb/docs/connect-external

For this sample, I had set up an intermediary virtual machine (VM) to connect to my cluster, as follows:
1. Create a sample-vm
2. Using SSH install the alloydb proxy. [Here more details](https://cloud.google.com/alloydb/docs/auth-proxy/connect)
2. Using SSH install the alloydb proxy. [Here more details](https://cloud.google.com/alloydb/docs/auth-proxy/connect).
3. Run the proxy inside the VM:
```bash
./alloydb-auth-proxy \
"projects/<PROJECT-ID>/locations/us-central1/clusters/pagilacls/instances/pagila"
```
4. At the local machine create a tunnel. [Here mode details](https://cloud.google.com/iap/docs/using-tcp-forwarding)
4. At the local machine create a tunnel. [Here more details](https://cloud.google.com/iap/docs/using-tcp-forwarding).
```bash
gcloud compute ssh vm-sample \
--tunnel-through-iap \
Expand Down

0 comments on commit 34ded3a

Please sign in to comment.