Search code examples
amazon-web-servicesaws-lambdasandbox

How to create a Sandbox Environment in AWS?


I am trying to create a Sandbox playground in AWS for Users to practice some resources for 30min, after that, all resources should be killed and account temporary account also should be deleted.

I got some information like Cloud Formation, Lambda and IAM combined can be used, Or AWS Control Tower also but I have no idea where to begin with.


Solution

  • You would need:

    • A separate AWS Account so that anything created/deleted in the Account will not impact your normal environment (this account can be reused, there is no reason to use a new AWS Account each time you want a Sandbox)
    • A means of deleting resources from the account when the time period is reached

    Some example tools that can do this are:

    You would also need to write some code that ties everything together:

    • Vending the account
    • Tracking usage (eg when to clean)
    • Triggering the cleanup script when time limit has been reached

    Bottom line: It will take some work to create such a Sandbox.