Questions tagged [amazon-ec2]

Amazon EC2 stands for "Amazon Elastic Compute Cloud". It is a part of Amazon Web Services (AWS) and allows users to rent virtual machine instances. You can create instances, launch and manage them through a central interface, through a web API or through a console.

Amazon EC2 is a part of Amazon Web Services (AWS) and allows users to rent virtual machine instances. You can create instances, launch and manage them through a central interface, through a web API, through a console, or by using an Infrastructure as Code tool like terraform

Generally, EC2-related questions on StackOverflow should be about the EC2 API or other programming-oriented topics. Questions about EC2 networking, OS-level issues, cost, etc. should be asked on ServerFault instead.

Resource

  1. Instance types
  2. Pricing
  3. Documentation
  4. Discussion Forum
36510 questions
60
votes
5 answers

Amazon EC2 Free tier - how many instances can I run

I am running a single instance t1.micro to host centos with an open source erp program Now I wish to also host another instance with a 2nd erp program. Will this be within my free tier limit. Is there a count on the no# of instance I can use /…
adityakumar
  • 721
  • 1
  • 6
  • 7
59
votes
15 answers

Can't detach network interfaces

I did the AWS misfits tutorial and I thought the cleanup would be as simple as deleting the Cloud Formation stack. However, items failed to delete so I am trying to clean them up manually to assist the Cloud Formation stack deletion. I keep getting…
Blake Rivell
  • 13,105
  • 31
  • 115
  • 231
58
votes
19 answers

kdevtmpfsi using the entire CPU

We are using an EC2(Ubuntu) amazon instance for running Apache.Recently we noticed that there is a process using the entire CPU. We removed it using the help of the following procedure [root@hadoop002 tmp]# systemctl status 25177 ●…
Shijin TR
  • 7,516
  • 10
  • 55
  • 122
58
votes
7 answers

Windows Azure or Amazon EC2 for ASP.NET MVC Development?

If you want to build enterprise ASP.NET MVC applications that use MSSQL databases is it better to use Windows Azure or Amazon EC2? I didn't find any satisfying answers. So what are the advantages and disadvantages of the two cloud plattforms (Price,…
Ben
  • 2,560
  • 4
  • 29
  • 43
57
votes
11 answers

Move Amazon EC2 AMIs between regions via web-interface?

Any easy way to move and custom AMI image between regions? (tokyo -> singapore) I know you can mess up with API and S3 to get it done, but there there any easier way to do it?
c2h2
  • 11,911
  • 13
  • 48
  • 60
57
votes
5 answers

How is "Target Groups" different from "Auto-Scaling Groups" in AWS?

I'm a little too confused on the terms and its usage. Can you please help me understand how are these used with Load Balancers? I referred the aws-doc in vain for this :(
karthiks
  • 7,049
  • 7
  • 47
  • 62
57
votes
13 answers

upload a directory to s3 with boto

I am already connected to the instance and I want to upload the files that are generated from my python script directly to S3. I have tried this: import boto s3 = boto.connect_s3() bucket = s3.get_bucket('alexandrabucket') from boto.s3.key import…
56
votes
6 answers

Cheapest way to deploy a React app using NextJS SSR on AWS?

I understand that Nextjs is a Node framework that requires server capabilities and therefore, using it for server-side rendering could not be hosted on an S3 only. However, does that mean that the only alternative is to host the entire app on an EC2…
Thanh-Quy Nguyen
  • 2,995
  • 7
  • 30
  • 46
56
votes
7 answers

SSH to AWS Instance without key pairs

1: Is there a way to log in to an AWS instance without using key pairs? I want to set up a couple of sites/users on a single instance. However, I don't want to give out key pairs for clients to log in. 2: What's the easiest way to set up hosting…
Andres
  • 5,002
  • 6
  • 31
  • 34
56
votes
6 answers

What's the target group port for, when using Application Load Balancer + EC2 Container Service

I'm trying to setup an ALB which listens on port 443, load balancing to ECS Docker containers on random ports, lets say I have 2 container instances of the same task definition, listening on port 30000 and 30001. When I try to create a target group…
mash
  • 4,204
  • 4
  • 32
  • 34
55
votes
12 answers

get ec2 pricing programmatically?

Is there a way to get AWS pricing programmatically (cost per hour of each instance type, cost per GB/month of storage on S3, and etc)? Also, are there cost monitoring tools? For example, is there a tool that can report your EC2 instance usage on an…
morfys
  • 2,195
  • 3
  • 28
  • 35
55
votes
6 answers

Assigning Static IP Address to AWS Load Balancer

How can I assign a static IP address to a ELB. Seems like I cannot. Some articles online asks to create a Route 53 record but this requires changing CNAME of domain which also redirect email traffic. I just want to change A record not CNAME. Some…
Narayan Prusty
  • 2,501
  • 3
  • 22
  • 41
55
votes
4 answers

How to check remaining space in storage device EC2

I've connected to amazon Ec2 instance through putty. How can I check the remaining space in instance?
user3917663
55
votes
2 answers

How to fire EC2 instances and upload/run a startup script on each of them?

I want to automate the launch of a set of Linux EC2 instances. Basically, I want to write a script/program that would : Instantiate N occurrences of a given AMI of mine. For each started instance, it would upload a customized script and let the…
Serge Wautier
  • 21,494
  • 13
  • 69
  • 110
54
votes
5 answers

AWS EC2 'You are not authorized to perform this operation. Encoded authorization failure message:'

I am attempting to create an EC2 instance and get the following error message. How do I decode it ? Launch Failed You are not authorized to perform this operation. Encoded authorization failure message: KDmmJmkLKmQhatEqYt...MN3iUtfAa
jlo-gmail
  • 4,453
  • 3
  • 37
  • 64