Skip to content

Commit

Permalink
Drop image_url variable because it's injected via codebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Mar 5, 2024
1 parent 5f722ab commit 2b2a691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 2 additions & 6 deletions tf/environments/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ locals {
resource "aws_ecs_task_definition" "dataapi" {
family = "ooni-dataapi-production-td"
container_definitions = templatefile("${path.module}/templates/task_definition.json", {
image_url = "ooni/dataapi:${var.ooni_service_config.dataapi_version}",
# Image URL is updated via code build and code pipeline
image_url = "ooni/dataapi:latest",
container_name = local.container_name,
container_port = 80,
log_group_region = var.aws_region,
Expand Down Expand Up @@ -381,11 +382,6 @@ resource "aws_ecs_service" "dataapi" {

force_new_deployment = true

triggers = {
# see: https://github.com/hashicorp/terraform-provider-aws/issues/28070#issuecomment-1824780763
redeployment = plantimestamp()
}

tags = local.tags
}

Expand Down
5 changes: 0 additions & 5 deletions tf/environments/prod/terraform.tfvars.json

This file was deleted.

0 comments on commit 2b2a691

Please sign in to comment.