-
Notifications
You must be signed in to change notification settings - Fork 4
/
production.tf
42 lines (31 loc) · 1.06 KB
/
production.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
resource "random_id" "random_id_prefix" {
byte_length = 2
}
module "iam" {
source = "./modules/iam"
region = var.region
environment = var.environment
random_id_prefix = random_id.random_id_prefix.hex
}
module "apprunner" {
source = "./modules/apprunner"
region = var.region
environment = var.environment
random_id_prefix = random_id.random_id_prefix.hex
isECR = var.isECR
service_name = var.service_name
auto_scaling_configuration_name = var.auto_scaling_configuration_name
connection_name = var.connection_name
//isECR = true
image_repository_type = var.image_repository_type
image_identifier = var.image_identifier
auto_deployments_enabled = var.auto_deployments_enabled
app_runner_role = module.iam.app_runner_role
//isGithub = true
build_command = var.build_command
runtime = var.runtime
start_command = var.start_command
configuration_source = var.configuration_source
//Requiredt for both
port = var.port
}