ec2-api-tools

Is it possible to create an ami from an openstack image?

。_饼干妹妹 提交于 2019-12-23 18:48:25
问题 I'm creating an image from a running instance in OpenStack nova image-create <server-name> and i'm just wondering,can this image be uploaded to ec2? Or do i need to create an ami from it? Can someone guide me on how to go about this? 回答1: glance, the openstack image service is capable of storing a number of image types: Raw Machine (kernel/ramdisk outside of image, a.k.a. AMI) VHD (Hyper-V) VDI (VirtualBox) qcow2 (Qemu/KVM) VMDK (VMWare) OVF (VMWare, others) Ref: http://www.openstack.org

.htaccess not working in amazon ec2 ubuntu instance

感情迁移 提交于 2019-12-21 05:11:15
问题 I have a server from amazon's ec2 service running on Linux Ubuntu ( Ubuntu Server 13.04 64 bit) and I have installed apache, php, and mysql. I have added a .htaccess file in my document root (i.e /var/www/). Here is the code in .htaccess file as follows: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php If I remove .php from url like "index1" instead of "index1.php", it returns 404 browser error. It works

Error importing vmdk files using ec2 developer tools

我的未来我决定 提交于 2019-12-19 17:03:31
问题 Although vmdk disk format is supported by ec2-import-instance tool, every time I try to run the command on a vmdk file, I get the following error: ERROR: File uses unsupported compression algorithm 0 I invoke the tool in the following format: ec2-import-instance -f vmdk -o <ACCESS KEY> -w <SECRET KEY> <VMDK file> I am using ec2 tools version 1.6.6.1. 回答1: Looks like it's got nothing to do with "compression algorithm" but instead more to do with supported vmdk formats as documented in http:/

Instance Store AMI from a customized EBS-backed instance

我的梦境 提交于 2019-12-13 15:51:29
问题 Sorry if this supposed to be easily understood from the docs, but I didn't - if I spin up an EC2 instance using one of the easily available Ubuntu EBS-boot AMI's, install a bunch of stuff and move some files around under "/", and then I create an Instance-Store AMI using ec2-bundle-vol , will the data that was actually residing on the EBS volume mounted at "/" make it into the AMI? Considering that from a user point-of-view, I would expect to find the same things under "/" in a future spin-up

Integration of Google Calendar with amazon EC2

為{幸葍}努か 提交于 2019-12-11 12:23:43
问题 I am using Google calendar and based on calendar booking i want to start AWS EC2 instances. Is there a way to achieve this interaction? 回答1: A very good use case actually; it is really cool. This is one of the ways you can plan the design and architecture. You would be making use of the Google Calender API endpoint using REST or SDK to continuously (asynchronously) poll the events and activities; depending on how you specify the EC2 instance to be started or stopped. You can obtain the

EC2_HOME is not set. Run AWS Commands from Cron

為{幸葍}努か 提交于 2019-12-10 14:29:24
问题 Basicly I'm not sure how to get my aws commands to run in crontab. I know I need to give crontab some environmental variables so that it can run the aws commands but, I don't quite know how to do that. Has anyone been able to do this before? PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin:/opt/aws/bin * * * * * export EC2_HOME=/opt/aws/apitools/ec2 * * * * * export JAVA_HOME=/usr/lib/jvm/jre 0 8 * * 1-5 ec2-start-instances instance_id 0 7 * *

AmazonEC2 launch with userdata

落花浮王杯 提交于 2019-12-07 17:32:18
问题 Should the Userdata when launching an ec2 instance always be a String? Cant that be a byte array? Java API: I use ec2Client.runInstance(TEST_IMAGE_ID, instanceType, "USER_DATA"); 回答1: According to Amazon: The user data must be base64 encoded before being submitted to the API. The API command line tools perform the base64 encoding for you. The data is in base64 and is decoded before being presented to the instance. You need to find out if your Java API will perform this base-64 encoding for

AmazonEC2 launch with userdata

孤街浪徒 提交于 2019-12-05 21:02:54
Should the Userdata when launching an ec2 instance always be a String? Cant that be a byte array? Java API: I use ec2Client.runInstance(TEST_IMAGE_ID, instanceType, "USER_DATA"); According to Amazon : The user data must be base64 encoded before being submitted to the API. The API command line tools perform the base64 encoding for you. The data is in base64 and is decoded before being presented to the instance. You need to find out if your Java API will perform this base-64 encoding for you or if you have to do it yourself. [See Matt Solnit's comment below.] In any case, be careful that you do

R + httr and EC2 api authentication issues

半腔热情 提交于 2019-12-05 01:40:45
问题 I would like to use the R package httr to access the EC2 services via their API. But I am a little bit unsure how to get started as it does not fall into the usual authentication format of "Oauth2.0" in which you have the usual: key, secret, token and signature system. I think EC2 uses the "signature version 2" method, but I am unclear as to how that works. Looking at the documentation that EC2 provides with regard to making query requests at http://docs.amazonwebservices.com/AWSEC2/latest

R + httr and EC2 api authentication issues

烂漫一生 提交于 2019-12-03 16:08:45
I would like to use the R package httr to access the EC2 services via their API. But I am a little bit unsure how to get started as it does not fall into the usual authentication format of "Oauth2.0" in which you have the usual: key, secret, token and signature system. I think EC2 uses the "signature version 2" method, but I am unclear as to how that works. Looking at the documentation that EC2 provides with regard to making query requests at http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/using-query-api.html I think I need the value for signature....but don't know how to get it I