Skip to content

Commit 92b285f

Browse files
chore: add timestamp in json body to trigger job for every terraform apply
1 parent 65bb2ae commit 92b285f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,11 @@ resource "azapi_resource_action" "job_execution_now" {
633633
method = "POST"
634634
response_export_values = ["*"]
635635

636+
body = jsonencode({
637+
# Add a dynamic field to force re-creation on every apply
638+
trigger = timestamp()
639+
})
640+
636641
depends_on = [azapi_resource.container_app_job_agentless]
637642
}
638643

0 commit comments

Comments
 (0)