Skip to content

deployment target commands crash for AWS ECS targets #604

Closed

Description

@benPearce1

The bug

Running deployment-target view or deployment-target list where the target is AWS ECS will cause the CLI to crash

Command to reproduce

octopus deployment-target view "aws ecs" -f basic -s default

Outcome

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x10341ee9c]

goroutine 1 [running]:
github.com/OctopusDeploy/cli/pkg/cmd/target/view.getDeploymentTargetAsBasic(0x1400018c8a0, 0x140002ea000)
        /Users/benpearce/git/cli/pkg/cmd/target/view/view.go:219 +0x38c
github.com/OctopusDeploy/cli/pkg/cmd/target/view.ViewRun.func3(0x16cf53107?)
        /Users/benpearce/git/cli/pkg/cmd/target/view/view.go:58 +0x28
github.com/OctopusDeploy/cli/pkg/output.PrintResource[...](0x140002ea000?, 0x140002f4008, {0x140001867c0, {{0x140002f65a0, 0x9, 0x9}, 0x140001867d0}, 0x140001867e0})
        /Users/benpearce/git/cli/pkg/output/print_resource.go:40 +0xb0
github.com/OctopusDeploy/cli/pkg/cmd/target/view.ViewRun(0x1400018c8a0)
        /Users/benpearce/git/cli/pkg/cmd/target/view/view.go:47 +0x1d4
github.com/OctopusDeploy/cli/pkg/cmd/target/view.NewCmdView.func1(0x140002f4008, {0x1400018ecd0, 0x1, 0x10348d82b?})
        /Users/benpearce/git/cli/pkg/cmd/target/view/view.go:32 +0xc0
github.com/spf13/cobra.(*Command).execute(0x140002f4008, {0x1400018ec80, 0x5, 0x5})
        /Users/benpearce/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916 +0x5e0
github.com/spf13/cobra.(*Command).ExecuteC(0x1400029a008)
        /Users/benpearce/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x2ec
github.com/spf13/cobra.(*Command).Execute(0x103775d30?)
        /Users/benpearce/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968 +0x1c
main.main()
        /Users/benpearce/git/cli/cmd/octopus/main.go:81 +0x628

Versions

cli: all

Octopus Server: n/a

Links

Activity

  1. added 6 commits that reference this issue on Aug 19, 2026
    512e31f
    b1a191b
    1ce744f
    59c6661
    325e7c7
    3645edb
  2. added 6 commits that reference this issue on Aug 19, 2026
    898a953
    4819173
    6e7e08c
    ef38ed2
    c902a51
    18bea46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions