generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathfixtures.us-east-2.tfvars
140 lines (119 loc) · 2.95 KB
/
fixtures.us-east-2.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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
region = "us-east-2"
namespace = "eg"
environment = "ue2"
stage = "test"
name = "amplify"
# https://docs.aws.amazon.com/amplify/latest/userguide/getting-started.html
# The GitHub PAT needs to have the scope `admin:repo_hook`
# Refer to "Setting up the Amplify GitHub App for AWS CloudFormation, CLI, and SDK deployments"
# in https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html
github_personal_access_token_secret_path = "/cpco-amplify-app-test-github-token"
platform = "WEB"
repository = "https://github.com/cloudposse-tests/amplify"
iam_service_role_enabled = true
# https://docs.aws.amazon.com/amplify/latest/userguide/ssr-CloudWatch-logs.html
iam_service_role_actions = [
"logs:CreateLogStream",
"logs:CreateLogGroup",
"logs:DescribeLogGroups",
"logs:PutLogEvents"
]
enable_auto_branch_creation = false
enable_branch_auto_build = true
enable_branch_auto_deletion = true
enable_basic_auth = false
auto_branch_creation_patterns = [
"*",
"*/**"
]
auto_branch_creation_config = {
# Enable auto build for the created branches
enable_auto_build = true
}
# The build spec for React
build_spec = <<-EOT
version: 1
frontend:
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn run build
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
EOT
custom_rules = [
{
source = "/<*>"
status = "404"
target = "/index.html"
}
]
# Custom header, HTST to always block HTTP and always redirect to HTTPS
custom_headers = <<-EOT
customHeaders:
- pattern: '**'
headers:
- key: 'Strict-Transport-Security'
value: 'max-age=31536000; includeSubDomains'
EOT
environment_variables = {
ENV = "test"
}
environments = {
main = {
branch_name = "main"
enable_auto_build = true
backend_enabled = false
enable_performance_mode = true
enable_pull_request_preview = false
framework = "React"
stage = "PRODUCTION"
}
dev = {
branch_name = "dev"
enable_auto_build = true
backend_enabled = false
enable_performance_mode = false
enable_pull_request_preview = true
framework = "React"
stage = "DEVELOPMENT"
}
}
domains = {
"test.net" = {
enable_auto_sub_domain = true
wait_for_verification = false
sub_domain = [
{
branch_name = "main"
prefix = ""
},
{
branch_name = "dev"
prefix = "dev"
}
]
}
"test.io" = {
enable_auto_sub_domain = true
wait_for_verification = false
sub_domain = [
{
branch_name = "main"
prefix = ""
},
{
branch_name = "dev"
prefix = "dev"
}
]
}
}