@@ -122,7 +122,7 @@ def instance_detailed_monitoring_enabled?(ec2_client, instance_id)
122
122
puts "Detailed monitoring state: #{ result . instance_monitorings [ 0 ] . monitoring . state } "
123
123
return true
124
124
rescue Aws ::EC2 ::Errors ::InvalidState
125
- puts "The instance is not in a monitorable state. Continuing on.. ."
125
+ puts "The instance is not in a monitorable state. Skipping this step ."
126
126
return false
127
127
rescue StandardError => e
128
128
puts "Error enabling detailed monitoring: #{ e . message } "
@@ -191,25 +191,25 @@ def run_me
191
191
puts 'Attempting to stop the instance. ' \
192
192
'This might take a few minutes...'
193
193
unless instance_stopped? ( ec2_client , instance_id )
194
- puts 'Cannot stop the instance. Continuing anyway.. .'
194
+ puts 'Cannot stop the instance. Skipping this step .'
195
195
end
196
196
197
197
puts "\n Attempting to restart the instance. " \
198
198
'This might take a few minutes...'
199
199
unless instance_restarted? ( ec2_client , instance_id )
200
- puts 'Cannot restart the instance. Continuing anyway.. .'
200
+ puts 'Cannot restart the instance. Skipping this step .'
201
201
end
202
202
203
203
puts "\n Attempting to reboot the instance. " \
204
204
'This might take a few minutes...'
205
205
unless instance_rebooted? ( ec2_client , instance_id )
206
- puts 'Cannot reboot the instance. Continuing anyway.. .'
206
+ puts 'Cannot reboot the instance. Skipping this step .'
207
207
end
208
208
209
209
puts "\n Attempting to enable detailed monitoring for the instance..."
210
210
unless instance_detailed_monitoring_enabled? ( ec2_client , instance_id )
211
211
puts 'Cannot enable detailed monitoring for the instance. ' \
212
- 'Continuing anyway.. .'
212
+ 'Skipping this step .'
213
213
end
214
214
215
215
puts "\n Information about available instances:"
0 commit comments