Skip to content

Commit

Permalink
Merge pull request #59 from bhayden53/CALCLOUD-206
Browse files Browse the repository at this point in the history
terraform provider and module version pinning
  • Loading branch information
bhayden53 authored Mar 8, 2021
2 parents c2c271e + 4c00c3f commit 760d7f9
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 0 deletions.
29 changes: 29 additions & 0 deletions terraform/batch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@ provider "aws" {
region = var.region
}

terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.29.0"
}
hashicorp-template = {
source = "hashicorp/template"
version = "~> 2.2.0"
}
hashicorp-null = {
source = "hashicorp/null"
version = "~> 3.1.0"
}
hashicorp-external = {
source = "hashicorp/external"
version = "~> 2.1.0"
}
hashicorp-local = {
source = "hashicorp/local"
version = "~> 2.1.0"
}
hashicorp-random = {
source = "hashicorp/random"
version = "~> 3.1.0"
}
}
}

data "template_file" "userdata" {
template = file("${path.module}/user_data.sh")
vars = {
Expand Down
1 change: 1 addition & 0 deletions terraform/lambda_batch_events.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "calcloud_lambda_batchEvents" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 1.43.0"

function_name = "calcloud-job-events${local.environment}"
description = "listens for Batch failure events from cloudWatch event rule"
Expand Down
1 change: 1 addition & 0 deletions terraform/lambda_blackboard.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "calcloud_lambda_blackboard" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 1.43.0"

function_name = "calcloud-job-blackboard${local.environment}"
description = "scrapes the Batch console for job metadata and posts to S3 bucket for on-premise poller"
Expand Down
1 change: 1 addition & 0 deletions terraform/lambda_broadcast.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "calcloud_lambda_broadcast" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 1.43.0"

function_name = "calcloud-broadcast${local.environment}"
description = "Broadcasts the specified ipppssoot (must be in error state) by deleting all outputs and messages and re-placing."
Expand Down
1 change: 1 addition & 0 deletions terraform/lambda_job_delete.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "calcloud_lambda_deleteJob" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 1.43.0"

function_name = "calcloud-job-delete${local.environment}"
description = "accepts messages from s3 event and deletes either individual jobs by ipppssoot, or all active jobs"
Expand Down
1 change: 1 addition & 0 deletions terraform/lambda_job_rescue.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "calcloud_lambda_rescueJob" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 1.43.0"

function_name = "calcloud-job-rescue${local.environment}"
description = "Rescues the specified ipppssoot (must be in error state) by deleting all outputs and messages and re-placing."
Expand Down
2 changes: 2 additions & 0 deletions terraform/lambda_job_submit.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module "calcloud_lambda_submit" {
source = "terraform-aws-modules/lambda/aws"
# https://github.com/hashicorp/terraform/issues/17211
version = "~> 1.43.0"

function_name = "calcloud-job-submit${local.environment}"
description = "looks for placed-ipppssoot messages and submits jobs to Batch"
Expand Down
1 change: 1 addition & 0 deletions terraform/lambda_refresh_cache_logging.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "calcloud_lambda_refreshCache" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 1.43.0"

function_name = "calcloud-fileshare-refresh_cache${local.environment}"
description = "listens for refresh cache operations and logs them"
Expand Down
6 changes: 6 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ variable csys_ver {
type = string
default = "undefined"
}

variable pinned_tf_ver {
description = "the intended value of the terraform installation in the environment"
type = string
default = "0.14.7"
}

0 comments on commit 760d7f9

Please sign in to comment.