Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-unified-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-unified-api
Commits
2749b1e4
Commit
2749b1e4
authored
1 week ago
by
Gregor Schulz
Browse files
Options
Downloads
Patches
Plain Diff
add events tf state references to fwd api url
parent
ec7a264a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
terraform/environments/deployment.tf
+4
-0
4 additions, 0 deletions
terraform/environments/deployment.tf
terraform/environments/init.tf
+8
-0
8 additions, 0 deletions
terraform/environments/init.tf
terraform/environments/vars.tf
+5
-1
5 additions, 1 deletion
terraform/environments/vars.tf
with
17 additions
and
1 deletion
terraform/environments/deployment.tf
+
4
−
0
View file @
2749b1e4
...
...
@@ -71,6 +71,10 @@ resource "google_cloud_run_service" "unified_api" {
name
=
"GEO_API_URL"
value
=
local
.
geo_api_url
}
env
{
name
=
"EVENTS_API_URL"
value
=
local
.
events_api_url
}
env
{
name
=
"VOLUNTEERING_API_URL"
value
=
local
.
volunteering_api_url
...
...
This diff is collapsed.
Click to expand it.
terraform/environments/init.tf
+
8
−
0
View file @
2749b1e4
...
...
@@ -73,6 +73,14 @@ data "terraform_remote_state" "holi_volunteering_api_common_state" {
}
}
data
"terraform_remote_state"
"holi_events_common_state"
{
backend
=
"gcs"
config
=
{
bucket
=
"holi-shared-terraform-state"
prefix
=
"events-common"
}
}
data
"terraform_remote_state"
"holi_notifications_api_common_state"
{
backend
=
"gcs"
config
=
{
...
...
This diff is collapsed.
Click to expand it.
terraform/environments/vars.tf
+
5
−
1
View file @
2749b1e4
...
...
@@ -17,6 +17,7 @@ locals {
goodnews_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_goodnews_api_common_state
.
outputs
.
dns_goodnews_api_domain
}
/graphql"
geo_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_geo_api_common_state
.
outputs
.
dns_geo_api_domain
}
/graphql"
volunteering_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_volunteering_api_common_state
.
outputs
.
dns_volunteering_api_domain
}
/graphql"
events_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_events_common_state
.
outputs
.
dns_events_domain
}
/graphql"
notifications_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_notifications_api_common_state
.
outputs
.
dns_notifications_api_domain
}
/graphql"
translation_api_url
=
"https://
${
local
.
environment
==
"production"
?
"production"
:
"staging"
}
.
${
data
.
terraform_remote_state
.
holi_translation_api_common_state
.
outputs
.
dns_translation_api_domain
}
/graphql"
moderation_backend_url
=
"https://
${
data
.
terraform_remote_state
.
holi_moderation_environment_state
.
outputs
.
backend_domain
}
/graphql"
...
...
@@ -47,6 +48,10 @@ output "volunteering_api_url" {
value
=
local
.
volunteering_api_url
}
output
"events_api_url"
{
value
=
local
.
events_api_url
}
output
"notifications_api_url"
{
value
=
local
.
notifications_api_url
}
...
...
@@ -59,7 +64,6 @@ output "moderation_backend_url" {
value
=
local
.
moderation_backend_url
}
output
"api_domain"
{
value
=
local
.
api_domain
description
=
"Domain under which the unified API runs"
...
...
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