lib/vmreverter/hypervisor/aws.rb
#AWS support will dynamically create a Security Group for you if you specify ports in the Blimpfile, this means you can easily stand up a machine with specific ports open.
#Blimpy uses a unique hash of the ports to avoid re-creating the Security Groups unless necessary.
#Blimpy will import your ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.pub into a Key Pair in every region that you use in your Blimpfiles.
AWS support will dynamically create a Security Group for you if you specify ports in the Blimpfile, this means you can easily stand up a machine with specific ports open.
Blimpy uses a unique hash of the ports to avoid re-creating the Security Groups unless necessary.
Blimpy will import your ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.pub into a Key Pair in every region that you use in your Blimpfiles.
AWS support will dynamically create a Security Group for you if you specify ports in the Blimpfile this means you can easily stand up a machine with specific ports open . Blimpy uses a unique hash of the ports to avoid re - creating the Security Groups unless necessary . Blimpy will import your ~ / . ssh / id_rsa . pub or ~ / . ssh / id_dsa . pub into a Key Pair in every region that you use in your Blimpfiles .
def revert
      @logger.notify "Begin Launching AWS Hosts"
      fleet_retries = 0
      begin
        @fleet.start
      rescue Fog::Errors::Error => ex
        fleet_retries += 1
        if fleet_retries <= 3
          sleep_time = rand(10) + 10
          @logger.notify("Calling fleet.destroy, sleeping #{sleep_time} seconds and retrying fleet.start due to Fog::Errors::Error (#{ex.message}), retry attempt #{fleet_retries}.")
          begin
            timeout(30) do
              @fleet.destroy
            end
          rescue
          end
          sleep sleep_time
          retry
        else
          @logger.error("Retried Fog #{fleet_retries} times, giving up and throwing the exception")
          raise ex
        end
      end
    end
def revert @logger . notify "Begin Launching AWS Hosts" fleet_retries = 0 begin @fleet . start rescue Fog :: Errors :: Error => ex fleet_retries += 1 if fleet_retries <= 3 sleep_time = rand ( 10 ) + 10 @logger . notify ( "Calling fleet.destroy, sleeping #{sleep_time} seconds and retrying fleet.start due to Fog::Errors::Error (#{ex.message}), retry attempt #{fleet_retries}." ) begin timeout ( 30 ) do @fleet . destroy end rescue end sleep sleep_time retry else @logger . error ( "Retried Fog #{fleet_retries} times, giving up and throwing the exception" ) raise ex end end end
AWS support will dynamically create a Security Group for you if you specify ports in the Blimpfile, this means you can easily stand up a machine with specific ports open.
AWS support will dynamically create a Security Group for you if you specify ports in the Blimpfile this means you can easily stand up a machine with specific ports open .
# Attempt to start the fleet, we wrap it with some error handling that deals # with generic Fog errors and retrying in case these errors are transient.