-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
26 lines (22 loc) · 672 Bytes
/
main.tf
File metadata and controls
26 lines (22 loc) · 672 Bytes
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
terraform {
cloud {
organization = "CoderUni"
workspaces {
name = "Personal_Blog"
}
}
}
module "aws_ghost_instance" {
source = "./modules/aws/ghost-instance"
aws_ami = var.aws_ami
aws_instance_type = var.aws_instance_type
aws_instance_volume_size = var.aws_instance_volume_size
aws_instance_volume_type = var.aws_instance_volume_type
aws_instance_public_key = var.aws_instance_public_key
}
module "cloudflare" {
source = "./modules/cloudflare"
cloudflare_domain = var.cloudflare_domain
cloudflare_zone_id = var.cloudflare_zone_id
ec2_public_ip = module.aws_ghost_instance.aws_ghost_instance_ip
}