FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GCP Cloud Run app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Information Services
DevOps
Infrastructure
Terraform Modules
GCP Cloud Run app
Commits
0f4ce7c9
Commit
0f4ce7c9
authored
5 years ago
by
Dr Rich Wareham
Browse files
Options
Downloads
Patches
Plain Diff
fix some typos and clarify domain verification requirement [REVIEW]
parent
864fa716
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Add optional domain mapping
Pipeline
#25780
passed
5 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+8
-0
8 additions, 0 deletions
README.md
main.tf
+1
-1
1 addition, 1 deletion
main.tf
variables.tf
+1
-1
1 addition, 1 deletion
variables.tf
with
10 additions
and
2 deletions
README.md
+
8
−
0
View file @
0f4ce7c9
...
...
@@ -17,3 +17,11 @@ For Google APIs and these credentials should correspond to a user with owner or
editor access to the target project. You can use the
``gcloud``
command line
tool to set your personal credentials as application default credentials. See
the
``gcloud auth application-default``
command output for more information.
## Custom domain mapping
Setting the
`dns_name`
will create a domain mapping for the webapp. Before
setting this value you
*must*
have verified ownership of the domain with Google.
[
Instructions on how to do
this
](
https://guidebook.devops.uis.cam.ac.uk/en/latest/notes/google-domain-verification/
)
can be found in the DevOps division guidebook.
This diff is collapsed.
Click to expand it.
main.tf
+
1
−
1
View file @
0f4ce7c9
...
...
@@ -109,7 +109,7 @@ resource "google_cloud_run_service_iam_member" "webapp_all_users_invoker" {
# Domain mapping for default web-application. Only present if the domain is
# verified. We use the custom DNS name of the webapp if provided but otherwise
# the webapp is hosted at [SERVICE
N
NAME].[PROJECT DNS ZONE]. We can't create
# the webapp is hosted at [SERVICE NAME].[PROJECT DNS ZONE]. We can't create
# the domain mapping if the domain is *not* verified because Google won't let
# us.
resource
"google_cloud_run_domain_mapping"
"webapp"
{
...
...
This diff is collapsed.
Click to expand it.
variables.tf
+
1
−
1
View file @
0f4ce7c9
...
...
@@ -61,7 +61,7 @@ variable "dns_name" {
description
=
<<
EOI
If
non-empty
,
a
domain
mapping
will
be
created
for
the
webapp
from
this
domain
to
point
to
the
webapp
.
The
domain
must
first
have
been
verified
by
Google
and
the
account
being
used
by
the
google
provider
n
ust
have
been
added
as
an
owner
.
the
account
being
used
by
the
google
provider
m
ust
have
been
added
as
an
owner
.
If
and
only
if
a
domain
mapping
has
been
created
,
the
"domain_mapping_resource_record"
output
will
be
a
non-empty
map
and
the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment