- Ruby 3.3
- EC2 Instances
- RDS DB Instance
IAM > Policies > Create policy > JSON >
[copy + paste]
> Next > Policy name:start-stop-instance-policy
/^\d{3}\.\d{3}\.\d{3}\-\d{2}$/
/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/
# Stop all containers | |
docker stop $(docker ps -qa) | |
# Remove all containers | |
docker rm $(docker ps -qa) | |
# Remove all images | |
docker rmi -f $(docker images -qa) | |
# Remove all volumes |