-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
46 lines (36 loc) · 780 Bytes
/
Copy pathmain.tf
File metadata and controls
46 lines (36 loc) · 780 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
provider "aws" {
region = var.aws_region
}
module "vpc" {
source = "./modules/vpc"
}
module "ec2" {
source = "./modules/ec2"
vpc_id = module.vpc.vpc_id
public_subnet = module.vpc.public_subnet
instance_type = var.instance_type
ami_id = var.ami_id
ec2_name = var.ec2_name
ec2_count = var.ec2_count
}
module "lambda" {
source = "./modules/lambda"
}
module "api" {
source = "./modules/api"
lambda_function_arn = module.lambda.function_arn
aws_region = var.aws_region
}
module "dynamo" {
source = "./modules/dynamo"
}
output "api_endpoint" {
value = module.api.api_endpoint
}
output "state_endpoint" {
value = module.api.state_endpoint
}
output "api_key" {
value = module.api.api_key
sensitive = true
}