@@ -107,7 +107,8 @@ const (
107107 akitaDockerImage = "akitasoftware/cli"
108108
109109 // Postman Insights Agent image location
110- postmanECRImage = "docker.postman.com/postman-insights-agent"
110+ postmanOldECRImage = "docker.postman.com/postman-insights-agent"
111+ postmanECRImage = "public.ecr.aws/postman/postman-insights-agent"
111112)
112113
113114// Run the "add to ECS" workflow until we complete or get an error.
@@ -563,11 +564,11 @@ func getTaskState(wf *AddWorkflow) (nextState optionals.Optional[AddWorkflowStat
563564 return awf_next (getTaskState )
564565 }
565566
566- // Also detect the Akita CLI image, to avoid having two copies of the agent
567- // running.
568- if matchesImage (image , akitaECRImage ) || matchesImage (image , akitaDockerImage ) {
569- printer .Errorf ("The selected task definition already has the image %q, indicating that the Akita CLI is currently installed.\n " , image )
570- printer .Infof ("The Akita CLI is no longer supported. Please uninstall it and try again.\n " )
567+ // Also detect old images, such as the Akita CLI or unsupported versions of Postman Insights Agent,
568+ // to avoid having two copies of the agent running simultaneously .
569+ if matchesImage (image , akitaECRImage ) || matchesImage (image , akitaDockerImage ) || matchesImage ( image , postmanOldECRImage ) {
570+ printer .Errorf ("The selected task definition already has the image %q, indicating that the agent is currently installed.\n " , image )
571+ printer .Infof ("This version of agent is no longer supported. Please uninstall it and try again.\n " )
571572 printer .Infof ("You can also select a different task definition, or hit Ctrl+C to exit.\n " )
572573 return awf_next (getTaskState )
573574 }
0 commit comments