generated from ExamProCo/terraform-beginner-bootcamp-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
70 lines (62 loc) · 1.94 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
64
65
66
67
68
69
70
terraform {
cloud {
organization = "will-will-org"
workspaces {
name = "terra-house-01"
}
}
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.17.0"
}
terratowns = {
source = "local.providers/local/terratowns"
version = "1.0.0"
}
}
}
provider "aws" {
# Configuration options
}
provider "terratowns" {
# endpoint = "http://localhost:4567/api"
endpoint = var.terratowns_endpoint
user_uuid = var.teacherseat_user_uuid
token = var.terratowns_access_token
}
module "home_wow_hosting" {
source = "./modules/terrahome_aws"
user_uuid = var.teacherseat_user_uuid
public_path = var.wow.public_path
content_version = var.wow.content_version
}
resource "terratowns_home" "home_wow" {
name = "Re-introducing World of Warcraft in 2023!"
description = <<Description
World of Warcraft changed the landscape of MMORPGS forever.
People of all ages played it, and obsesed over it.
Blizzard, the company that created the game, recently re-released it,
calling it World of Warcraft Classic. Come in to learn more.
Description
domain_name = module.home_wow_hosting.domain_name
# domain_name = "abc3dgrz.cloudfront.net"
town = "gamers-grotto"
content_version = var.wow.content_version
}
# module "home_bbq_hosting" {
# source = "./modules/terrahome_aws"
# user_uuid = var.teacherseat_user_uuid
# public_path = var.bbq.public_path
# content_version = var.bbq.content_version
# }
# resource "terratowns_home" "home_bbq" {
# name = "Instant Pot BBQ Chicken"
# description = <<Description
# This Instant Pot BBQ Chicken is an easy recipe you can make for a weeknight meal. You can use in so many ways!
# Description
# domain_name = module.home_bbq_hosting.domain_name
# # domain_name = "abc3dgrz.cloudfront.net"
# town = "missingo"
# content_version = var.bbq.content_version
# }