Skip to content

Commit

Permalink
Merge pull request #96 from unity-sds/feature/dapa-param-store
Browse files Browse the repository at this point in the history
Added DAPA lambdas invoke arn values to parameter store
  • Loading branch information
ngachung authored Oct 31, 2022
2 parents d498fe3 + 83356b0 commit ed93a74
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- [#94](https://github.com/unity-sds/unity-data-services/issues/94) Added DAPA lambdas function name to parameter store for UCS API Gateway integration
### Changed
### Fixed

## [1.8.1] - 2022-09-27
### Added
- [#79](https://github.com/unity-sds/unity-data-services/pull/79) Collection Creation endpoint with DAPA format
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name="cumulus_lambda_functions",
version="1.8.1",
version="1.9.0",
packages=find_packages(),
install_requires=install_requires,
tests_require=['mock', 'nose', 'sphinx', 'sphinx_rtd_theme', 'coverage', 'pystac', 'python-dotenv', 'jsonschema'],
Expand Down
26 changes: 25 additions & 1 deletion tf-module/unity-cumulus/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,28 @@ resource "aws_lambda_function" "cumulus_collections_creation_dapa_facade" {
security_group_ids = local.security_group_ids_set ? var.security_group_ids : [aws_security_group.unity_cumulus_lambda_sg[0].id]
}
tags = var.tags
}
}

resource "aws_ssm_parameter" "cumulus_collections_dapa_ssm_param" {
name = "/unity/unity-ds/api-gateway/integrations/collections-dapa-function-name"
type = "String"
value = aws_lambda_function.cumulus_collections_dapa.function_name
}

resource "aws_ssm_parameter" "cumulus_collections_create_dapa_ssm_param" {
name = "/unity/unity-ds/api-gateway/integrations/collections-create-dapa-function-name"
type = "String"
value = aws_lambda_function.cumulus_collections_creation_dapa_facade.function_name
}

resource "aws_ssm_parameter" "cumulus_collections_ingest_dapa_ssm_param" {
name = "/unity/unity-ds/api-gateway/integrations/collections-ingest-dapa-function-name"
type = "String"
value = aws_lambda_function.cumulus_collections_ingest_cnm_dapa.function_name
}

resource "aws_ssm_parameter" "cumulus_granules_dapa_ssm_param" {
name = "/unity/unity-ds/api-gateway/integrations/granules-dapa-function-name"
type = "String"
value = aws_lambda_function.cumulus_granules_dapa.function_name
}

0 comments on commit ed93a74

Please sign in to comment.