Skip to content

Commit

Permalink
Use newer gfw-terraform-modules tag for new SGs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Aug 25, 2024
1 parent 6274219 commit 04e9de2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ locals {

# Docker image for FastAPI app
module "app_docker_image" {
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.3"
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.6-alpha"
image_name = substr(lower("${local.project}${local.name_suffix}"), 0, 64)
root_dir = "${path.root}/../"
tag = local.container_tag
}

# Docker image for GDAL Python Batch jobs
module "batch_gdal_python_image" {
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.3"
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.6-alpha"
image_name = substr(lower("${local.project}-gdal_python${local.name_suffix}"), 0, 64)
root_dir = "${path.root}/../"
docker_path = "batch"
Expand All @@ -49,7 +49,7 @@ module "batch_gdal_python_image" {

# Docker image for PixETL Batch jobs
module "batch_pixetl_image" {
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.3"
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.6-alpha"
image_name = substr(lower("${local.project}-pixetl${local.name_suffix}"), 0, 64)
root_dir = "${path.root}/../"
docker_path = "batch"
Expand All @@ -58,7 +58,7 @@ module "batch_pixetl_image" {

# Docker image for PostgreSQL Client Batch jobs
module "batch_postgresql_client_image" {
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.3"
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.6-alpha"
image_name = substr(lower("${local.project}-postgresql_client${local.name_suffix}"), 0, 64)
root_dir = "${path.root}/../"
docker_path = "batch"
Expand All @@ -67,7 +67,7 @@ module "batch_postgresql_client_image" {

# Docker image for Tile Cache Batch jobs
module "batch_tile_cache_image" {
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.3"
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.6-alpha"
image_name = substr(lower("${local.project}-tile_cache${local.name_suffix}"), 0, 64)
root_dir = "${path.root}/../"
docker_path = "batch"
Expand Down Expand Up @@ -121,7 +121,7 @@ module "fargate_autoscaling" {

# Using instance types with 1 core only
module "batch_aurora_writer" {
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/compute_environment?ref=v0.4.2.3"
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/compute_environment?ref=v0.4.2.6-alpha"
ecs_role_policy_arns = [
data.terraform_remote_state.core.outputs.iam_policy_s3_write_data-lake_arn,
data.terraform_remote_state.core.outputs.secrets_postgresql-reader_policy_arn,
Expand Down Expand Up @@ -152,7 +152,7 @@ module "batch_aurora_writer" {


module "batch_data_lake_writer" {
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/compute_environment?ref=v0.4.2.3"
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/compute_environment?ref=v0.4.2.6-alpha"
ecs_role_policy_arns = [
aws_iam_policy.query_batch_jobs.arn,
aws_iam_policy.s3_read_only.arn,
Expand Down

0 comments on commit 04e9de2

Please sign in to comment.