Questions tagged [amazon-ec2]

0

votes
0

answer
2

Views

AWS EC2 private IP seen by vendor sftp server

I have assigned a public elastic IP address to an AWS EC2 instance in my default VPC that I provide to vendors that require IP whitelisting. When I attempt to connect to the vendor's sftp server, they claim they are seeing the instance's private IP address as the source IP trying to connect to their...
scotthb
0

votes
0

answer
3

Views

LDA genism is using only one core out of 16

A huge problem with training with LdaMulticore. It takes 2.5h to get only 25 topics. Whilst only one core is active, and I have 16 of them on Amazon EC2. How can I optimize this? Something is bottlenecking this process... When I take a look at processes only one core is active, but after some time...
curious95
1

votes
1

answer
1.1k

Views

How to get AWS Status Checks for an Instance

I am trying to retrieve, via AMAZON CLI tools, the 'Status Checks' information, which is displayed for an EC2 Instance in the console. For example 'Pending' or '2/2 checks passed'. I have used the following command: ec2-describe-instances [instance_id ...] However, it only returns Instance State inf...
user1654528
1

votes
4

answer
1.8k

Views

Grant EC2 instance access to S3 Bucket

I want to grant my ec2 instance access to an s3 bucket. On this ec2 instance, a container with my application is launched. Now I don't get permission on the s3 bucket. This is my bucket policy { 'Version': '2012-10-17', 'Id': 'Policy1462808223348', 'Statement': [ { 'Sid': 'Stmt1462808220978', 'Effec...
DK1990
1

votes
4

answer
782

Views

Use a Web Application Firewall (WAF) with an EC2 instance

I have a web app running on my Amazon EC2 instance. How can I integrate a Web Application Firewall with my EC2? I have tried setting up the WAF, but it can only be associated with either a CloudFront distribution or an Elastic Load Balancer. Do I need to setup a CloudFront distribution and point it...
qwerty
1

votes
2

answer
39

Views

Best choice of uploading files into S3 bucket

I have to upload video files into an S3 bucket from my React web application. I am currently developing a simple react application and from this application, I am trying to upload video files into an S3 bucket so I have decided two approaches for implementing the uploading part. 1) Amazon EC2 instan...
Arun
1

votes
1

answer
33

Views

How to disable AWS RDS encryption?

I made AWS RDS using db.t2.small by mistake I modified my RDS to db.t2.micro but it didn't work because of Encryption is enable in Configuration. Does anyone know how to disable DB encryption to downgrade it?
Tai Tran
0

votes
1

answer
26

Views

How can a node (AWS EC2 Instance) read its Kubernetes labels?

We are using kops to create our own kubernetes cluster in AWS EC2. We run some special processes on the EC2 instances and would like for them to have access to the kubernetes node labels, but I cannot find a way to access them from the instance. How can I access the Kubernetes labels for the node th...
Old Pro
0

votes
0

answer
4

Views

Can't SSH into AWS EC2 instance

I can't SSH into my EC2 instances - I am getting a timeout error. I checked the security groups to ensure that SSH traffic is working. I checked the routing tables and ensured that they are connected to an internet gateway. I was able to SSH into the instances just an hour ago but no longer. I am co...
Barodapride
1

votes
1

answer
1.8k

Views

Sticky Sessions: Good or Bad?

I have a web application that seems to be having intermittent race conditions when an identical request is sent to two of my load balanced servers. Obviously neither has completed the transaction at this point so both actions on each server is valid. Would sticky sessions fix this issue? Is the us...
Khalid Abuhakmeh
0

votes
0

answer
5

Views

accesing Jupyter running in AWS - getting certificate error accessing it

I am installing Jupyter notebook in AWS-ec2 as per this tutorial: https://medium.com/@alexjsanchez/python-3-notebooks-on-aws-ec2-in-15-mostly-easy-steps-2ec5e662c6c6 I am stuck at the point where I try to access the notebook from my laptop and get the below error: [E 06:33:24.239 NotebookApp] Except...
Venkat b
0

votes
0

answer
4

Views

Pub-Sub Design Pattern

I've got two projects: one of them is a multi-processor project and the second is a single processor. Both of them are written in Node JS. In addition, I'm using three systems - which are: Loggly, Mixpanel, e-Mail system. There are some events which are relevant to both projects - such as transacti...
Moran Mahabi
1

votes
1

answer
1.9k

Views

How to set celeryconfig file in in django

I have a Django project on an Ubuntu EC2 node, which I have been using to set up an asynchronous using Celery. I've been trying to follow http://michal.karzynski.pl/blog/2014/05/18/setting-up-an-asynchronous-task-queue-for-django-using-celery-redis/ I've been able to get a basic task working at the...
user61629
1

votes
1

answer
194

Views

Find out EC2 instance associated with Elastic Beanstalk Application?

Is there a way to find out what EC2 instance is associated with my Elastic Beanstalk Application from the dashboard? I have checked every single page under 'Configuration' but I couldn't find any info about what EC2 instance is running the application.
MeV
0

votes
2

answer
77

Views

SSH into AWS Cloud9 Environment

I would like to SSH into my Amazon Web Services (AWS) Cloud9 Elastic Cloud Compute (EC2) environment, but there is no key pair assigned to the Cloud9 EC2 environment. How can I assign a key pair to that environment, so that I can SSH into it? I created the AWS Cloud9 EC2 environment through the Clou...
Sean_Calgary
0

votes
0

answer
2

Views

Cannot expose internet-facing NLB forwarding traffic to private instance to internet

I have configured a cloud with following configuration VPC with a public and private subnet in two availability zones. Public subnet has an internet gateway and private subnet has a NAT gateway configured An internet-facing Network Load Balancer allowing TCP traffic configured in both availability z...
bot
1

votes
1

answer
221

Views

Cannot ping AWS instance (Yes, I added a security group)

I have set up the AWS EC2 instance and it is running. When I try to ping from my local box it is not available. None of the solutions I have found seem to work. I've added a rule to the security group: Custom ICMP Rule - IPv4, Echo Reply, N/A, 0.0.0.0/0 And I've completely disabled the Windows Firew...
Nick Sephton
1

votes
4

answer
1.1k

Views

Not able to access a port on ec2 instance for an Angular app

I am working on an angular app using the angular cli to set things up. Running the ng serve command spawns a server at this address :4200. When I try to access the page on the browser it doesn't work (connection timed out error). I believe this is because of security reasons so I added the following...
TK123
1

votes
3

answer
232

Views

AWS:How do I make my elastic beanstalk instance use my new reserved instance

So currently I have an application running on am m3.medium instance, its just an single instance running in EU/Ireland area. If I go to EC2 and buy a reserved instance of m3.medium when will my Elastic beanstalk instance starting using it. Does it just happen or do I have to redeploy or do something...
Paul Taylor
1

votes
2

answer
670

Views

Setting a remote git repository on AWS and pushing from Windows

I am trying to create a remote repository on my Ubuntu Instance on AWS and then push from my local repository on Windows. I followed the tutorial here. I followed these exact steps: I created an Ubuntu instance on AWS. I did ssh-add path/to/myKP.pem. It gave me an error Could-not-open-a-connection-...
DragonBorn
1

votes
2

answer
772

Views

How to install python packages like pip, numpy on AWS ec2 - ubuntu

Need to install python packages like pip, numpy, cv2 on EC2 instance of Ubuntu. I tried using sudo apt-get install python-pip but got below given error: [email protected]:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Don...
Rahul Agnihotri
1

votes
1

answer
242

Views

How to change pem file for an ec2-instance without creating new ec2-instance?

I have created an instance and its pem file named as demo.pem, But due to some security i have to change my old demo.pem file with demos.pem for the same instance. I do not want to create new instance for changing pem file => Is it possible? | Help?
1

votes
1

answer
667

Views

Best Practice for AWS Elastic Beanstalk Permission

I am new to AWS Elastic Beanstalk and still learning about it. Please share the best practice you know. 'eb deploy' uploaded the Django app to AWS. However, './manage makemigrations' will have permission denied error like this Traceback (most recent call last): File './manage.py', line 10, in exec...
coder
1

votes
1

answer
984

Views

How do I access pyftpdlib FTPS server on Amazon EC2?

I am trying to create a simple FTPS server on my Ubuntu Amazon EC2 instance using the Python library pyftpdlib. Here is the code straight from the documentation: #!/usr/bin/env python ''' An RFC-4217 asynchronous FTPS server supporting both SSL and TLS. Requires PyOpenSSL module (http://pypi.python....
Santosh Ghimire
1

votes
1

answer
1.1k

Views

Installed lamp on ubuntu server on an ec2 amazon instance, still can't access server through browser with apache running. Why?

I started an instance on amazon ec2, ami is ubuntu 14.04. I followed the steps on https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html exactly up until 'Transferring Files to Your Linux Instance Using the PuTTY Secure Copy Client' Since I don't need to put files on there just yet. Then I f...
BRNTZN
1

votes
1

answer
1.1k

Views

Why can opening a Couchbase bucket be very slow?

I'm trying to use Couchbase from .NET with the official SDK. I'm hosting the Couchbase cluster in Amazon EC2. The machine I'm trying to connect from is hosted in Microsoft Azure. For some reason, opening a bucket is extremely slow, this afternoon it took ~3 seconds to open a bucket, but now for some...
Mark Vincze
1

votes
1

answer
592

Views

Get CPU and RAM performance data with Java

I would like to get EC2 Instance performance data using this code: public void testCreateSpotInstance() throws Exception { BasicAWSCredentials bawsc = new BasicAWSCredentials( 'AKI2IUYDKF4KZV1DAL2A', 'Onv+nq32tUkiLlKI32H3JtIB7Y4QM3esh01J37tL'); AmazonEC2 ec2 = new AmazonEC2Client(bawsc); ec2.setEndp...
Peter Penzov
1

votes
1

answer
894

Views

Have multiple ec2 instances execute remote script

I know I can make a AMI of an instance and launch multiple identical servers, but if I need to make changes to a script I need to edit them one by one or make another AMI. Is there any way to have my ec2 instances use a script from a master instance or any other solution to this issue.
leakybytes
1

votes
1

answer
1.1k

Views

Creating Volume, Attaching volume and Mouting it to EC2 instance using Ansible

I have created an Ansible playbook, which performs the following tasks: Create an EBS volume. Attach the volume to an existing EC2 instance. Mount the volume in the instance. - name: Creating a Volume hosts: all sudo: yes tasks: - name: Creating a Volume ec2_vol: aws_access_key: '{{ lookup('env', 'A...
Bidyut
1

votes
3

answer
1.6k

Views

How can I set the nodeID of a YARN NodeManager?

I am trying to set up a custom Hadoop infrastructure on EC2 Spot Instances by the help of Ansible. Inside such an instance, only the internal IP is known. Luckily, there is an ec2.py script that dynamically generates an inventory and can be configured to use the full external DNS name of the instanc...
rabejens
1

votes
1

answer
41

Views

Current name for h1 instance in AWS

Does anybody know what is the current equivalent to AWS h1 instances? I think it's the i type but I'm not really sure if it's that or the r type. Anyway, my purpose is running a cassandra cluster on these servers, currently running on 6 r3.2xlarge servers. Any further advice to whether this is the...
Yaron Idan
1

votes
1

answer
177

Views

EC2 instance types for running a TitanDB cluster

I'm currently getting started on building up a graph database. For that I'm using Titan 1.0 and Cassandra 2.1.12 as the storage backend. For now I'll rely on Titans internal mechanisms for indexing and won't add any external indexing service like elasticsearch. For the general surrounding the graph...
Tim Specht
1

votes
1

answer
726

Views

Websockets and Ec2 instance

I'm using NodeJS with express to create a Websocket application with WS on EC2(Ubuntu). I have the following code: var WebSocketServer = require('ws').Server , wss = new WebSocketServer({ port: 8090 }); wss.on('connection', function connection(ws) { ws.on('message', function incoming(message) { cons...
John Jameson
1

votes
1

answer
2.3k

Views

How to stop EMR Cluster without terminating it?

I know it is possible to stop individual EC2 instances, but what about the EMR cluster? If I stop all EC2 instances comprising EMR cluster, would I still be billed?
Jessa
1

votes
1

answer
528

Views

Wordpress white screen when launching from AWS EC2 AMI

I've created an AWS EC2 instance with a Wordpress site running on it. The MySQL database is on Amazon RDS and everything works perfectly. I've created an image from the EC2 instance and a snapshot from the RDS instance and attempted to bring up the site using the new instances but I keep getting a b...
el diablo
1

votes
1

answer
1.5k

Views

Installing snort on Amazon Linux Dependancy Issue (libpcre.so.1)

I am trying to install snort on an amazon virtual machine, and I am running into a dependency issue. I would really appreciate any help! :D Operating system info below: # uname -a Linux hostname 4.1.13-19.30.amzn1.x86_64 #1 SMP Fri Dec 11 03:42:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux I have down...
jeff_h
1

votes
1

answer
512

Views

Hosting Django App on AWS EC2 Host

There are 3 paths on my AWS EC2 Host: 1) /etc/nginx/ (Contains nginx.conf File) 2) /etc/supervisor/ (Contains supervisord.conf & project.conf files) 3) /home/ec2-user/Project/ (Contains gunicorn_start.sh & project related files) Project |-- gunicorn_start.sh |-- project | |-- db.sqlite3 | |-- ma...
Naveen
1

votes
1

answer
122

Views

How to show the password after creating an instance using EC2 CLI?

I'm running the below command to create an instace from an existing AMI : 'ec2-run-instances ami-e1***** --name 'INSTANCE_NAME' -t t1.micro --aws-access-key %AWS_ACCESS_KEY% --aws-secret-key %AWS_SECRET_KEY%' How can I display the instance password after I create this instance by EC2 Cli?
MorLavender
1

votes
2

answer
407

Views

Not able to deploy with capistrano to aws from bitbucket

I try to automate deployment of Ruby on Rails application to AWS EC2 instance from the repository on bitbucket using Capistrano on local machine. I tried ssh, password, no password, forward ssh keys, use unique ssh keys without fowarding. Everytime I face with this ssh trace set :ssh_options, { ver...
Alex Shcherbyna
1

votes
2

answer
360

Views

Command stops whenever I log out of my server

I have a java program (text-based no GUI) that I have written and compiled and uploaded to a server. I run it with java -cp myjar.jar mypackage.MyClass which starts it running processing a datafile with 20,000,000+ entries in it and printing output to System.out. I have calculated that it will take...
Jason Barraclough

View additional questions