Commits

Pior Bastida  committed 8b103d8

add a cfn sub-command to display stacks outputs

  • Participants
  • Parent commits 2fac46d

Comments (0)

Files changed (1)

 
 @arg('stack_name', help=HELP_SN)
 @wrap_errors(ValueError)
+def outputs(args):
+    stack = find_one_stack(args.stack_name, summary=False)
+
+    yield format_stack_summary(stack) + '\n'
+
+    for output in stack.outputs:
+        yield str(output)
+
+
+@arg('stack_name', help=HELP_SN)
+@wrap_errors(ValueError)
 def resources(args):
     stack = find_one_stack(args.stack_name, summary=False)
 
                         update,
                         delete,
                         info,
+                        outputs,
                         resources,
                         events
                         ])