generated from ExamProCo/terraform-beginner-bootcamp-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
43 lines (43 loc) · 1.1 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
terraform {
required_providers {
terratowns = {
source = "local.providers/local/terratowns"
version = "1.0.0"
}
}
#backend "remote" {
# hostname = "app.terraform.io"
# organization = "terraform-bootcamp-nitin"
# workspaces {
# name = "terra-house-1"
# }
#}
# cloud {
# organization = "terraform-bootcamp-nitin"
# workspaces {
# name = "terra-house-1"
# }
# }
}
provider "terratowns" {
endpoint = var.terratowns_endpoint
user_uuid = var.teacherseat_user_uuid
token = var.terratowns_access_token
}
module "terrahouse_aws" {
source = "./modules/terrahouse_aws"
user_uuid = var.teacherseat_user_uuid
index_html_filepath = var.index_html_filepath
error_html_filepath = var.error_html_filepath
content_version = var.content_version
assets_path = var.assets_path
}
resource "terratowns_home" "home" {
name = "Places to visit in Mumbai"
description = <<DESCRIPTION
If you're in Mumbai,INDIA and want to explore the city Cick on the page.
DESCRIPTION
domain_name = module.terrahouse_aws.cloudfront_url
town = "the-nomad-pad"
content_version = 1
}