generated from ExamProCo/terraform-beginner-bootcamp-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
63 lines (56 loc) · 1.66 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
terraform {
required_providers {
terratowns = {
source = "local.providers/local/terratowns"
version = "1.0.0"
}
}
#backend "remote" {
# hostname = "app.terraform.io"
# organization = "ExamPro"
# workspaces {
# name = "terra-house-1"
# }
#}
cloud {
organization = "projects-awscloudgirl"
workspaces {
name = "terra-house-tech-wellness"
}
}
}
provider "terratowns" {
endpoint = var.terratowns_endpoint
user_uuid = var.teacherseat_user_uuid
token = var.terratowns_access_token
}
module "home_oliveleaf_hosting" {
source = "./modules/terrahome_aws"
user_uuid = var.teacherseat_user_uuid
public_path = var.oliveleaf.public_path
content_version = var.oliveleaf.content_version
}
resource "terratowns_home" "home" {
name = "Olive Leaf Tea"
description = <<DESCRIPTION
Olive leaf tea may offer protection against the harmful effects of WiFi and electromagnetic fields (EMFs).
DESCRIPTION
domain_name = module.home_oliveleaf_hosting.domain_name
town = "cooker-cove"
content_version = var.oliveleaf.content_version
}
module "home_tartcherry_hosting" {
source = "./modules/terrahome_aws"
user_uuid = var.teacherseat_user_uuid
public_path = var.tartcherry.public_path
content_version = var.tartcherry.content_version
}
resource "terratowns_home" "home_tartcherry" {
name = "Tart Cherry Juice"
description = <<DESCRIPTION
Tart cherry juice has gained attention for its potential to boost melatonin levels, a hormone crucial for regulating sleep-wake cycles.
DESCRIPTION
domain_name = module.home_tartcherry_hosting.domain_name
town = "cooker-cove"
content_version = var.tartcherry.content_version
}