awslabs / sandbox-accounts-for-events

"Sandbox Accounts for Events" allows to provide multiple, temporary AWS accounts to a number of authenticated users simultaneously via a browser-based GUI.
Apache License 2.0
172 stars 37 forks source link

AWS Nuke #44

Closed rodentskie closed 10 months ago

rodentskie commented 10 months ago

Description

Hello, we have it successfully deployed and running in our root account. Then spawned one additional account in our organization and have it leased in one of our test events.

Test Case

When adding the lease, we set the maximum cost to be $1. When the cost exceeded, the login link to that user was gone but the resources made by that user was retained and not destroyed.

Problem

We're expecting that when the cost was exceeded during the lease. all the resources made by that user will be removed and have a clean AWS account again ready for leasing. Is there any misconfigured step that we've made? We just followed what is written in the README.md file.

rodentskie commented 10 months ago

Additional Info

Just now, I tested manually terminating the lease, and AWS Nuke works as expected. Cross-checked also by checking the logs in the root account's CodeBuild, build project account-reset-dce.

Digging deeper into the docs, I've read that AWS Nuke only works in two regions. Will retest again in these regions and update. Will close this issue for now.