Skip to content

Commit

Permalink
Merge pull request #170 from asfadmin/dms/feat/add-tea-templates-dir
Browse files Browse the repository at this point in the history
Expose `html_template_dir` to CIRRUS
  • Loading branch information
lindsleycj authored Oct 23, 2023
2 parents c6beab7 + 34e3b4c commit c1b8074
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# CHANGELOG

## Unreleased
## v17.0.0.3

* Pass tags to Thin Egress App module in `cumulus` cirrus module
* Add `html_template_dir` variable to cumulus module

## v17.0.0.2

Expand Down Expand Up @@ -64,6 +65,10 @@ Error: Cycle: module.cumulus.module.archive.aws_lambda_function.publish_pdrs (de
Error: Cycle: module.cumulus.module.archive.aws_lambda_function.publish_granules (destroy), module.cumulus.module.archive.aws_cloudwatch_log_group.publish_granules_logs (destroy)
```

## v15.0.3.5

* Add `html_template_dir` variable to cumulus module

## v15.0.3.4

* Add `deploy_cumulus_distribution` variable to cumulus module
Expand Down
1 change: 1 addition & 0 deletions cumulus/thin-egress.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module "thin_egress_app" {
domain_cert_arn = var.thin_egress_domain_cert_arn
domain_name = var.distribution_url == null ? null : replace(replace(var.distribution_url, "/^https?:///", ""), "//$/", "")
download_role_in_region_arn = var.thin_egress_download_role_in_region_arn
html_template_dir = var.html_template_dir
jwt_algo = var.thin_egress_jwt_algo
jwt_secret_name = local.thin_egress_jwt_secret_name
lambda_code_dependency_archive_key = var.thin_egress_lambda_code_dependency_archive_key
Expand Down
12 changes: 12 additions & 0 deletions cumulus/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,15 @@ variable "s3credentials_endpoint" {
default = false
description = "Switch that will enable TEA deployment of the /s3credentials endpoint for s3 direct access."
}


variable "html_template_dir" {
type = string
default = null
description = <<-EOF
Directory in ConfigBucket where TEA will look for HTML templates.
TEA will not look into subdirectories.
Please put only HTML templates in this dir.
Leave this field blank to use default templates that are included with the lambda code zip file.
EOF
}

0 comments on commit c1b8074

Please sign in to comment.