Skip to content

Commit

Permalink
Add latest tag to blazer image (#1190)
Browse files Browse the repository at this point in the history
Co-authored-by: Jimmy Royer <[email protected]>
  • Loading branch information
jzbahrai and jimleroyer authored Mar 21, 2024
1 parent 2257e3a commit 6df43c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aws/database-tools/blazer.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
locals {
image_tag = var.env == "production" ? var.blazer_image_tag : "latest"
}

resource "aws_ecs_cluster" "blazer" {
name = "blazer"

Expand Down Expand Up @@ -37,7 +41,7 @@ resource "aws_ecs_task_definition" "blazer" {
"name" : "blazer",
"cpu" : 0,
"essential" : true,
"image" : "${aws_ecr_repository.blazer.repository_url}:${var.blazer_image_tag}",
"image" : "${aws_ecr_repository.blazer.repository_url}:${local.image_tag}",
"logConfiguration" : {
"logDriver" : "awslogs",
"options" : {
Expand Down

0 comments on commit 6df43c7

Please sign in to comment.