Module: CfnManage

Defined in:
lib/cfn_manage.rb,
lib/cfn_manage/globals.rb,
lib/cfn_manage/version.rb,
lib/cfn_manage/cf_common.rb,
lib/cfn_manage/tag_finder.rb,
lib/cfn_manage/handlers/asg.rb,
lib/cfn_manage/handlers/ec2.rb,
lib/cfn_manage/handlers/rds.rb,
lib/cfn_manage/handlers/alarm.rb,
lib/cfn_manage/aws_credentials.rb,
lib/cfn_manage/handlers/transfer.rb,
lib/cfn_manage/cf_progress_tracker.rb,
lib/cfn_manage/handlers/documentdb.rb,
lib/cfn_manage/handlers/spot_fleet.rb,
lib/cfn_manage/handlers/ecs_cluster.rb,
lib/cfn_manage/handlers/aurora_cluster.rb,
lib/cfn_manage/cf_start_stop_environment.rb,
lib/cfn_manage/start_stop_handler_factory.rb

Defined Under Namespace

Modules: CloudFormation, StartStopHandler Classes: AWSCredentials, StartStopHandlerFactory, TagFinder

Constant Summary collapse

VERSION =
"0.8.3".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.asg_wait_stateObject

return the vale of our options



10
11
12
# File 'lib/cfn_manage/globals.rb', line 10

def asg_wait_state
  @asg_wait_state
end

.ecs_wait_stateObject

return the vale of our options



10
11
12
# File 'lib/cfn_manage/globals.rb', line 10

def ecs_wait_state
  @ecs_wait_state
end

Class Method Details

.asg_suspend_terminationObject

disable termination on asg when stopping EC2 instances in an asg



63
64
65
# File 'lib/cfn_manage/globals.rb', line 63

def asg_suspend_termination
  @asg_suspend_termination = true
end

.asg_suspend_termination?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/cfn_manage/globals.rb', line 67

def asg_suspend_termination?
  @asg_suspend_termination
end

.continue_on_errorObject

continue if a resource fails to stop or start



72
73
74
# File 'lib/cfn_manage/globals.rb', line 72

def continue_on_error
  @continue_on_error = true
end

.continue_on_error?Boolean

Returns:

  • (Boolean)


76
77
78
# File 'lib/cfn_manage/globals.rb', line 76

def continue_on_error?
  @continue_on_error
end

.dry_runObject

don’t stop or start resources



27
28
29
# File 'lib/cfn_manage/globals.rb', line 27

def dry_run
  @dry_run = true
end

.dry_run?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/cfn_manage/globals.rb', line 31

def dry_run?
  @dry_run
end

.ecs_wait_container_instancesObject

Wait for a container instances to join a ecs cluster



81
82
83
# File 'lib/cfn_manage/globals.rb', line 81

def ecs_wait_container_instances
  @ecs_wait_container_instances = true
end

.ecs_wait_container_instances?Boolean

Returns:

  • (Boolean)


85
86
87
# File 'lib/cfn_manage/globals.rb', line 85

def ecs_wait_container_instances?
  @ecs_wait_container_instances
end

.find_tagsObject

find options set on resource tags



18
19
20
# File 'lib/cfn_manage/globals.rb', line 18

def find_tags
  @find_tags = true
end

.find_tags?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/cfn_manage/globals.rb', line 22

def find_tags?
  @find_tags
end

.ignore_missing_ecs_configObject

dirty hack



54
55
56
# File 'lib/cfn_manage/globals.rb', line 54

def ignore_missing_ecs_config
  @ignore_missing_ecs_config = true
end

.ignore_missing_ecs_config?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/cfn_manage/globals.rb', line 58

def ignore_missing_ecs_config?
  @ignore_missing_ecs_config
end

.skip_waitObject

dont wait for resources to become healthy



36
37
38
# File 'lib/cfn_manage/globals.rb', line 36

def skip_wait
  @skip_wait = true
end

.skip_wait?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/cfn_manage/globals.rb', line 40

def skip_wait?
  @skip_wait
end

.true?(obj) ⇒ Boolean

converts string based bolleans from aws tag values to bolleans

Returns:

  • (Boolean)


13
14
15
# File 'lib/cfn_manage/globals.rb', line 13

def true?(obj)
  ["true","1"].include? obj.to_s.downcase
end

.wait_asyncObject

wait for resources based upon priority groups



45
46
47
# File 'lib/cfn_manage/globals.rb', line 45

def wait_async
  @wait_async = true
end

.wait_async?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/cfn_manage/globals.rb', line 49

def wait_async?
  @wait_async
end