Skip to content

Commit

Permalink
fix(tf): wait for image to be pushed before using in lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
ividito committed Jun 1, 2024
1 parent 7939bf1 commit 4fc0f5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ resource "aws_lambda_function" "workflows_api_handler" {
timeout = 30
image_uri = "${aws_ecr_repository.workflows_api_lambda_repository.repository_url}:latest"

# prevents handler from instantiating if provisioner has not created an image
depends_on = [ null_resource.if_change_run_provisioner ]

vpc_config {
subnet_ids = var.subnet_ids
security_group_ids = [aws_security_group.workflows_api_handler_sg.id]
Expand Down

0 comments on commit 4fc0f5f

Please sign in to comment.