Class: AwsCftTools::Runbooks::Stacks

Inherits:
AwsCftTools::Runbook::Report show all
Defined in:
lib/aws_cft_tools/runbooks/stacks.rb

Overview

Images - report on available AMIs

Examples:

% aws-cli stacks              # list all known stacks
% aws-cli stacks -e QA        # list all known stacks tagged for the QA environment
% aws-cli stacks -e QA -r App # list all known stacks tagged for the QA environment and App role

Instance Attribute Summary

Attributes inherited from AwsCftTools::Runbook

#client, #options

Instance Method Summary collapse

Methods inherited from AwsCftTools::Runbook::Report

#run

Methods inherited from AwsCftTools::Runbook

#_run, #checking, #debug, #detail, #doing, #initialize, #narrative, #operation, #run

Constructor Details

This class inherits a constructor from AwsCftTools::Runbook

Instance Method Details

#columnsArray<String>

Returns:

  • (Array<String>)


24
25
26
# File 'lib/aws_cft_tools/runbooks/stacks.rb', line 24

def columns
  environment_column + role_column + %w[filename created_at name state]
end

#itemsArray<AwsCftTools::Stack>

Returns:



17
18
19
# File 'lib/aws_cft_tools/runbooks/stacks.rb', line 17

def items
  client.stacks.sort_by(&method(:sort_key))
end