File tree Expand file tree Collapse file tree
modules/sebt_enrollment_checker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,3 +139,16 @@ module "app" {
139139 OIDC_COMPLETE_LOGIN_SIGNING_KEY = " ${ module . state_secrets . secrets [" oidc" ]. secret_arn } :complete_login_signing_key"
140140 }
141141}
142+
143+ # Deploy the enrollment checker as a static site behind CloudFront.
144+ module "enrollment_checker" {
145+ source = " ../../modules/sebt_enrollment_checker"
146+
147+ project = var. project
148+ state = var. state
149+ environment = var. environment
150+ domain = " dev.co.sebt-enrollment.codeforamerica.app"
151+ hosted_zone_id = aws_route53_zone. enrollment_checker . zone_id
152+ logging_bucket_domain_name = module. logging . bucket_domain_name
153+ force_delete = true
154+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,26 @@ output "api_repository_url" {
88 value = module. app . api_repository_url
99}
1010
11+ output "enrollment_checker_distribution_id" {
12+ description = " CloudFront distribution ID for the enrollment checker (used for cache invalidation)."
13+ value = module. enrollment_checker . cloudfront_distribution_id
14+ }
15+
16+ output "enrollment_checker_nameservers" {
17+ description = " NS records for the enrollment checker hosted zone."
18+ value = aws_route53_zone. enrollment_checker . name_servers
19+ }
20+
21+ output "enrollment_checker_s3_bucket" {
22+ description = " S3 bucket name for the enrollment checker static site."
23+ value = module. enrollment_checker . s3_bucket_id
24+ }
25+
26+ output "enrollment_checker_url" {
27+ description = " Public URL of the enrollment checker."
28+ value = module. enrollment_checker . site_url
29+ }
30+
1131output "web_endpoint_url" {
1232 description = " URL of the Web service endpoint."
1333 value = module. app . web_endpoint_url
@@ -17,8 +37,3 @@ output "web_repository_url" {
1737 description = " ECR repository URL for the Web service."
1838 value = module. app . web_repository_url
1939}
20-
21- output "enrollment_checker_nameservers" {
22- description = " NS records for the enrollment checker hosted zone."
23- value = aws_route53_zone. enrollment_checker . name_servers
24- }
Original file line number Diff line number Diff line change 1- variable "project" {
2- type = string
3- description = " Project name used for resource naming."
4- }
5-
6- variable "state" {
1+ variable "domain" {
72 type = string
8- description = " State abbreviation (e.g. co, dc )."
3+ description = " Fully qualified domain name for the enrollment checker (e.g. dev.co.sebt-enrollment.codeforamerica.app )."
94}
105
116variable "environment" {
127 type = string
138 description = " Deployment environment (e.g. development, production)."
149}
1510
16- variable "domain" {
17- type = string
18- description = " Fully qualified domain name for the enrollment checker (e.g. dev.co.sebt-enrollment.codeforamerica.app)."
11+ variable "force_delete" {
12+ type = bool
13+ description = " Allow destruction of the S3 bucket even if it contains objects."
14+ default = false
1915}
2016
2117variable "hosted_zone_id" {
@@ -28,8 +24,12 @@ variable "logging_bucket_domain_name" {
2824 description = " Domain name of the S3 logging bucket for access logs."
2925}
3026
31- variable "force_delete" {
32- type = bool
33- description = " Allow destruction of the S3 bucket even if it contains objects."
34- default = false
27+ variable "project" {
28+ type = string
29+ description = " Project name used for resource naming."
30+ }
31+
32+ variable "state" {
33+ type = string
34+ description = " State abbreviation (e.g. co, dc)."
3535}
You can’t perform that action at this time.
0 commit comments