-
Notifications
You must be signed in to change notification settings - Fork 1
/
terraform.tfvars.example
104 lines (91 loc) · 2.26 KB
/
terraform.tfvars.example
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#### General vars
region = "eu-central-1"
project_name = "new-vpc"
env = "test"
#### VPC vars
nat_create = "false"
#### RDS vars
db_port = "5432" #for postgres
db_name = "postgres"
username = "master"
password = "master123"
skip_final_snapshot = true
#### ACM vars
backend_domain_name = "*.example.com"
validation_method = "DNS"
#### ECR vars
ecr_repository_name = ["backend","ui", "frontend"]
image_tag_mutability = "MUTABLE"
force_delete = false
image_count = 5
#### IAM
iam_user = "iam_user"
#### Load Balancer
loadbalancer_name = "example-backend"
loadbalancer_type = "application"
target_group_name = "test-target-group"
target_type = "ip"
health_check_path = "/api/health"
sg_allow_tcp_ports = [80, 443]
#### AMPLIFY
access_token = "your github access token"
github_repository = "https://github.com/example_repo/example_app"
app_name = "frontend"
branch_name = "develop"
stage = "PRODUCTION"
framework = "Next.js - SSR"
frontend_domain_name = "example.com"
dns_prefix_branch = ""
frontend_environment_variables = {
"_CUSTOM_IMAGE" = "amplify:al2023"
"_LIVE_UPDATES" = "[{\"pkg\":\"node\",\"type\":\"nvm\",\"version\":\"18.19.0\"}]"
"NEXT_PUBLIC_ENVIRONMENT" = "DEVNET"
}
build_spec = <<-EOT
version: 1
frontend:
phases:
preBuild:
commands:
- npm i -g pnpm
- pnpm i --frozen-lockfile
build:
commands:
- pnpm build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
EOT
custom_rules = [
{
source = "/<*>"
status = "404-200"
target = "/index.html"
condition = null
}
]
#### ECS task definition
task_name = "example-backend"
backend_environment_variables = {
HOST = "0.0.0.0"
PORT = "80"
}
cpu = 512
memory = 1024
#### ECS service
service_name = "example-backend"
desired_count = 1
#### IAM Role
iam_role_name = "name"
#### Elasticache
cluster_name = "test-cluster"
redis_engine = "redis"
redis_engine_version = "7.1"
node_type = "cache.t4g.micro"
num_cache_nodes = 1
parameter_group_name = ""
redis_port = 6379