generated from upptime/upptime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
31 lines (24 loc) · 701 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
locals {
tfstate_bucket_name = "status-page.tfstate"
github_secrets = jsondecode(file("${path.module}/gh_secrets.json"))
}
# Project
data "scaleway_account_project" "project" {
name = var.project_name
}
# Object storage for Terraform state
resource "scaleway_object_bucket" "tfstate_bucket" {
name = local.tfstate_bucket_name
project_id = data.scaleway_account_project.project.id
}
# Modules
module "gh-pages" {
source = "./modules/gh-pages"
hosted_zone_name = var.route53_hosted_zone_name
domain_name = var.domain_name
}
module "gh-secrets" {
source = "./modules/gh-secrets"
github_repository = var.github_repository
secrets = local.github_secrets
}