Why am I billed for powered off Droplets?
When you power off your Droplet, you are still billed for it. This is because your disk space, CPU, RAM, and IP address are all reserved, even while powered off. Therefore, charges are made until you destroy the instance.
You terminated your instances, but you still have EC2 resources provisioned to your account
The Elastic Compute Cloud line item in your bill includes resources other than instances. EC2 instances are often used along with other EC2 resources, such as the following:
- Elastic IP addresses
- Amazon Elastic Block Store (Amazon EBS) volumes
# .any? -> Takes a block and enumerates
role.map(&:editable?).any? # This is easier to read IMHO. :) role.any?(&:editable?)