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
3 answers

AWS Spot Instance Limit

I used spot instances for the past month, launching and terminating instances. Currently, I've no instances running on AWS (all spot instance terminated). But when I try to launch a new spot instance, it tells me that "Max spot instance count…
calclavia
  • 321
  • 1
  • 5
  • 10
9
votes
1 answer

LibreOffice: error while loading shared libraries: libdbus-glib-1.so.2

I installed libreoffice on my AWS EC2 instance following this script. The installation happened successfully but when I try to convert a file: /opt/libreoffice5.3/program/soffice --headless --convert-to pdf test.docx I get the following error…
André Luiz
  • 6,642
  • 9
  • 55
  • 105
9
votes
1 answer

IllegalArgumentException: /tmp/zookeeper/myid file is missing

I am trying to configure Kafka on multiple instances of EC2 by following this gist , but I am getting following error: I am running this command: $ bin/zookeeper-server-start.sh config/zookeeper.properties & 1 13308 Error: [2017-03-22…
dsa
  • 175
  • 1
  • 2
  • 10
9
votes
1 answer

Different .ebextensions depending on environment

I have 2 separate environments to manage my application, a primary env, webserver with a load balancer, and a secondary env, a single small tier worker to run crons. My .ebextensions contains a lot of Instance and load balancer configurations,…
user2559108
9
votes
3 answers

Terraform: Correctly assigning a static private IP to newly created instance

Objective: I'm trying to create a number of EC2 instances and assign them each a static private ip address from a map variable. This address must be the primary address, and basically means I'm not using the DHCP assigned address provided by…
Traiano Welcome
  • 783
  • 2
  • 12
  • 24
9
votes
2 answers

Connecting to a remote Spark master - Java / Scala

I created a 3 node (1 master, 2 workers) Apache Spark cluster in AWS. I'm able to submit jobs to the cluster from the master, however I cannot get it work remotely. /* SimpleApp.scala */ import org.apache.spark.SparkContext import…
cybertextron
  • 10,547
  • 28
  • 104
  • 208
9
votes
2 answers

Why do Windows snapshots take a long time?

I am running a vanilla Windows install on Amazon EBS volume. The computer takes 10 minutes to boot, which may be understandable as 2 reboots are required. However, taking a snapshot is also a 10-15 minute process. Can anyone explain this? Any way to…
Snapshot
  • 91
  • 1
  • 3
9
votes
2 answers

Getting AWS role credentials in Gradle

I have an S3 repository that I want to access in my build process. It contains some of my project's dependencies. My project is deployed to an EC2 instance with a designated role - Repo_dependent. The role has an Access_Repo policy attached to…
Guy Grin
  • 1,968
  • 2
  • 17
  • 38
9
votes
1 answer

ECS tasks desired count not working

I have three EC2 instances, with a classic load balancer. Ideally I should have two tasks running in two instances. So when creating the service I made the desired count of the tasks to 2. My problem arises when I try to run new version of the task…
9
votes
3 answers

AWS: Mount S3 Bucket to an EC2 instance. (Later FTP Tunneling)

what do I want to do? Step1: Mount a S3 Bucket to an EC2 Instance. Step2: Install a FTP Server on the EC2 Instance and tunnel ftp-requests to files in the bucket. What did I do so far? create bucket create security group with open input ports…
Timo
  • 313
  • 1
  • 3
  • 13
9
votes
1 answer

Boto3 script to create instance tag

I am trying to create a new tag called Name and value hostname apphostname for an Amazon EC2 instance. Below is my code, and it is failing with this error message: >>> ec2.create_tags(["i-1923943832310"], {"name": "apphostname"}) Traceback (most…
bobby
  • 189
  • 1
  • 2
  • 13
9
votes
3 answers

Can't open .pem file in keychain access

So I'm trying to set up an EC2 instance on AWS and I've created a key pair and downloaded the .pem file. However, when I try to open it I get the error message: I've also read about entering the following in the terminal to work around the…
torola
  • 113
  • 1
  • 2
  • 8
9
votes
3 answers

Register GoDaddy Domain with AWS ec2 instance

My Problem is as below. I have a domain registered with GoDaddy [ assume : mytest.com ] I have a EC2 ALM instance at AWS I have elastic IP associated with my Instance [ assume : 111.222.333.444] I have developed a nodejs application and deployed in…
ajoy sinha
  • 1,156
  • 4
  • 14
  • 30
9
votes
1 answer

ODBC Driver 13 for SQL Server can't open lib on pyodbc while connecting on AWS E2 ubuntu instance

Background: i have been at it for about a week but still no luck. the same driver (13.0) on my system (Ubuntu 16.04.1 LTS) works just fine with my pyodbc python (Python 2.7.12 :: Anaconda 4.1.1 (64-bit)) library. i tried setting up a virtual…
9
votes
3 answers

Error in AWS codepipeline when deploying ElasticBeanstalk

I've created a pipeline which does the following: Git changes trigger next action (code build) Codebuild initiates & builds a docker image from git source Set latest docker container up on Elasticbeanstalk The first 2 steps are working fine, git…