Class: Sfn::Planner::Aws
- Inherits:
-
Sfn::Planner
- Object
- Sfn::Planner
- Sfn::Planner::Aws
- Defined in:
- lib/sfn/planner/aws.rb
Overview
AWS specific planner
Defined Under Namespace
Classes: Translator
Constant Summary collapse
- REPLACE_ON_CFN_INIT_UPDATE =
Resources that will be replaced on metadata init updates
[ 'AWS::AutoScaling::LaunchConfiguration' ]
Instance Attribute Summary collapse
-
#translators ⇒ Smash
Initialized translators.
Attributes inherited from Sfn::Planner
#arguments, #config, #origin_stack, #ui
Instance Method Summary collapse
-
#generate_plan(template, parameters) ⇒ Hash
Generate update report.
-
#initialize(*_) ⇒ Aws
constructor
Simple overload to load in aws resource set from sparkleformation.
Constructor Details
#initialize(*_) ⇒ Aws
Simple overload to load in aws resource set from sparkleformation
118 119 120 121 122 |
# File 'lib/sfn/planner/aws.rb', line 118 def initialize(*_) super SfnAws.load! @translators = Smash.new end |
Instance Attribute Details
#translators ⇒ Smash
Returns initialized translators.
114 115 116 |
# File 'lib/sfn/planner/aws.rb', line 114 def translators @translators end |
Instance Method Details
#generate_plan(template, parameters) ⇒ Hash
Generate update report
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/sfn/planner/aws.rb', line 130 def generate_plan(template, parameters) Smash.new( :stacks => Smash.new( origin_stack.name => plan_stack( origin_stack, template, parameters ) ), :added => Smash.new, :removed => Smash.new, :replace => Smash.new, :interrupt => Smash.new, :unavailable => Smash.new, :unknown => Smash.new ) end |