Skip to content

Commit

Permalink
Merge pull request #13 from yenes56/feature/PODAAC-3366
Browse files Browse the repository at this point in the history
remove log2elasticsearch lambda reference and replaced with optional …
  • Loading branch information
amarouane-ABDELHAK authored Apr 21, 2021
2 parents fb80017 + b11da69 commit ed0c297
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 9 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased] - xxxx-xx-xx

### Added
### Changed
- https://github.com/ghrcdaac/dmrpp-generator/issues/12
- Modification to fix the above issue.
### Deprecated
### Removed
### Fixed
### Security
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module "dmrpp-generator" {
// Required parameters
source = "https://github.com/ghrcdaac/dmrpp-generator/releases/download/<tag_num>/dmrpp-generator.zip"
cluster_arn = module.cumulus.ecs_cluster_arn
log2elasticsearch_lambda_function_arn = module.cumulus.log2elasticsearch_lambda_function_arn
region = var.region
prefix = var.prefix
docker_image = var.dmrpp-generator-docker-image
Expand All @@ -49,6 +48,8 @@ module "dmrpp-generator" {
desired_count = 1 // Default to 1
docker_image = "ghrcdaac/dmrpp-generator:<tag_num>"
}
log_destination_arn = var.aws_log_mechanism (optional)
```
In [variables.tf](https://github.com/nasa/cumulus-template-deploy/blob/master/cumulus-tf/variables.tf)
file you need to define
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "dmrpp_service" {
prefix = var.prefix
cluster_arn = var.cluster_arn
desired_count = var.desired_count
log2elasticsearch_lambda_function_arn = var.log2elasticsearch_lambda_function_arn
log_destination_arn = var.log_destination_arn
docker_image = var.docker_image
cpu = var.cpu
memory_reservation = var.memory_reservation
Expand Down
10 changes: 5 additions & 5 deletions modules/dmrpp_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module "dmrpp_ecs_task_module" {
}

module "dmrpp_service" {
source = "https://github.com/nasa/cumulus/releases/download/v5.0.1/terraform-aws-cumulus-ecs-service.zip"
source = "https://github.com/nasa/cumulus/releases/download/v8.0.0/terraform-aws-cumulus-ecs-service.zip"


prefix = var.prefix
Expand All @@ -21,10 +21,10 @@ module "dmrpp_service" {
cluster_arn = var.cluster_arn
desired_count = var.desired_count
image = var.docker_image
log2elasticsearch_lambda_function_arn = var.log2elasticsearch_lambda_function_arn
cpu = var.cpu
memory_reservation = var.memory_reservation
volumes = var.volumes
log_destination_arn = var.log_destination_arn
cpu = var.cpu
memory_reservation = var.memory_reservation
volumes = var.volumes

environment = {
AWS_DEFAULT_REGION = var.region
Expand Down
6 changes: 5 additions & 1 deletion modules/dmrpp_service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ variable "cpu" {}
variable "memory_reservation" {}
variable "region" {}
variable "cluster_arn" {}
variable "log2elasticsearch_lambda_function_arn" {}
variable "log_destination_arn" {
type = string
default = null
description = "A shared AWS:Log:Destination that receives logs in log_groups"
}
variable "docker_image" {}
variable "volumes" {}
6 changes: 5 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ variable "memory_reservation" {
default = 900
}
variable "cluster_arn" {}
variable "log2elasticsearch_lambda_function_arn" {}
variable "log_destination_arn" {
type = string
default = null
description = "A shared AWS:Log:Destination that receives logs in log_groups"
}
variable "docker_image" {
default = "ghrcdaac/dmrpp-generator:latest"
}
Expand Down

0 comments on commit ed0c297

Please sign in to comment.