Score:1

Creating time limited AWS instances

id flag

I am an instructor that teaches Bask/Command Line among other things. I have created a program for my final exam that provisions instances for each of my students to demonstrate what they have learned. I have created it so that using SQS and Lambda that I create the keypair and instance for the student whenever they want and that part is working fine, but I want to make it so that when I create the instance I also set something that will terminate it in 2 hours.

SQS doesn't allow a delay of that long. And I want the solution to be part of Amazon, if I put it in the instance (using the CLI or Bash) then the student might disrupt accidentally or on purpose).

Does anyone know an AWS feature or service that will allow you to schedule multiple individual events to occur at some point in the future?

Score:0
in flag

You can create "cron-like" task with EventBridge

I never used it myself but I would look in this direction if I wanted to setup a task 2 hours later that would terminate the instance.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.