Reputation: 567
I am using free tier on Amazon. I had one micro instance, which I terminated. If I create another one (micro) instance, will Amazon start charging me? I can still see my terminated instance in the instances list, but I cannot start or reboot it. Can I somehow delete it from the list?
Upvotes: 23
Views: 20011
Reputation: 85
try this...
var terminateInstancesRequest = new TerminateInstancesRequest();
terminateInstancesRequest.InstanceIds = new List<string>() { InstanceId };
bool isError = true;
while (isError)
{
try
{
amazonEc2client.TerminateInstances(terminateInstancesRequest);
isError = false;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message + "\n" + ex.StackTrace);
isError = true;
}
}
Upvotes: 0
Reputation: 9039
AWS charges you only for instances that are running, and as long as you only have one running at any one time you will not be charged. And NO operations can be performed on terminated instances, which disappear 1 hr after terminated.
UPDATE: There was a Price change Now free tier gets you a "micro instance" for 750hrs/mo for 12 months. Over 750hrs or after 1 yr, not free. And as these posts get old, probably best to just look it up yourself here: http://aws.amazon.com/ec2/pricing/
Upvotes: 25
Reputation: 602
You cannot perform any operations on the terminated instance. It is displayed in the list until one hour after deletion. After that time it will be removed from the list.
Upvotes: 48