-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-app.tfvars
57 lines (49 loc) · 2.21 KB
/
sample-app.tfvars
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
47
48
49
50
51
52
53
54
55
# -----------------------------------------------------------------------------
# App Configuration
#
# See variables.tf for descriptions of the fields.
# -----------------------------------------------------------------------------
region = "eu-central-1"
project_name = "demos"
app_name = "sample-app"
stage = "production"
domain = "canida.io"
app_subdomain = "sample-app"
vpc_id = "vpc-XXX"
# -----------------------------------------------------------------------------
# Public subnets to spawn the load balancer in and private subnets to spawn your container in.
#
# If your VPC only contains public subnets, then you can also use them for the private subnets variable.
# If you do so you need to set the variable "app_assign_public_ip" to true
# o.w. your container will not be able to access the internet to pull your container image.
# It works but I don't recommend it for anything but testing this setup.
# -----------------------------------------------------------------------------
private_subnets = ["subnet-XXX", "subnet-XXX", "subnet-XXX"]
public_subnets = ["subnet-XXX", "subnet-XXX", "subnet-XXX"]
app_assign_public_ip = false
# -----------------------------------------------------------------------------
# Add your own environment variables here. They will be available in your container.
# -----------------------------------------------------------------------------
app_environment = [
{
name = "KEY",
value = "VALUE"
}
]
app_health_check_path = "/"
app_port = 80
app_image = "nginx:alpine"
registry_secret_arn = ""
multi_az = true
default_tags = {
"app" = "sample-app"
"fqdn" = "sample-app.canida.io"
"project" = "demos"
"stage" = "production"
}
# -----------------------------------------------------------------------------
# AWS requires a service linked role for this setup to work properly.
# This role has to be created once per AWS account. If you worked with ECS before it might already exist.
# Enable this only if Terraform fails because the service linked role does not exist yet.
# -----------------------------------------------------------------------------
create_iam_service_linked_role = false