sparkleformation / sfn

SparkleFormation CLI
http://www.sparkleformation.io
Apache License 2.0
63 stars 24 forks source link

bug: plan did not capture options passed into .sfn.rb #300

Closed eatwithforks closed 4 years ago

eatwithforks commented 4 years ago

Description:

In my .sfn.rb, I have set an option capabilities

Configuration.new do
  options do
    capabilities ['CAPABILITY_IAM']
  end
end

When I executed rake sfn:plan, I get the following error message showing I'm missing the capabilities option even though I have it set in .sfn.rb

[ERROR]: Bad Request - InsufficientCapabilitiesException: Requires capabilities : [CAPABILITY_IAM]

This is because plan.rb did not capture any options set in .sfn.rb so that's why I get the bad request with missing capabilities error.

Fix is to capture options defined in .sfn.rb and sfn:plan works.

/cc @chrisroberts