amazon-web-services


How can I unpack an old Amazon AMI?


A long time ago, I put together a pretty complex (but quickly built) web app running on an EC2 farm. At some point I abandoned it, and shut down the farm, and I had a copy of the web app code on my local desktop. Before I had a chance to copy it somewhere safe, I had a bad crash, and lost those files. I thought they were gone forever.
Recently, I was digging around in my S3 buckets, and found a backup of the Apache AMI I had created on EC2. It consists of a manifest.xml file, and 85 x 10.5MB segments:
appname-apache_x64-201103310802.manifest.xml
appname-apache_x64-201103310802.part.00 ~ 84
Is there any way to extract the files from this AMI? I've dug around a bit, and I've seen some documentation on ec2-unbundle, but it looks like I might need a private key, and I'm not sure if or where I would still have that (or if I could regenerate it). Perhaps I'm over-thinking it?
Any help hugely appreciated!
Update: I tried relaunching the AMI as some have suggested. I went into my AWS console, and went to register a new AMI under the EC2 console. When I put in the path to the manifest.xml file (which hasn't moved), I get the following error:
HTTP 301 (Moved Permanently) response for URL scalr-images-us-972708971173.s3.amazonaws.com:80/…: check your manifest path is correct and in the correct region.
What's weird is that if I copy and paste the URL from the error into a browser (after setting open permissions on the file), the browser downloads the XML file no problem. So why isn't AWS seeing it?
This is what you should do:
Launch a micro instance from that AMI (I hope it was registered on your account).
Let the setup complete.
Login to that instance.
Grab the files that you want to your local machine.
Kill/terminate this instance.
DONE!

Related Links

after trying to configure my aws cli, nothing is written in the crendentials and config files
How does distributed architecture work for serving out dynamic and static content
AWS - Creating a Route53 subdomain in a separate account to the top level domain [duplicate]
How to set startup page on AWS Elastic Beanstalk
Can I get credentials by AWS IAM Role published by another aws account?
AWS asking me for a passphrase for key: EC2
How to define IAM Policy for a user to have programmatic full or limited access only for specific dynamodb tables?
Good deployment in aws with Symfony
How to get the end time of AWS EBS volume snapshot ? I want to find out the time when the snapshot completed
copy specific data in one s3 bucket to another bucket using data pipeline
AWS CodeDeploy using Github Failing
Tool to orchestrate execution of AWS CloudFormation templates
Updating ElasticSearch mappings field type with existing data
Is there a way to use the CLI to configure an Alexa skill?
Why won't my node / Heroku app connect to RDS?
Amazon Redshift - Replication - Data load Vs Query Performance Issues

Categories

HOME
openshift
lambda
xcode8.1
mousemove
bing-search
malware
header
onvif
native-base
swarm
alljoyn
phpstorm-2017.1
rangy
cname
multi-step
django-rq
pygobject
nose
codefluent
spyder
node-webkit
weex
conda
candlestick-chart
backendless
function-points
list-comprehension
fusion
tightvnc
steam-web-api
knights-tour
char-pointer
express-session
subclassing
netstat
django-smart-selects
windows-store
secure-coding
word-cloud
jqgrid-asp.net
lightning-workbench
mobile-angular-ui
glimpse
http4s
finder
ternary-operator
metabase
jpda
always-on-top
traversable
unsigned
exists
distributed-cache
json-spirit
google-maps-api-2
lowercase
calcite
apple
uitest
whitespace-language
gflags
python-curses
baseadapter
operands
lmax
loginview
django-settings
vlab
jacob
insertion
jquery-lazyload
axacropdf
spiral
days
spark-view-engine
fitch-proofs
affinetransform
database-deadlocks
rational-unified-process
external-sorting
rtti
community-server
jvm-bytecode

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App