Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-geo-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-geo-api
Commits
11fa9df9
Commit
11fa9df9
authored
7 months ago
by
Daniel Bimschas
Browse files
Options
Downloads
Patches
Plain Diff
HOLI-9542: add terraform output for endpoint URL to be consumed by other services
parent
8b6ee273
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
terraform/environments/dns.tf
+0
-5
0 additions, 5 deletions
terraform/environments/dns.tf
terraform/environments/vars.tf
+13
-0
13 additions, 0 deletions
terraform/environments/vars.tf
with
13 additions
and
5 deletions
terraform/environments/dns.tf
+
0
−
5
View file @
11fa9df9
...
@@ -6,8 +6,3 @@ resource "google_dns_record_set" "holi_social_geo_api_domain_record_set" {
...
@@ -6,8 +6,3 @@ resource "google_dns_record_set" "holi_social_geo_api_domain_record_set" {
ttl
=
300
ttl
=
300
rrdatas
=
[
google_cloud_run_domain_mapping
.
holi_social_geo_api
.
status
[
0
].
resource_records
[
0
].
rrdata
]
rrdatas
=
[
google_cloud_run_domain_mapping
.
holi_social_geo_api
.
status
[
0
].
resource_records
[
0
].
rrdata
]
}
}
output
"api_domain"
{
value
=
trimsuffix
(
google_dns_record_set
.
holi_social_geo_api_domain_record_set
.
name
,
"."
)
description
=
"Domain where the api resides"
}
This diff is collapsed.
Click to expand it.
terraform/environments/vars.tf
+
13
−
0
View file @
11fa9df9
...
@@ -6,5 +6,18 @@ locals {
...
@@ -6,5 +6,18 @@ locals {
# the dns name can be at most 64 chars in total
# the dns name can be at most 64 chars in total
dns_name
=
"
${
trimsuffix
(
substr
(
local
.
environment
,
0
,
34
),
".-"
)}
.
${
data
.
terraform_remote_state
.
holi_geo_api_common_state
.
outputs
.
dns_geo_api_domain
}
"
dns_name
=
"
${
trimsuffix
(
substr
(
local
.
environment
,
0
,
34
),
".-"
)}
.
${
data
.
terraform_remote_state
.
holi_geo_api_common_state
.
outputs
.
dns_geo_api_domain
}
"
api_domain
=
trimsuffix
(
google_dns_record_set
.
holi_social_geo_api_domain_record_set
.
name
,
"."
)
api_endpoint_url
=
"https://
${
local
.
api_domain
}
/graphql"
default_region
=
data
.
terraform_remote_state
.
holi_infra_state
.
outputs
.
default_region
default_region
=
data
.
terraform_remote_state
.
holi_infra_state
.
outputs
.
default_region
}
}
output
"api_domain"
{
value
=
local
.
api_domain
description
=
"Domain under which the GeoAPI runs"
}
output
"api_endpoint_url"
{
value
=
local
.
api_endpoint_url
description
=
"GraphQL API endpoint URL of the GeoAPI"
}
\ No newline at end of file
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