mirror of
https://github.com/docker/compose.git
synced 2026-02-09 10:09:26 +08:00
list stacks by project name for ecs
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
@@ -303,7 +303,11 @@ func (s sdk) GetStackID(ctx context.Context, name string) (string, error) {
|
||||
}
|
||||
|
||||
func (s sdk) ListStacks(ctx context.Context, name string) ([]compose.Stack, error) {
|
||||
cfStacks, err := s.CF.DescribeStacksWithContext(ctx, &cloudformation.DescribeStacksInput{})
|
||||
params := cloudformation.DescribeStacksInput{}
|
||||
if name != "" {
|
||||
params.StackName = &name
|
||||
}
|
||||
cfStacks, err := s.CF.DescribeStacksWithContext(ctx, ¶ms)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user