-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
42 lines (39 loc) · 732 Bytes
/
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
module "container" {
source = "../../"
container_name = "name"
container_image = "cloudposse/geodesic"
environment = [
{
name = "string_var"
value = "I am a string"
},
{
name = "true_boolean_var"
value = true
},
{
name = "false_boolean_var"
value = false
},
{
name = "integer_var"
value = 42
},
]
port_mappings = [
{
containerPort = 8080
hostPort = 80
protocol = "tcp"
},
{
containerPort = 8081
hostPort = 443
protocol = "udp"
},
]
}
output "json" {
description = "Container definition in JSON format"
value = "${module.container.json}"
}