Difference between revisions of "Aws-cleanup"

From Bashlinux
Jump to: navigation, search
(Redirected page to Stopping an AMI)
 
Line 1: Line 1:
  +
#REDIRECT [[Stopping an AMI]]
__NOTOC__
 
= Cleaning up =
 
 
== Shutting down an instance ==
 
There are 2 ways to turn of the instance
 
 
=== Internal ===
 
You can shut down the machine running in the remote terminal
 
 
<pre><nowiki>
 
-bash# /sbin/shutdwon -h now
 
</nowiki></pre>
 
 
 
=== External ===
 
The instance can be turned off using the API tools
 
 
<pre><nowiki>
 
# ec2-terminate-instances i-577aae3e
 
</nowiki></pre>
 
 
 
== Deregistering an AMI ==
 
If the AMI is no longer needed it can be de-registered using the following command:
 
 
<pre><nowiki>
 
# ec2-deregister ami-43ab4f2a
 
</nowiki></pre>
 
 
 
== Removing an AMI from Amazon S3 ==
 
If the AMI has been deregistered and is no longer needed it can be removed in order to avoid to be charged for storage the AMI on Amazon S3, to remove it run the command:
 
 
<pre><nowiki>
 
ec2-delete-bundle -b bashlinux -p bashlinux-general-server -a pk-PJ12XQWP23APPWWLR.pem -s cert-PJ12XQWP23APPWWLR.pem
 
</nowiki></pre>
 

Latest revision as of 23:28, 9 June 2015

Redirect to: