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

Serverless networking program #1146

Merged
merged 49 commits into from
Feb 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
c9b076c
Initial commit, Cloud Run service with default URL
juliodiez Jan 24, 2023
aca604e
Merge pull request #3 from GoogleCloudPlatform/master
juliodiez Jan 24, 2023
6c8c033
Add Global Load Balancer in front of Cloud Run
juliodiez Jan 25, 2023
097c9ce
HTTPS frontend with static IP
juliodiez Jan 26, 2023
417584f
Default config renamed to default-url config
juliodiez Jan 26, 2023
6039105
Get rid of default-url config and make it 'default'
juliodiez Jan 26, 2023
b25afb5
Fix format
juliodiez Jan 26, 2023
5004f17
Add custom-url configuration
juliodiez Jan 26, 2023
1d3449d
Add custom domain as variable
juliodiez Jan 26, 2023
914a8c4
Rename output URL as default URL
juliodiez Jan 30, 2023
e10c6ed
Output URL as single string
juliodiez Jan 30, 2023
cca1d9f
Output the LB IP address
juliodiez Jan 30, 2023
93276d0
Add custom domain output
juliodiez Jan 30, 2023
865a98e
Add ingress settings blocking requests not coming from the LB
juliodiez Jan 30, 2023
8a7aa39
Add purpose to config files
juliodiez Jan 30, 2023
4c40180
Add security configuration using Cloud Armor in the LB
juliodiez Jan 30, 2023
4c2e31b
Rename config file
juliodiez Jan 30, 2023
b95b801
Merge pull request #5 from GoogleCloudPlatform/master
juliodiez Feb 1, 2023
462ca56
Merge pull request #6 from juliodiez/master
juliodiez Feb 1, 2023
63bae85
Identity-Aware Proxy configuration
juliodiez Feb 2, 2023
616125c
Enable service APIs in the project
juliodiez Feb 3, 2023
54a0ff8
Info comment for support_email
juliodiez Feb 3, 2023
8899412
Separate var iap_email to override it on the CLI
juliodiez Feb 3, 2023
60c9f2c
Merge branch 'serverless-program' of https://github.com/juliodiez/clo…
juliodiez Feb 3, 2023
642fff0
Get rid of config files
juliodiez Feb 7, 2023
8b41008
Add README file with the use cases
juliodiez Feb 8, 2023
a44759d
Fix typos in README
juliodiez Feb 8, 2023
3e7d8c5
Infer LB creation from custom_domain var
juliodiez Feb 9, 2023
d9791a3
Merge pull request #7 from GoogleCloudPlatform/master
juliodiez Feb 10, 2023
e8303e1
Merge pull request #8 from juliodiez/master
juliodiez Feb 10, 2023
a199414
Add license boilerplate
juliodiez Feb 10, 2023
a8de908
Alphabetical ordering for outputs and variables
juliodiez Feb 10, 2023
3935867
Simplify conditional expressions
juliodiez Feb 10, 2023
d916632
Update URL to repo
juliodiez Feb 10, 2023
f31293b
Specify block types
juliodiez Feb 10, 2023
aca3069
Add quotes around var project_id
juliodiez Feb 10, 2023
d19d434
Add HTML tags to generate output and variable tables
juliodiez Feb 10, 2023
4aa135f
Generated output and variable tables via tfdoc.py
juliodiez Feb 10, 2023
9fa48ea
Add ending periods to descriptions
juliodiez Feb 10, 2023
1335fd6
Update output and variable tables via tfdoc.py
juliodiez Feb 10, 2023
98f9a31
Update output and variable tables via tfdoc.py
juliodiez Feb 10, 2023
54d88c7
Merge branch 'master' into serverless-program
juliodiez Feb 10, 2023
eee0a0e
Merge pull request #9 from GoogleCloudPlatform/master
juliodiez Feb 10, 2023
9dab5fa
Merge pull request #10 from juliodiez/master
juliodiez Feb 10, 2023
6c470ec
Option to create a project
juliodiez Feb 10, 2023
e72602a
Update variables table via tfdoc.py
juliodiez Feb 10, 2023
621ee6e
Update variables table via tfdoc.py
juliodiez Feb 10, 2023
5c3fd31
Add missing newlines in README
juliodiez Feb 10, 2023
0cfd8dd
Move all images to an images/ folder
juliodiez Feb 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Generated output and variable tables via tfdoc.py
  • Loading branch information
juliodiez committed Feb 10, 2023
commit 4aa135f7e8e53eb3132b796495e61458f185a7ff
22 changes: 21 additions & 1 deletion blueprints/serverless/cloud-run-explore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,27 @@ The easiest way to remove all the deployed resources is to run the following com
terraform destroy
```
The above command will delete the associated resources so there will be no billable charges made afterwards. IAP Brands, though, can only be created once per project and not deleted. Destroying a Terraform-managed IAP Brand will remove it from state but will not delete it from Google Cloud.

<!-- BEGIN TFDOC -->

## Variables

| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
| [project_id](variables.tf#L46) | Project ID | <code>string</code> | ✓ | |
| [custom_domain](variables.tf#L17) | Custom domain for the Load Balancer | <code>string</code> | | <code>null</code> |
| [iap](variables.tf#L23) | Identity-Aware Proxy for Cloud Run in the LB | <code title="object&#40;&#123;&#10; enabled &#61; optional&#40;bool, false&#41;&#10; app_title &#61; optional&#40;string, &#34;Cloud Run Explore Application&#34;&#41;&#10; oauth2_client_name &#61; optional&#40;string, &#34;Test Client&#34;&#41;&#10; email &#61; optional&#40;string&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |
| [image](variables.tf#L34) | Container image to deploy | <code>string</code> | | <code>&#34;us-docker.pkg.dev&#47;cloudrun&#47;container&#47;hello&#34;</code> |
| [ingress_settings](variables.tf#L40) | Ingress traffic sources allowed to call the service | <code>string</code> | | <code>&#34;all&#34;</code> |
| [region](variables.tf#L51) | Cloud region where resource will be deployed | <code>string</code> | | <code>&#34;europe-west1&#34;</code> |
| [run_svc_name](variables.tf#L57) | Cloud Run service name | <code>string</code> | | <code>&#34;hello&#34;</code> |
| [security_policy](variables.tf#L63) | Security policy (Cloud Armor) to enforce in the LB | <code title="object&#40;&#123;&#10; enabled &#61; optional&#40;bool, false&#41;&#10; ip_blacklist &#61; optional&#40;list&#40;string&#41;, &#91;&#34;&#42;&#34;&#93;&#41;&#10; path_blocked &#61; optional&#40;string, &#34;&#47;login.html&#34;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> |

## Outputs

| name | description | sensitive |
|---|---|:---:|
| [custom_domain](outputs.tf#L19) | Custom domain for the Load Balancer | |
| [default_URL](outputs.tf#L24) | Cloud Run service default URL | |
| [load_balancer_ip](outputs.tf#L29) | LB IP that forwards to Cloud Run service | |

<!-- END TFDOC -->