Skip to content

Commit 6719605

Browse files
committed
Update back-end image to the latest one in ECR if needed
Signed-off-by: Irving Popovetsky <[email protected]>
1 parent a05b488 commit 6719605

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

terraform/apps.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "aws_iam_role_policy_attachment" "ecs_task_execution_role_attach" {
2727
# logs_group = aws_cloudwatch_log_group.ecslogs.name
2828
# ecs_cluster_id = module.ecs.cluster_id
2929
# task_execution_role = data.aws_iam_role.ecs_task_execution_role.arn
30-
# image_tag = "master"
30+
# image_tag = "latest"
3131
# }
3232

3333
# resource "aws_lb_listener_rule" "python_backend_prod" {
@@ -54,7 +54,7 @@ resource "aws_iam_role_policy_attachment" "ecs_task_execution_role_attach" {
5454
# logs_group = aws_cloudwatch_log_group.ecslogs.name
5555
# ecs_cluster_id = module.ecs.cluster_id
5656
# task_execution_role = data.aws_iam_role.ecs_task_execution_role.arn
57-
# image_tag = "staging"
57+
# image_tag = "latest"
5858
# }
5959

6060
# resource "aws_lb_listener_rule" "python_backend_staging" {

terraform/python_backend/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "aws_ecs_task_definition" "python_backend" {
3333
container_definitions = jsonencode([
3434
{
3535
name = "python_backend_${var.env}"
36-
image = "operationcode/back-end:${var.image_tag}"
36+
image = "633607774026.dkr.ecr.us-east-2.amazonaws.com/back-end:${var.image_tag}"
3737
essential = true
3838

3939
portMappings = [

0 commit comments

Comments
 (0)