Skip to content

Commit

Permalink
Add image to show how to test different services
Browse files Browse the repository at this point in the history
  • Loading branch information
juliodiez committed Feb 24, 2023
1 parent 1f3db47 commit 5f9955b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blueprints/serverless/cloud-run-corporate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ terraform apply -var prj_main_id="[your-main-project-id]"

The default URL is automatically created and shown as a terraform output variable. It will be similar to the one shown in the picture above. Now SSH into the VM and run `curl`, you should see the following:

<p align="center"> <img src="images/service-running.png" width="700"> </p>
<p align="center"> <img src="images/service-running-1.png" width="700"> </p>

Note that the VM is resolving the Cloud Run service to an internal IP, 10.0.0.100. Public access is restricted, if you try to `curl` from e.g. your laptop you will get a `403 Forbidden` error.

Expand Down Expand Up @@ -177,7 +177,9 @@ prj_svc1_id = "[your-service-project1-id]"
custom_domain = "cloud-run-corporate.example.org"
```

SSH into a test VM and run `curl` especifying as URL the host, your custom domain, and a path, `/cart` or `/checkout`. You will see each service responding to the request.
SSH into a test VM and run `curl` specifying as URL the host, your custom domain, and a path, `/cart` or `/checkout`. You will see each service responding to the request:

<p align="center"> <img src="images/service-running-4.png" width="700"> </p>

Note that the default URLs for both services are also output, and the PSC endpoint for the `*.run.app` domain from previous examples is still created. However, access to these URLs from both VMs in the host or service project is blocked since the requests come from a VPC network in a different project to the service.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f9955b

Please sign in to comment.