amazon-ami

What to bake into an AWS AMI and what to provision using cloud-init?

不打扰是莪最后的温柔 提交于 2019-12-03 07:28:29
问题 I'm using AWS Cloudformation to setup numerous elements of network infrastructure (VPCs, SecurityGroups, Subnets, Autoscaling groups, etc) for my web application. I want the whole process to be automated. I want click a button and be able to fire up the whole thing. I have successfully created a Cloudformation template that sets up all this network infrastructure. However the EC2 instances are currently launched without any needed software on them. Now I'm trying to figure out how best to get

Customizing an Elastic Beanstalk AMI

≯℡__Kan透↙ 提交于 2019-12-03 06:49:18
I need to use on Elastic Beanstalk a Java application written for Glassfish server. Beacuse of Amazon doesn't let me choose an AMI with Glassfish, I choosed one with Tomcat and i modified my application to work properly on Tomcat. Now, I've seen I also needed to use a Sun JDK, while by default Elastic Beanstalk AMI comes with openjdk. I googled a lot, finding some (not so many resources) interesting posts like this answer on StackOverflow What I can't understand is this part of the answer: Create your custom AMI from a running instance of Amazon's beanstalk AMI that you manually launch from

I need help duplicating Amazon AWS EC2 instances

你。 提交于 2019-12-03 05:58:53
问题 I'm just getting started with AWS EC2 and not entirely sure I understand it. From what I've read, an instance is basically a virtual server, and you should be able to somehow "duplicate" that virtual server from the AWS console somehow. Then use Load Balancer or Elastic IP to route requests to one or the other. The problem comes in when I try to "duplicate" my instance. I tried a million things, but the only thing that got me close was creating an AMI of my current instance then launching an

Best way to manage code changes for application in Amazon EC2 with Auto Scaling

荒凉一梦 提交于 2019-12-03 04:22:48
问题 I have multiple instances running behind Load balancer with Auto Scaling in AWS. Now, if I have to push some code changes to these instances and any new instances that might launch because of auto scaling policy, what's the best way to do this? The only way I am aware of is, to create a new AMI with latest code, modify the auto scaling policy to use this new AMI and then terminate the existing instances. But this might involve a longer downtime and I am not sure whether the whole process can

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

What to bake into an AWS AMI and what to provision using cloud-init?

跟風遠走 提交于 2019-12-02 22:24:56
I'm using AWS Cloudformation to setup numerous elements of network infrastructure (VPCs, SecurityGroups, Subnets, Autoscaling groups, etc) for my web application. I want the whole process to be automated. I want click a button and be able to fire up the whole thing. I have successfully created a Cloudformation template that sets up all this network infrastructure. However the EC2 instances are currently launched without any needed software on them. Now I'm trying to figure out how best to get that software on them. To do this, I'm creating AMIs using Packer.io . But some people have instead

I need help duplicating Amazon AWS EC2 instances

橙三吉。 提交于 2019-12-02 19:25:27
I'm just getting started with AWS EC2 and not entirely sure I understand it. From what I've read, an instance is basically a virtual server, and you should be able to somehow "duplicate" that virtual server from the AWS console somehow. Then use Load Balancer or Elastic IP to route requests to one or the other. The problem comes in when I try to "duplicate" my instance. I tried a million things, but the only thing that got me close was creating an AMI of my current instance then launching an instance from that, but when I did that, the new instance was basically the default server config. None

Best way to manage code changes for application in Amazon EC2 with Auto Scaling

做~自己de王妃 提交于 2019-12-02 18:41:18
I have multiple instances running behind Load balancer with Auto Scaling in AWS. Now, if I have to push some code changes to these instances and any new instances that might launch because of auto scaling policy, what's the best way to do this? The only way I am aware of is, to create a new AMI with latest code, modify the auto scaling policy to use this new AMI and then terminate the existing instances. But this might involve a longer downtime and I am not sure whether the whole process can be automated. Any pointers in this direction will be highly appreciated. The way I do my code changes

Reading large JSON files from S3 in RStudio EC2 instance (Louis Aslett's AMI)

ε祈祈猫儿з 提交于 2019-12-01 06:30:40
问题 I am going through a similar issue as this question here: I have a big JSON file on AWS S3 and am trying to access it via RStudio (EC2 instance from Louis Aslett's AMI). I have even tried moving from t2 to r4.xlarge with 30GB of memory but to no avail: I receive errors: Error in writeBin(httr::content(r, as = "raw"), con = file) : long vectors not supported yet: connections.c:4147 If I use the free tier instance then it gives me the error: Error in curl::curl_fetch_memory(url, handle = handle

How to opt-in for AWS EC2 AMI from SDK?

本秂侑毒 提交于 2019-11-30 18:11:41
问题 I am trying to launch an AWS EC2 instance using CentOS AMI ami-21682673 from EC2 SDK. The AMI itself is a marketplace product and it requires an acceptance of the licensing terms. The error I am getting: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit http://aws.amazon.com/marketplace/pp?sku=eggbgx9svw4xhzs1omttdv29q It is possible to accept terms from AWS web page. But I found no way to accept it from SDK. Any workarounds for this? I