ec2-ami

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

Creating AMI takes so long

对着背影说爱祢 提交于 2019-12-03 10:25:04
问题 I'm creating an AMI for a server with 100G files. It's been like an hour and it's still not finished. (The AMI still says pending) Is there something wrong with it? What should I do? 回答1: Alright so at this moment this seems like a stupid question. But I was very worried during that time :-) Just to let other people know, this process could take very, very long. My 100 GB AMI takes like 2.5 hours to create and the progress bar jumps from 0 to 100 directly after that. So don't worry. 回答2: I

How to pass environment variables when programmatically starting a new Amazon EC2 from image?

假装没事ソ 提交于 2019-12-03 04:17:35
问题 I am using AWS Java API RunInstance() to start a new EC2 instance from my custom AMI image. How do I pass environment variables to the new EC2 INSTANCE such as database url, AWS credentials etc. ? 回答1: http://alestic.com/2009/06/ec2-user-data-scripts explains how to do this with user-data. for gotchas about using Java see AmazonEC2 launch with userdata. note that I've seen mention that this doesn't work with Windows, only Unix. [update] more data on setting environment variables here: https:/

Creating AMI takes so long

人盡茶涼 提交于 2019-12-03 01:58:33
I'm creating an AMI for a server with 100G files. It's been like an hour and it's still not finished. (The AMI still says pending) Is there something wrong with it? What should I do? Alright so at this moment this seems like a stupid question. But I was very worried during that time :-) Just to let other people know, this process could take very, very long. My 100 GB AMI takes like 2.5 hours to create and the progress bar jumps from 0 to 100 directly after that. So don't worry. I also noticed snapshots take a long time. I have a simple 10 GB t2.micro instance, and it sat on 0% for about 10

How to pass environment variables when programmatically starting a new Amazon EC2 from image?

拥有回忆 提交于 2019-12-02 17:35:51
I am using AWS Java API RunInstance() to start a new EC2 instance from my custom AMI image. How do I pass environment variables to the new EC2 INSTANCE such as database url, AWS credentials etc. ? jcomeau_ictx http://alestic.com/2009/06/ec2-user-data-scripts explains how to do this with user-data. for gotchas about using Java see AmazonEC2 launch with userdata . note that I've seen mention that this doesn't work with Windows, only Unix. [update] more data on setting environment variables here: https://forums.aws.amazon.com/message.jspa?messageID=139744 [after much testing] for me, echoing the

How to configure direct http access to EC2 instance?

无人久伴 提交于 2019-11-30 12:50:15
问题 This is a very basic Amazon EC2 question, but I'm stumped so here goes. I want to launch an Amazon EC2 instance and allow access to HTTP on ports 80 and 8888 from anywhere. So far I can't even allow the instance to connect to on those ports using its own IP address (but it will connect to localhost). I configured the "default" security group for HTTP using the standard HTTP option on the management console (and also SSH). I launched my instance in the default security group. I connected to

How to configure direct http access to EC2 instance?

我只是一个虾纸丫 提交于 2019-11-30 04:51:38
This is a very basic Amazon EC2 question, but I'm stumped so here goes. I want to launch an Amazon EC2 instance and allow access to HTTP on ports 80 and 8888 from anywhere. So far I can't even allow the instance to connect to on those ports using its own IP address (but it will connect to localhost). I configured the "default" security group for HTTP using the standard HTTP option on the management console (and also SSH). I launched my instance in the default security group. I connected to the instance on SSH port 22 twice and in one window launch an HTTP server on port 80. In the other window

Convert Amazon EC2 AMI to Virtual or Vagrant box

你。 提交于 2019-11-29 20:52:32
I'd like to copy the disk image of a running EC2 instance (grab the AMI) and import it into virtual box or eventually have it run using Vagrant. I saw that packer ( http://www.packer.io/ ) allows you to create AMI's and corresponding Vagrant boxes to work together, however the running instance I currently have has been running for over two years and would be difficult to replicate. I imagine that this issue is common in the devops community however have not found a solution in my research online. Are there any tools out there that let you accomplish this task? BillMan I just wanted to note

Convert Amazon EC2 AMI to Virtual or Vagrant box

牧云@^-^@ 提交于 2019-11-28 17:03:06
问题 I'd like to copy the disk image of a running EC2 instance (grab the AMI) and import it into virtual box or eventually have it run using Vagrant. I saw that packer (http://www.packer.io/) allows you to create AMI's and corresponding Vagrant boxes to work together, however the running instance I currently have has been running for over two years and would be difficult to replicate. I imagine that this issue is common in the devops community however have not found a solution in my research

EC2 instance on Amazon and I am greeted with “No space left on the disk”

坚强是说给别人听的谎言 提交于 2019-11-28 16:26:33
问题 I have installed Amazon EC2 fedora instance and copying the files from one location to another. But I am greeted with " No space left on the disk". I did df -f . with output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 15G 0 100% / none 312M 0 312M 0% /dev/shm I want to increase the space for ec2 instance on amazon. Can someone help me with it? Thanks for the help. 回答1: Here's an even easier method. (My m2.2xlarge instance was created with RedHat Linux 6.2, I discovered it had a