Cleaning up
Wait a minute... we are not done yet! Cleaning up the cloud resources we created or deployed is a crucial step when working with penetration testing lab environments. If we don’t clean up and delete the resources we created right away, we might end up paying for unused cloud resources.
At a minimum, we will be paying for the time the t3.medium
EC2 instance (for the attacker instance) and the two t2.micro
EC2 instances (for the target instances) are running. Note that there are other costs we should consider as well, including data transfer fees, storage costs for any persistent data used by the instances (such as EBS volumes attached to the EC2 instances), potential charges for additional AWS services utilized in the lab environment (for example, monitoring logs), and any applicable taxes or fees associated with AWS usage.
Note
Since the overall cost when running these resources depends on several parameters, it is best to refer to the pricing documentation...