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
9
votes
1 answer

Public IP address for outgoing traffic AWS

I'm using a AWS EC2 instances on VPC with an Internet Gateway and I need to connect my companies network which only accept connections from specific IP addresses(Firewall). The Outbound Traffic of my IP Address is the Internet gateway's IP Address.…
baakal
  • 146
  • 1
  • 1
  • 5
9
votes
1 answer

How to recover EMR from "Terminated with errors Instance failure" Status

I am new to AWS EMR, several days ago I stopped(not terminated) the EMR EC2 instances and then the EMR cluster status become "Terminated with errors Instance failure", how to recover it? I cannot find the related EC2 instances anymore.
Andy Nie
  • 103
  • 1
  • 5
9
votes
5 answers

How to start Apache on EC2

I'm an absolute newbie to EC2. My goal is to run a php-mysql-website on EC2. I've just setup a new instance based on this ami It seems that apache isn't running? How do I start apache? Is there a general tutorial on how to start EC2 as a web…
murze
  • 4,015
  • 8
  • 43
  • 70
9
votes
2 answers

EBS vs EFS read and write latencies

I am storing users' code in file system, at present EBS in AWS. I am looking improving the availability and want to reduce the chances of outage due to EBS going down. EFS appears to be a reasonable option. I understand EFS will be slower than EBS…
9
votes
1 answer

Access Internet from AWS VPC instance without public IP address

We're setting up an Amazon VPC in which we will provision (for now) a single EC2 instance and one RDS instance. This is to 'extend our data center', and should only be using private subnet(s). So actually, we have this setup, and it is working well…
9
votes
2 answers

Error while saving file: Unable to open database file

I am running Ipython notebook hosted on remote AWS EC2 image on RHEL. I am accessing the notebook from local browser using port forwarding between 2 systems which worked perfectly fine for first few days. Now, I am running into the following error…
Abhi
  • 1,153
  • 1
  • 23
  • 38
9
votes
3 answers

EC2 instance not joining ECS Cluster

I have an EC2 cluster and I'm trying to add EC2 machines to it. I have added ECS_CLUSTER=cluster_name to /etc/ecs/ecs.config with user data but the instance doesn't join the cluster. I'm looking for log files or any other evidence of the…
Dan
  • 3,229
  • 2
  • 21
  • 34
9
votes
1 answer

Cassandra Error message: Not marking nodes down due to local pause. Why?

I have 6 nodes, 1 Solr, 5 Spark nodes, using datastax. My cluster is on a similar server to Amazon EC2, with EBS volume. Each node has 3 EBS volumes, which compose a logical data disk using LVM. In my OPS center the same node frequently becomes…
peter
  • 674
  • 1
  • 12
  • 33
9
votes
1 answer

AWS EC2 Instance stopping right after start using boto3

Using boto3 run_instances The instance is stopping after 30 sec by itself and the State transition reason in the console shows: Client.InstanceInitiatedShutdown: Instance initiated shutdown What might be the issue?
Dmitry R
  • 2,956
  • 4
  • 25
  • 45
9
votes
2 answers

'Operation Denied' Error when deploying an Elastic Beanstalk app using awsebcli

I'm trying to deploy a Django application onto Elastic Beanstalk for the first time. I've been following two tutorials here and here for assistance but I am running into an issue the tutorials do not seem to cover. The steps I followed so far was…
9
votes
2 answers

Spark Job submitted - Waiting (TaskSchedulerImpl : Initial job not accepted)

API call made to submit the Job. Response states - It is Running On Cluster UI - Worker (slave) - worker-20160712083825-172.31.17.189-59433 is Alive Core 1 out of 2 used Memory 1Gb out of 6 used Running Application app-20160713130056-0020 -…
Chaitanya Bapat
  • 3,381
  • 6
  • 34
  • 59
9
votes
1 answer

nginx service won't start after reboot AWS Linux server

A few weeks ago I configured an ec2 server on AWS and database is on RDS and I use nginx as web server. When i reboot server from the AWS console my nginx wont restart automatically. I did this using service nginx start command. Is there any way to…
rash111
  • 1,307
  • 4
  • 19
  • 35
9
votes
2 answers

How do I set up an AngularJS app using AWS?

Would I use an EC2 instance and install a web server (such as Node.js) on it and then do everything as per usual or do I have to use something such as the AWS SDK for JavaScript? (This is not a static AngularJS app and will be interacting with an…
dillib
  • 359
  • 1
  • 2
  • 11
9
votes
1 answer

How can I edit a file on EC2 directly from my localhost?

I have a batch script on an EC2 instance that I would like to be able to edit directly from my desktop's text editor. What is a good method of doing so easily?
meow
  • 27,476
  • 33
  • 116
  • 177
9
votes
2 answers

How to install MySQL-python on Amazon Web Services EC2 instance?

I have a EC2 instance created on AWS and use PuTTY to connect to it. I'm unable to install MySQL-python using python pip command as follows: pip install MySQL-python(via root privileges) Here is the console output of the error Collecting…
Tore Binarflame
  • 186
  • 1
  • 4
  • 15
1 2 3
99
100