@@ -107,7 +107,8 @@ const (
107
107
akitaDockerImage = "akitasoftware/cli"
108
108
109
109
// 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"
111
112
)
112
113
113
114
// 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
563
564
return awf_next (getTaskState )
564
565
}
565
566
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 " )
571
572
printer .Infof ("You can also select a different task definition, or hit Ctrl+C to exit.\n " )
572
573
return awf_next (getTaskState )
573
574
}
0 commit comments