-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull the GCLB and DNS out of the app module (#284)
Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
- Loading branch information
Showing
4 changed files
with
37 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,42 @@ | ||
moved { | ||
from = google_dns_managed_zone.top-level-zone | ||
to = module.this.google_dns_managed_zone.top-level-zone | ||
from = module.app.google_dns_managed_zone.top-level-zone | ||
to = google_dns_managed_zone.top-level-zone | ||
} | ||
|
||
moved { | ||
from = module.serverless-gclb | ||
to = module.this.module.serverless-gclb | ||
from = module.app.module.serverless-gclb | ||
to = module.serverless-gclb | ||
} | ||
|
||
// This is imported from Cloud Domains | ||
resource "google_dns_managed_zone" "top-level-zone" { | ||
project = var.project_id | ||
name = "octo-sts-dev" | ||
dns_name = "octo-sts.dev." | ||
description = "DNS zone for domain: octo-sts.dev" | ||
|
||
dnssec_config { | ||
state = "on" | ||
} | ||
} | ||
|
||
// Put the above domain in front of our regional services. | ||
module "serverless-gclb" { | ||
source = "chainguard-dev/common/infra//modules/serverless-gclb" | ||
version = "0.6.18" | ||
|
||
name = var.name | ||
project_id = var.project_id | ||
dns_zone = google_dns_managed_zone.top-level-zone.name | ||
|
||
// Regions are all of the places that we have backends deployed. | ||
// Regions must be removed from serving before they are torn down. | ||
regions = keys(module.networking.regional-networks) | ||
serving_regions = keys(module.networking.regional-networks) | ||
|
||
public-services = { | ||
"octo-sts.dev" = { | ||
name = var.name | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.