Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ This change was validated by the following observations:
- [ ] Changelog
- [ ] I have added my changes to CHANGELOG.md
- [ ] No changelog entry is necessary
- [ ] stac-server Version
- [ ] I have noted a version bump in the stac-server lambdas in CHANGELOG.md, and updated the `STAC_SERVER_TAG` throughout `/.github/workflows`
- [ ] stac-server Default, Built-In Version
- [ ] I have noted a version bump in the stac-server lambdas in CHANGELOG.md, updated the `STAC_SERVER_TAG` throughout `/.github/workflows`, and `inputs.stac_server_version` default value
- [ ] No stac-server version bump was performed
1 change: 1 addition & 0 deletions .github/workflows-WIP/release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
runs-on: ubuntu-latest
env:
CI: true
# Ensure this matches inputs.stac_server_version default value
STAC_SERVER_TAG: v3.10.0
steps:
- uses: actions/checkout@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
env:
CI: true
# Ensure this matches inputs.stac_server_version default value
STAC_SERVER_TAG: v3.10.0
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ stac-server.tgz
terraform-visual-report
terraform.tgz
historical-ingest/lambda/package/*
user_init_lambda_zip.zip
waiting_for_opensearch_lambda_zip.zip
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

- Support inputs.stac_server_version usage

### Added

### Changed
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- tfenv
- pre-commit
- nvm (if updating the built-in stac-server version)
- nvm (if updating the default, built-in stac-server version)

**General Updates**

Expand All @@ -16,10 +16,10 @@

4. Fill out the PR template

**Updating the Built-In stac-server Version**
**Updating the Default, Built-In stac-server Version**

We prepackage a specific stac-server version with each release of this repository. To change this prepackaged version:

1. Build stac-server and get its lambdas: `./scripts/update-lambdas.bash v3.10.0`

2. Follow the steps in the PR template to note this version change
2. Follow the steps in the PR template to note and propagate the change to appropriate files
20 changes: 20 additions & 0 deletions inputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
variable "stac_server_version" {
description = <<-DESCRIPTION
stac-server version. Leave this null to use the default, prepackaged version of stac-server.

If you need to use a custom version, set this variable to the desired version string *and* set
deploy_local_stac_server_artifacts = true. Note though that custom versions of stac-server are not
guaranteed to be compatible with this module.
DESCRIPTION

type = string
default = "v3.10.0"
}

variable "deploy_local_stac_server_artifacts" {
description = "Deploy STAC Server artifacts for local deploy"
type = bool
default = false
nullable = false
}

variable "stac_id" {
description = "STAC identifier"
type = string
Expand Down
1 change: 0 additions & 1 deletion providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ terraform {
source = "hashicorp/archive"
version = "~> 2.4"
}

}
}
14 changes: 14 additions & 0 deletions stac_server_local_setup.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Sets up artifacts for a local stac server deploy
resource "null_resource" "stac_server_local_artifact_setup" {
count = var.deploy_local_stac_server_artifacts == true && var.stac_server_version != null ? 1 : 0

triggers = {
stac_server_version = var.stac_server_version
}

provisioner "local-exec" {
interpreter = ["bash", "-ec"]
working_dir = path.module
command = "./scripts/update-lambdas.bash ${var.stac_server_version}"
}
}
Loading