I attached a network interface to this instance manually.
This caused gravitonctl termiante
to fail because the network interface is dependent on the instance.
There should be a check in place to see if the instance has any dependent resources
mathis@MacBook-Pro ~ % gravitonctl terminate instance
INFO[0000] Terminating: i-0546d514990d2711f
panic: DependencyViolation: resource sg-0e49b3c51acab7a5a has a dependent object
status code: 400, request id: 796b5740-b055-4ad9-9aed-b950c8493544
goroutine 1 [running]:
gravitonctl/cmd.glob..func5(0x105334400, {0x1400006def0, 0x1, 0x1})
/Users/mathis/git/gravitonctl/cmd/terminate.go:26 +0xd8
github.com/spf13/cobra.(*Command).execute(0x105334400, {0x1400006dec0, 0x1, 0x1})
/Users/mathis/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x640
github.com/spf13/cobra.(*Command).ExecuteC(0x14000330000)
/Users/mathis/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x410
github.com/spf13/cobra.(*Command).Execute(...)
/Users/mathis/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
gravitonctl/cmd.Execute()
/Users/mathis/git/gravitonctl/cmd/root.go:21 +0xcc
main.main()
/Users/mathis/git/gravitonctl/main.go:12 +0x20