File tree Expand file tree Collapse file tree 10 files changed +45
-55
lines changed Expand file tree Collapse file tree 10 files changed +45
-55
lines changed Original file line number Diff line number Diff line change
1
+ name : Terraform CI
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ terraform :
11
+ name : Terraform Lint & Validate
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Setup Mise
19
+ uses : jdx/mise-action@v2
20
+
21
+ - name : Run setup task
22
+ run : mise run setup
23
+
24
+ - name : Run lint task
25
+ run : mise run lint
26
+
27
+ - name : Run validate task
28
+ run : mise run validate
Original file line number Diff line number Diff line change 1
1
repos :
2
- - repo : https://github.com/antonbabenko/pre-commit-terraform
3
- rev : v1.88.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
2
+ - repo : local
4
3
hooks :
5
- - id : terraform_fmt
6
- - id : terraform_tflint
4
+ - id : mise-lint
5
+ name : mise lint
6
+ entry : mise
7
+ args : ["run", "lint"]
8
+ language : system
9
+ pass_filenames : false
10
+ - repo : https://github.com/terraform-docs/terraform-docs
11
+ rev : v0.12.0
12
+ hooks :
13
+ - id : terraform-docs-go
14
+ args : ["."]
Original file line number Diff line number Diff line change 1
1
formatter: "markdown document"
2
2
sections:
3
3
show: ['header', 'inputs', 'outputs']
4
+ output:
5
+ mode: "replace"
6
+ file: "module-docs.md"
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ plugin "terraform" {
5
5
6
6
plugin "aws" {
7
7
enabled = true
8
- version = " 0.37 .0"
8
+ version = " 0.40 .0"
9
9
source = " github.com/terraform-linters/tflint-ruleset-aws"
10
10
}
Original file line number Diff line number Diff line change @@ -110,8 +110,6 @@ module "services" {
110
110
brainstore_port = var. enable_brainstore ? module. brainstore [0 ]. port : null
111
111
brainstore_enable_historical_full_backfill = var. brainstore_enable_historical_full_backfill
112
112
brainstore_backfill_new_objects = var. brainstore_backfill_new_objects
113
- brainstore_backfill_disable_historical = var. brainstore_backfill_disable_historical
114
- brainstore_backfill_disable_nonhistorical = var. brainstore_backfill_disable_nonhistorical
115
113
brainstore_etl_batch_size = var. brainstore_etl_batch_size
116
114
117
115
# Service configuration
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ resource "aws_lambda_function" "ai_proxy" {
8
8
role = aws_iam_role. api_handler_role . arn
9
9
handler = " index.handler"
10
10
runtime = " nodejs22.x"
11
- architectures = [" arm64" ]
11
+ architectures = [" arm64" ]
12
12
memory_size = 1024
13
13
reserved_concurrent_executions = var. ai_proxy_reserved_concurrent_executions
14
14
timeout = 900
Original file line number Diff line number Diff line change @@ -69,8 +69,6 @@ resource "aws_lambda_function" "api_handler" {
69
69
BRAINSTORE_REALTIME_WAL_BUCKET = local.brainstore_s3_bucket
70
70
BRAINSTORE_ENABLE_HISTORICAL_FULL_BACKFILL = var.brainstore_enable_historical_full_backfill
71
71
BRAINSTORE_BACKFILL_NEW_OBJECTS = var.brainstore_backfill_new_objects
72
- BRAINSTORE_BACKFILL_DISABLE_HISTORICAL = var.brainstore_backfill_disable_historical
73
- BRAINSTORE_BACKFILL_DISABLE_NONHISTORICAL = var.brainstore_backfill_disable_nonhistorical
74
72
75
73
CLICKHOUSE_PG_URL = local.clickhouse_pg_url
76
74
CLICKHOUSE_CONNECT_URL = local.clickhouse_connect_url
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ resource "aws_lambda_function" "catchup_etl" {
26
26
BRAINSTORE_REALTIME_WAL_BUCKET = local.brainstore_s3_bucket
27
27
BRAINSTORE_ENABLE_HISTORICAL_FULL_BACKFILL = var.brainstore_enable_historical_full_backfill
28
28
BRAINSTORE_BACKFILL_NEW_OBJECTS = var.brainstore_backfill_new_objects
29
- BRAINSTORE_BACKFILL_DISABLE_HISTORICAL = var.brainstore_backfill_disable_historical
30
- BRAINSTORE_BACKFILL_DISABLE_NONHISTORICAL = var.brainstore_backfill_disable_nonhistorical
31
29
CLICKHOUSE_ETL_BATCH_SIZE = var.brainstore_etl_batch_size
32
30
CLICKHOUSE_PG_URL = local.clickhouse_pg_url
33
31
CLICKHOUSE_CONNECT_URL = local.clickhouse_connect_url
Original file line number Diff line number Diff line change @@ -221,18 +221,6 @@ variable "brainstore_backfill_new_objects" {
221
221
default = true
222
222
}
223
223
224
- variable "brainstore_backfill_disable_historical" {
225
- type = bool
226
- description = " Disable historical backfill for Brainstore"
227
- default = false
228
- }
229
-
230
- variable "brainstore_backfill_disable_nonhistorical" {
231
- type = bool
232
- description = " Disable non-historical backfill for Brainstore"
233
- default = false
234
- }
235
-
236
224
variable "brainstore_etl_batch_size" {
237
225
type = number
238
226
description = " The batch size for the ETL process"
@@ -249,25 +237,6 @@ variable "brainstore_default" {
249
237
}
250
238
}
251
239
252
- variable "brainstore_disable_optimization_worker" {
253
- type = bool
254
- description = " Whether to disable the optimization worker in Brainstore"
255
- default = false
256
- }
257
-
258
- variable "brainstore_enable_index_validation" {
259
- type = bool
260
- description = " Enable index validation for Brainstore"
261
- default = false
262
- }
263
-
264
- variable "brainstore_index_validation_only_deletes" {
265
- type = bool
266
- description = " Scope index validation to only deletes in Brainstore. Only applies if brainstore_enable_index_validation is true"
267
- default = true
268
- }
269
-
270
-
271
240
variable "lambda_version_tag_override" {
272
241
description = " Optional override for the lambda version tag. If not provided, will use locked versions from VERSIONS.json"
273
242
type = string
Original file line number Diff line number Diff line change @@ -347,18 +347,6 @@ variable "brainstore_backfill_new_objects" {
347
347
default = true
348
348
}
349
349
350
- variable "brainstore_backfill_disable_historical" {
351
- type = bool
352
- description = " Disable historical backfill for Brainstore. Don't modify this unless instructed by Braintrust."
353
- default = false
354
- }
355
-
356
- variable "brainstore_backfill_disable_nonhistorical" {
357
- type = bool
358
- description = " Disable non-historical backfill for Brainstore. Don't modify this unless instructed by Braintrust."
359
- default = false
360
- }
361
-
362
350
variable "brainstore_etl_batch_size" {
363
351
type = number
364
352
description = " The batch size for the ETL process"
You can’t perform that action at this time.
0 commit comments