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

how to use boto3 authorize_security_group_ingress to add a rule between two security groups in non default VPC

I am trying to use boto3 to update security group rules, to add a rule to security group a (sg_a) to allow security group b (sg_b) to access port 8443. I am trying to use EC2 client to achieve this with the…
blindstack
  • 251
  • 3
  • 10
9
votes
2 answers

pg_dump: how to install on Amazon Linux for PostgreSQL 9.5.2?

I used to install and do: $ sudo yum install -y postgresql94-server postgresql94 $ pg_dump -h name-of-db.us-east-1.rds.amazonaws.com -U user dbName > dump After RDS upgrade to 9.5.2 I get this: pg_dump: server version: 9.5.2; pg_dump version:…
Amir Mehler
  • 4,140
  • 3
  • 27
  • 36
9
votes
1 answer

Why does applying a condition to ec2:DescribeInstances in an IAM policy fail?

When trying to configure which instances can be listed using policies, I remark the following issue: When the condition is not implemented, all instances are visible. When any condition is implemented, nothing is visible. The example policy with…
ShadowFlame
  • 2,996
  • 5
  • 26
  • 40
9
votes
3 answers

EC2 Amazon High Availability Always On

I am using a Web & DB Instances in AWS EC2 and I want to make them high available, so that if one server fails (primary server), then another one is turned on (secondary server). I have found lots of information for RDS high availability but not for…
Misha Zaslavsky
  • 8,414
  • 11
  • 70
  • 116
9
votes
3 answers

Testing application locally that uses IAM Role

I have a Java application which does adds files in S3. This application is running in a EC2 instance. We are using IAM role. So we have attached the required IAM role to this EC2 instance. Everything works perfect there. But we would like to test…
sag
  • 5,333
  • 8
  • 54
  • 91
9
votes
2 answers

Automate code deploy from Git lab to AWS EC2 instance

We're building an application for which we are using GitLab repository. Manual deployment of code to the test server which is Amazon AWS EC2 instance is tedious, I'm planning to automate deployment process, such that when we commit code, it should…
Vibin Guevara
  • 778
  • 10
  • 27
9
votes
2 answers

Check php errors log in my EC2 Instance running Amazon Linux

Iv have been trying to find a way on how to find where my php errors log file is stored in. I am using an EC2 Instance, in Amazon AWS running Amazon Linux. Usually, when using MAMP, I get some PHP Warnings and Notices I can see in a php_log file. I…
idelara
  • 1,786
  • 4
  • 24
  • 48
9
votes
3 answers

AWS Lambda permission denied when trying to use ffmpeg

I want to write a handler that responds to S3 put events to convert any avi files that are uploaded to mp4. I doing it in Java, in Eclipse, with the AWS toolkit plugin. For video conversion, I am using ffmpeg with ffmpeg-cli-wrapper, and I have…
moarCoffee
  • 1,289
  • 1
  • 14
  • 26
9
votes
4 answers

Amazon EC2 HTTP connection refused, but HTTP port is open

I created a new Ubuntu T2 Micro instance on EC2. Created a new Elastic IP and selected "EIP used in: VPC" Associated the address to my new EC2 Ubuntu instance. I now have a Private IP and a Public/Elastic IP. No Public DNS. My security group has…
fuzzybabybunny
  • 5,146
  • 6
  • 32
  • 58
9
votes
3 answers

AWS CodeDeploy can't find github tar link for private repository "could not download bundle"

I am setting up AWS CodeDeploy to get revision from GitHUB private repository. I tried using both AWS CodeDeploy GUI and also aws deploy command. For GUI, I follow instruction of this page…
TLee
  • 91
  • 1
  • 6
9
votes
3 answers

Amazon ECS - Persistent data between instances

How would you best handle persistent data between instances with a load-balanced service in Amazon ECS? Data only containers will not work and neither will the volumes you can specify in the tasks, they will both only persist on the instance itself.…
Sultanen
  • 3,084
  • 5
  • 25
  • 46
9
votes
1 answer

How to upload local system files to Amazon EC2 using ssh?

I have taken a free account of EC2 and setup LAMP on it, since my website was hosted on godaddy and its have a heavy chunk of data. Is there any way that I can transfer my files directly from godaddy or upload code from my local system?
shekhardtu
  • 4,335
  • 7
  • 27
  • 34
9
votes
3 answers

I can't transfer files using pscp to amazon AWS ec2 instances. Key refused

I can connect to the server command line using Putty using the same private key. But when I try to use the same key to transfer a file from my PC over to the server": pscp -i C:\xxx.ppk "C:\xx\somefile.yy"…
Theoden
  • 297
  • 1
  • 2
  • 11
9
votes
1 answer

AWS API Gateway with external authentication

I've built a backend which distributed on several EC2 instances (microservice architecture) and I'm using AWS API Gateway to channel all the requests through a single endpoint. I also built a token-based request authentication system, which requires…
9
votes
2 answers

Error: could not insert 'nvidia_352' after Installing Cuda on EC2 g2.2xlarge

After launching Ubuntu Server 14.04 LTS (HVM), I tried to install CUDA as following wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb sudo dpkg -i…
Liang Dai
  • 107
  • 4
1 2 3
99
100