Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-app-donations
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-app-donations
Commits
499f94dc
Commit
499f94dc
authored
1 year ago
by
Lorenzo Ceccon
Browse files
Options
Downloads
Patches
Plain Diff
Updated terraform common holi-social conf
parent
ee933297
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
terraform/common/dns.tf
+1
-1
1 addition, 1 deletion
terraform/common/dns.tf
terraform/common/dns_project_holi.tf
+33
-0
33 additions, 0 deletions
terraform/common/dns_project_holi.tf
with
34 additions
and
1 deletion
terraform/common/dns.tf
+
1
−
1
View file @
499f94dc
...
...
@@ -9,7 +9,7 @@ locals {
# donations api environments zone
resource
"google_dns_managed_zone"
"donations_api_environments_zone"
{
project
=
data
.
terraform_remote_state
.
holi_infra_state
.
outputs
.
shared_project_id
name
=
"donations-api-environments-zone"
name
=
"donations-api-
holi-social-
environments-zone"
dns_name
=
local
.
donations_api_environments_zone_dns_name
}
...
...
This diff is collapsed.
Click to expand it.
terraform/common/dns_project_holi.tf
0 → 100644
+
33
−
0
View file @
499f94dc
## these dns changes are done in the infra shared project (https://gitlab.com/holisticfoundation/holi-infra)
## because the zone apis.project-holi.org is managed in that project.
locals
{
# effectively, this is donations.apis.project-holi.org
project_holi_donations_api_environments_zone_dns_name
=
"donations.
${
data
.
terraform_remote_state
.
holi_infra_state
.
outputs
.
dns_project_holi_apis_zone_domain
}
."
}
# donations api environments zone
resource
"google_dns_managed_zone"
"project_holi_donations_api_environments_zone"
{
project
=
data
.
terraform_remote_state
.
holi_infra_state
.
outputs
.
shared_project_id
name
=
"donations-api-environments-zone"
dns_name
=
local
.
project_holi_donations_api_environments_zone_dns_name
}
resource
"google_dns_record_set"
"project_holi_donations_api_environments_zone_entry"
{
project
=
data
.
terraform_remote_state
.
holi_infra_state
.
outputs
.
shared_project_id
name
=
local
.
project_holi_donations_api_environments_zone_dns_name
type
=
"NS"
ttl
=
300
managed_zone
=
data
.
terraform_remote_state
.
holi_infra_state
.
outputs
.
dns_project_holi_apis_zone_name
rrdatas
=
google_dns_managed_zone
.
project_holi_donations_api_environments_zone
.
name_servers
}
output
"dns_project_holi_donations_api_domain"
{
value
=
trim
(
google_dns_managed_zone
.
project_holi_donations_api_environments_zone
.
dns_name
,
"."
)
}
output
"dns_project_holi_donations_api_domain_name"
{
value
=
google_dns_managed_zone
.
project_holi_donations_api_environments_zone
.
name
}
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