From 039be57dd266d362074ab3c7e7255e42f98e03be Mon Sep 17 00:00:00 2001 From: Menno Finlay-Smits Date: Thu, 26 Jun 2025 03:26:44 +1200 Subject: [PATCH] Include ARN in "replicate list" output (#5215) The "replicate resync start" command requires the remote bucket ARN. This is currently difficult to obtain and requires picking through the output of "replicate list --json". Worse still, the JSON output doesn't contain the human-readable host for the bucket, making it difficult to know that you've got the correct one. This change solves the issue by including the ARN in the default list output. --- cmd/replicate-list.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/replicate-list.go b/cmd/replicate-list.go index 74589c48..58bb9339 100644 --- a/cmd/replicate-list.go +++ b/cmd/replicate-list.go @@ -111,6 +111,7 @@ func (l replicateListMessage) String() string { sb.WriteString(fmt.Sprintf(" Rule ID: %s\n", console.Colorize("Val", r.ID))) sb.WriteString(fmt.Sprintf(" Priority: %s\n", console.Colorize("Val", r.Priority))) + sb.WriteString(fmt.Sprintf(" ARN: %s\n", console.Colorize("Val", r.Destination.Bucket))) if r.Filter.And.Prefix != "" { sb.WriteString(fmt.Sprintf(" Prefix: %s\n", console.Colorize("Val", r.Filter.And.Prefix))) }