Skip to content

Commit a096169

Browse files
author
Phil Varner
authored
add stac-server enable_ingest_action_truncate configuration (#136)
1 parent 4213d25 commit a096169

File tree

9 files changed

+22
-2
lines changed

9 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Added
1111

12+
- Input to configure stac-server with ENABLE_INGEST_ACTION_TRUNCATE
13+
1214
### Changed
1315

1416
### Fixed
1517

18+
- The variable `enable_collections_authx` defaulted to true, should have defaulted to false.
19+
1620
### Removed
1721

1822
## [2.42.0] - 2025-04-08
1923

2024
### Added
2125

22-
- Added inputs to configure stac_id, stac_title, stac_description, and enable_collections_authx
26+
- Added inputs to configure stac-server with stac_id, stac_title, stac_description, and enable_collections_authx
2327

2428
## [2.41.0] - 2025-03-27
2529

ci.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ stac_server_inputs = {
3030
domain_alias = ""
3131
enable_transactions_extension = false
3232
enable_collections_authx = false
33+
enable_ingest_action_truncate = false
3334
collection_to_index_mappings = ""
3435
opensearch_version = "OpenSearch_2.17"
3536
opensearch_cluster_instance_type = "t3.small.search"

default.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ stac_server_inputs = {
3232
domain_alias = ""
3333
enable_transactions_extension = false
3434
enable_collections_authx = false
35+
enable_ingest_action_truncate = false
3536
collection_to_index_mappings = ""
3637
opensearch_version = "OpenSearch_2.17"
3738
opensearch_cluster_instance_type = "t3.small.search"

inputs.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ variable "stac_server_inputs" {
8686
domain_alias = string
8787
enable_transactions_extension = bool
8888
enable_collections_authx = bool
89+
enable_ingest_action_truncate = bool
8990
collection_to_index_mappings = string
9091
opensearch_version = optional(string)
9192
opensearch_cluster_instance_type = string
@@ -161,6 +162,7 @@ variable "stac_server_inputs" {
161162
domain_alias = ""
162163
enable_transactions_extension = false
163164
enable_collections_authx = false
165+
enable_ingest_action_truncate = false
164166
collection_to_index_mappings = ""
165167
opensearch_version = "OpenSearch_2.17"
166168
opensearch_cluster_instance_type = "t3.small.search"

modules/stac-server/api.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ resource "aws_lambda_function" "stac_server_api" {
2929
)
3030
ENABLE_TRANSACTIONS_EXTENSION = var.enable_transactions_extension
3131
ENABLE_COLLECTIONS_AUTHX = var.enable_collections_authx
32+
ENABLE_INGEST_ACTION_TRUNCATE = var.enable_ingest_action_truncate
3233
STAC_API_ROOTPATH = (
3334
var.stac_api_rootpath != null
3435
? var.stac_api_rootpath

modules/stac-server/inputs.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ variable "enable_transactions_extension" {
5252
variable "enable_collections_authx" {
5353
description = "Enable Collections Authx"
5454
type = string
55-
default = true
55+
default = false
56+
}
57+
58+
variable "enable_ingest_action_truncate" {
59+
description = "Enable Ingest Action Truncate"
60+
type = string
61+
default = false
5662
}
5763

5864
variable "stac_api_stage" {

profiles/core/inputs.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ variable "stac_server_inputs" {
8686
domain_alias = string
8787
enable_transactions_extension = bool
8888
enable_collections_authx = bool
89+
enable_ingest_action_truncate = bool
8990
collection_to_index_mappings = string
9091
opensearch_version = optional(string)
9192
opensearch_cluster_instance_type = string
@@ -161,6 +162,7 @@ variable "stac_server_inputs" {
161162
domain_alias = ""
162163
enable_transactions_extension = false
163164
enable_collections_authx = false
165+
enable_ingest_action_truncate = false
164166
collection_to_index_mappings = ""
165167
opensearch_version = "OpenSearch_2.17"
166168
opensearch_cluster_instance_type = "t3.small.search"

profiles/stac-server/inputs.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ variable "stac_server_inputs" {
4949
domain_alias = string
5050
enable_transactions_extension = bool
5151
enable_collections_authx = bool
52+
enable_ingest_action_truncate = bool
5253
collection_to_index_mappings = string
5354
opensearch_version = optional(string)
5455
opensearch_cluster_instance_type = string
@@ -124,6 +125,7 @@ variable "stac_server_inputs" {
124125
domain_alias = ""
125126
enable_transactions_extension = false
126127
enable_collections_authx = false
128+
enable_ingest_action_truncate = false
127129
collection_to_index_mappings = ""
128130
opensearch_version = "OpenSearch_2.17"
129131
opensearch_cluster_instance_type = "t3.small.search"

profiles/stac-server/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module "stac-server" {
1111
stac_description = var.stac_server_inputs.stac_description
1212
enable_transactions_extension = var.stac_server_inputs.enable_transactions_extension
1313
enable_collections_authx = var.stac_server_inputs.enable_collections_authx
14+
enable_ingest_action_truncate = var.stac_server_inputs.enable_ingest_action_truncate
1415
collection_to_index_mappings = var.stac_server_inputs.collection_to_index_mappings
1516
opensearch_version = var.stac_server_inputs.opensearch_version
1617
opensearch_cluster_instance_type = var.stac_server_inputs.opensearch_cluster_instance_type

0 commit comments

Comments
 (0)