Class: Kitchen::Provisioner::Cloudformation

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/provisioner/cloudformation.rb

Overview

The design of the provisioner is unconventional compared to other Test Kitchen provisioner plugins. Since Cloudformation creates and provisions resources when applying an execution plan, managed by the driver, the provisioner simply proxies the driver’s create action to apply any changes to the existing Cloudformation state.

Configuration

Example .kitchen.yml snippet

provisioner:
  name: cloudformation

rubocop:disable Style/ClassAndModuleChildren

Instance Method Summary collapse

Instance Method Details

#call(state) ⇒ Object

Proxies the driver’s create action.

Examples:

`kitchen converge suite-name`

Parameters:

  • state (::Hash)

    the mutable instance and provisioner state.

Raises:

  • (::Kitchen::ActionFailed)

    if the result of the action is a failure.



43
44
45
46
# File 'lib/kitchen/provisioner/cloudformation.rb', line 43

def call(state)
  info("State is  <#{state}>.")
  instance.driver.update state
end