From 476cbd75c80cf5f123cfd3615c617100ab830f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=BCller?= Date: Fri, 13 Dec 2024 17:35:38 +0100 Subject: [PATCH] internal/cloudapi/v2/handler: use compose id for filename For easier tracing and finding the result in AWS, we should use the compose id in the filename. --- internal/cloudapi/v2/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cloudapi/v2/handler.go b/internal/cloudapi/v2/handler.go index 34ecd88212..e65c4dc673 100644 --- a/internal/cloudapi/v2/handler.go +++ b/internal/cloudapi/v2/handler.go @@ -1233,7 +1233,7 @@ func (h *apiHandlers) postCloneComposeImpl(ctx echo.Context, id string) error { Ami: options.Ami, SourceRegion: options.Region, TargetRegion: img.Region, - TargetName: fmt.Sprintf("composer-api-%s", uuid.New().String()), + TargetName: fmt.Sprintf("composer-api-%s", finalJob), } finalJob, err = h.server.workers.EnqueueAWSEC2CopyJob(copyJob, finalJob, channel) if err != nil {