cfn_manage 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/cfn_manage +7 -7
- data/lib/cfn_manage/cf_start_stop_environment.rb +2 -2
- data/lib/cfn_manage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23fee5c736e870116aaec46060e2b66a845d775f71856c09451b146e66b24ade
|
|
4
|
+
data.tar.gz: c2962bfafb2619bdb6c8fbbae61a4e099267c49cfe894af085bc61e4ff8af2c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 493d6080ae636c463826ca7f5823b59c567c279ebf69311a7030557dd85b8dc3f71394d77fab1d19c0fa63e457f99d96750d9524fb6409a367af85a2d37c35ca
|
|
7
|
+
data.tar.gz: d8ffdf6c7944346ba268be1d00ec59183d136268a1e3d40e8656acd7205ad350db28caf8cc99708c29a6454a2660b46aa80524f43c7d3955a81509165ccf8540
|
data/bin/cfn_manage
CHANGED
|
@@ -113,44 +113,44 @@ case command
|
|
|
113
113
|
print_usage_exit(0)
|
|
114
114
|
# asg commands
|
|
115
115
|
when 'stop-asg'
|
|
116
|
-
CfnManage::CloudFormation::EnvironmentRunStop.new().
|
|
116
|
+
CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['ASG'],'AWS::AutoScaling::AutoScalingGroup')
|
|
117
117
|
when 'start-asg'
|
|
118
118
|
CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ASG'],'AWS::AutoScaling::AutoScalingGroup')
|
|
119
119
|
|
|
120
120
|
# rds commands
|
|
121
121
|
when 'stop-rds'
|
|
122
|
-
CfnManage::CloudFormation::EnvironmentRunStop.new().
|
|
122
|
+
CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['RDS_INSTANCE_ID'],'AWS::RDS::DBInstance')
|
|
123
123
|
when 'start-rds'
|
|
124
124
|
CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['RDS_INSTANCE_ID'],'AWS::RDS::DBInstance')
|
|
125
125
|
|
|
126
126
|
# aurora cluster commands
|
|
127
127
|
when 'stop-aurora-cluster'
|
|
128
|
-
CfnManage::CloudFormation::EnvironmentRunStop.new().
|
|
128
|
+
CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['AURORA_CLUSTER_ID'],'AWS::RDS::DBCluster')
|
|
129
129
|
when 'start-aurora-cluster'
|
|
130
130
|
CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['AURORA_CLUSTER_ID'],'AWS::RDS::DBCluster')
|
|
131
131
|
|
|
132
132
|
# ec2 instance
|
|
133
133
|
when 'stop-ec2'
|
|
134
|
-
CfnManage::CloudFormation::EnvironmentRunStop.new().
|
|
134
|
+
CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['EC2_INSTANCE_ID'],'AWS::EC2::Instance')
|
|
135
135
|
when 'start-ec2'
|
|
136
136
|
CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['EC2_INSTANCE_ID'],'AWS::EC2::Instance')
|
|
137
137
|
|
|
138
138
|
# spot fleet
|
|
139
139
|
when 'stop-spot-fleet'
|
|
140
|
-
CfnManage::CloudFormation::EnvironmentRunStop.new().
|
|
140
|
+
CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['SPOT_FLEET'],'AWS::EC2::SpotFleet')
|
|
141
141
|
when 'start-spot-fleet'
|
|
142
142
|
CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['SPOT_FLEET'],'AWS::EC2::SpotFleet')
|
|
143
143
|
|
|
144
144
|
# spot fleet
|
|
145
145
|
when 'stop-ecs-cluster'
|
|
146
|
-
CfnManage::CloudFormation::EnvironmentRunStop.new().
|
|
146
|
+
CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['ECS_CLUSTER'],'AWS::ECS::Cluster')
|
|
147
147
|
when 'start-ecs-cluster'
|
|
148
148
|
CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ECS_CLUSTER'],'AWS::ECS::Cluster')
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
# cloudwatch alarm
|
|
152
152
|
when 'disable-alarm'
|
|
153
|
-
CfnManage::CloudFormation::EnvironmentRunStop.new().
|
|
153
|
+
CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['ALARM'],'AWS::CloudWatch::Alarm')
|
|
154
154
|
when 'enable-alarm'
|
|
155
155
|
CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ALARM'],'AWS::CloudWatch::Alarm')
|
|
156
156
|
|
|
@@ -81,7 +81,7 @@ module CfnManage
|
|
|
81
81
|
)
|
|
82
82
|
@environment_resources << {
|
|
83
83
|
id: resource_id,
|
|
84
|
-
priority: @@resource_start_priorities[
|
|
84
|
+
priority: @@resource_start_priorities[resource_type],
|
|
85
85
|
handler: start_stop_handler,
|
|
86
86
|
type: resource_type
|
|
87
87
|
}
|
|
@@ -96,7 +96,7 @@ module CfnManage
|
|
|
96
96
|
)
|
|
97
97
|
@environment_resources << {
|
|
98
98
|
id: resource_id,
|
|
99
|
-
priority: @@resource_start_priorities[
|
|
99
|
+
priority: @@resource_start_priorities[resource_type],
|
|
100
100
|
handler: start_stop_handler,
|
|
101
101
|
type: resource_type
|
|
102
102
|
}
|
data/lib/cfn_manage/version.rb
CHANGED
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.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Base2Services
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2018-11-
|
|
13
|
+
date: 2018-11-12 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: aws-sdk-core
|