cfn_manage 0.4.1 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8c2a4379aa1b8365236be98e9e6be99f81da939
4
- data.tar.gz: cd067baf5be7f74ecc9f8d58c81ffe2414adac77
3
+ metadata.gz: 3c9938fbe475e8c39793a88a94253a0ed956ed08
4
+ data.tar.gz: 2d939e4715fff3bd538e35e39bf5b0d91b70d3cd
5
5
  SHA512:
6
- metadata.gz: fb5c92ef5c399bf4e622b6990c044d863286b63e474c66338ea7a8d66765ba53a47ec9ba4a03ce97a7ff7a6e82e4e6ae476ebbccda80285388e6e34306126cd8
7
- data.tar.gz: ef926de17c9a574b4d057dcfc5224b8e839254cbc5aceb7d60b0fe51f4918e2fde37511f50f89c503e593d9ebc59c474c4d8817dc2ac99b83d31d16139176dda
6
+ metadata.gz: ad06bdd60a71c78474bcb188abf2b08677f6e0fca11431f751f466c0930f1cc72f6d2a98ef7a20f59675ff6eb6018f2d4dc44873d66731b14b0760165937c705
7
+ data.tar.gz: 0a634fcb6c0f229ba3ce36c85c33f84f68618f390111f96b0c2dc38cb1e420d4663c45c959bd557c6462b49aa897a3b9439c090f57b53727d8f389bbdf0ec229
@@ -69,6 +69,35 @@ module Base2
69
69
  $log.info("Environment #{stack_name} stopped")
70
70
  end
71
71
 
72
+ def start_stop_aurora_cluster(action,cluster_id)
73
+ start_stop_handler = Base2::StartStopHandlerFactory.get_start_stop_handler(
74
+ 'AWS::RDS::DBCluster',
75
+ cluster_id
76
+ )
77
+ @environment_resources << {
78
+ id: cluster_id,
79
+ priority: '100',
80
+ handler: start_stop_handler,
81
+ type: 'AWS::RDS::DBCluster'
82
+ }
83
+ do_stop_assets if action == 'stop'
84
+ do_start_assets if action == 'start'
85
+ end
86
+
87
+ def start_stop_rds(action,instance_id)
88
+ start_stop_handler = Base2::StartStopHandlerFactory.get_start_stop_handler(
89
+ 'AWS::RDS::DBInstance',
90
+ instance_id
91
+ )
92
+ @environment_resources << {
93
+ id: instance_id,
94
+ priority: '100',
95
+ handler: start_stop_handler,
96
+ type: 'AWS::RDS::DBInstance'
97
+ }
98
+ do_stop_assets if action == 'stop'
99
+ do_start_assets if action == 'start'
100
+ end
72
101
 
73
102
  def do_stop_assets
74
103
  # sort start resource by priority
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn_manage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Base2Services
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-10-05 00:00:00.000000000 Z
12
+ date: 2018-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-core