Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/0.1.2 #45

Merged
merged 14 commits into from
Nov 25, 2024
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security

## [0.1.2]
### Added
### Changed
- BIG terraform failing in SWOT venues due to long function(lambda) names
### Deprecated
### Removed
### Fixed
### Security

## [0.1.1]

### Added
Expand Down
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# BIGnBIT Module In Cumulus Deployment (cumulus-tf)
- BIGnBIT Module used in `cumulus-deploy-tf/cumulus-tf`
- Module Name: `big_and_bit_module`
- Source ZIP: `https://github.com/podaac/bignbit/releases/download/0.1.1/bignbit-0.1.1-cumulus-tf.zip`
- lambda_container_image_uri: `ghcr.io/podaac/bignbit/bignbit:0.1.1`
- Source ZIP: `https://github.com/podaac/bignbit/releases/download/0.1.2/bignbit-0.1.2-cumulus-tf.zip`
- lambda_container_image_uri: `ghcr.io/podaac/bignbit/bignbit:0.1.2`

## Terraform ZIP

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bignbit"
version = "0.1.1"
version = "0.1.2rc5"
description = "Browse image generation and transfer"
authors = ["PO.DAAC <[email protected]>"]
license = "Apache 2.0"
Expand Down
30 changes: 15 additions & 15 deletions terraform/lambda_functions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ locals {
ecr_image_name_and_tag = split(":", element(local.lambda_container_image_uri_split, length(local.lambda_container_image_uri_split) - 1))
ecr_image_name = "${local.environment}-${element(local.ecr_image_name_and_tag, 0)}"
ecr_image_tag = element(local.ecr_image_name_and_tag, 1)
build_image_sets_function_name = "${local.lambda_resources_name}-build_image_sets-lambda"
send_to_gitc_function_name = "${local.lambda_resources_name}-send_to_gitc-lambda"
handle_gitc_response_function_name = "${local.lambda_resources_name}-handle_gitc_response-lambda"
build_image_sets_function_name = "${local.lambda_resources_name}-build_image_sets"
send_to_gitc_function_name = "${local.lambda_resources_name}-send_to_gitc"
handle_gitc_response_function_name = "${local.lambda_resources_name}-handle_gitc_response"
}

resource aws_ecr_repository "lambda-image-repo" {
Expand Down Expand Up @@ -67,7 +67,7 @@ resource "aws_lambda_function" "get_dataset_configuration" {
image_config {
command = ["bignbit.get_dataset_configuration.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-get_dataset_configuration-lambda"
function_name = "${local.lambda_resources_name}-get_dataset_configuration"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -98,7 +98,7 @@ resource "aws_lambda_function" "get_granule_umm_json" {
image_config {
command = ["bignbit.get_granule_umm_json.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-get_granule_umm_json-lambda"
function_name = "${local.lambda_resources_name}-get_granule_umm_json"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -131,7 +131,7 @@ resource "aws_lambda_function" "get_collection_concept_id" {
image_config {
command = ["bignbit.get_collection_concept_id.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-get_collection_concept_id-lambda"
function_name = "${local.lambda_resources_name}-get_collection_concept_id"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -164,7 +164,7 @@ resource "aws_lambda_function" "identify_image_file" {
image_config {
command = ["bignbit.identify_image_file.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-identify_image_file-lambda"
function_name = "${local.lambda_resources_name}-identify_image_file"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -195,7 +195,7 @@ resource "aws_lambda_function" "submit_harmony_job" {
image_config {
command = ["bignbit.submit_harmony_job.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-submit_harmony_job-lambda"
function_name = "${local.lambda_resources_name}-submit_harmony_job"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -228,7 +228,7 @@ resource "aws_lambda_function" "generate_image_metadata" {
image_config {
command = ["bignbit.generate_image_metadata.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-generate_image_metadata-lambda"
function_name = "${local.lambda_resources_name}-generate_image_metadata"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -259,7 +259,7 @@ resource "aws_lambda_function" "get_harmony_job_status" {
image_config {
command = ["bignbit.get_harmony_job_status.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-get_harmony_job_status-lambda"
function_name = "${local.lambda_resources_name}-get_harmony_job_status"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -292,7 +292,7 @@ resource "aws_lambda_function" "copy_harmony_output_to_s3" {
image_config {
command = ["bignbit.copy_harmony_output_to_s3.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-copy_harmony_output_to_s3-lambda"
function_name = "${local.lambda_resources_name}-copy_harmony_output_to_s3"
role = var.lambda_role.arn
timeout = 30
memory_size = 256
Expand Down Expand Up @@ -325,7 +325,7 @@ resource "aws_lambda_function" "apply_opera_treatment" {
image_config {
command = ["bignbit.apply_opera_treatment.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-apply_opera_treatment-lambda"
function_name = "${local.lambda_resources_name}-apply_opera_treatment"
role = var.lambda_role.arn
timeout = 30
memory_size = 512
Expand Down Expand Up @@ -394,7 +394,7 @@ resource "aws_lambda_function" "send_to_gitc" {
image_config {
command = ["bignbit.send_to_gitc.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-send_to_gitc-lambda"
function_name = "${local.lambda_resources_name}-send_to_gitc"
role = var.lambda_role.arn
timeout = 15
memory_size = 128
Expand Down Expand Up @@ -428,7 +428,7 @@ resource "aws_lambda_function" "handle_gitc_response" {
image_config {
command = ["bignbit.handle_gitc_response.handler"]
}
function_name = "${local.lambda_resources_name}-handle_gitc_response-lambda"
function_name = "${local.lambda_resources_name}-handle_gitc_response"
role = var.lambda_role.arn
timeout = 5
memory_size = 128
Expand Down Expand Up @@ -459,7 +459,7 @@ resource "aws_lambda_function" "save_cma_message" {
image_config {
command = ["bignbit.save_cma_message.lambda_handler"]
}
function_name = "${local.lambda_resources_name}-save_cma_message-lambda"
function_name = "${local.lambda_resources_name}-save_cma_message"
role = var.lambda_role.arn
timeout = 15
memory_size = 128
Expand Down
4 changes: 2 additions & 2 deletions terraform/state_machine_definition.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
{
"Variable":"$.payload.harmony_job_status",
"StringMatches":"successful",
"Next":"Copy Harmony Results to S3",
"Next":"Copy Harmony Output to S3",
"Comment":"Job successful"
},
{
Expand All @@ -344,7 +344,7 @@
],
"Default":"Wait 20 Seconds"
},
"Copy Harmony Results to S3":{
"Copy Harmony Output to S3":{
"Type":"Task",
"Resource":"${CopyHarmonyOutputToS3Lambda}",
"Parameters":{
Expand Down