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.

0
votes
0answers
5 views

Jenkins Pipeline Docker — Container is Not Running

I have Jenkins running on an EC2 Instance. I have the EC2 Plugin Configured in a Peered VPC, and when a job is tagged 'support_ubuntu_docker' it will spin up an Jenkins Slave, with Docker pre-...
0
votes
0answers
5 views

Auto mounting EFS on EC2 instance

I created an EC2 instance and an EFS, and was able to mount EFS properly on the instance. I need to auto mount in case the server is rebooted. According to the documentation, i do that following in ...
1
vote
0answers
13 views

Combining metrics of multiple docker containers of same service

Was wondering if this is possible. I have an Asp net core 2.1 app that is hosted in AWS as ec2 instance. There is an autoscale policy to bring it up to three instances if needed. In this service ...
0
votes
0answers
9 views

How to SSH in AWS EC2 instance using Terraform

I am trying to SSH in Linux Ec2 instance and install Nginx on it. To ssh, it asks for private-key and I passed .ppk file but it gives an error message "Failed to read key "PuTTY-User-Key-File-2: ssh-...
0
votes
0answers
7 views

Stonesoft VPN on EC2 disables outbound internet on the server

I have a Windows server 2012 instance running on AWS. I have an application installed that requires to connect to a third party web service but through VPN only. This is only a simple rest API call. ...
1
vote
2answers
13 views

GPU based alorithm on AWS Lambda

I have a function which perform some mathematical operations and need a 16gb GPU system, But this function will not be triggered always and rest of time my system will not be in use. I came to know ...
-3
votes
1answer
23 views

Get hostName of EC2 instance via Java

I want to find hostName of the EC2 instance, How can achieve the code in Java Thanks in Advance !!
0
votes
1answer
18 views

Disabled ec2-user ssh access by mistake

I have disabled ec2-user ssh access by removing authorization key and turn on public key authentication by mistake. Now I unable to access the server. Is there any way to gain access back?
0
votes
0answers
10 views

AWS EC2 FTP connection FileZilla FTP Error: Connection Closed by server

I have launched an AWS EC2 Instance, and I am trying to use FileZilla to transfer files using FTP. I have followed the instructions from here: https://forums.aws.amazon.com/thread.jspa?threadID=...
0
votes
1answer
8 views

AWS EMR on VPC with EC2 Instance

I am doing a reading on AWS EMR on VPC but it seems like it is more of design consideration for AWS EMR Service to access EMR cluster for calls. What I am trying to do is host a VPC with ALB and EC2 ...
1
vote
1answer
12 views

How can i connect to ec2 if i close port 22 using ufw?

I cant connect to my instance on ec2. All was ok early, and I think now problem in ufw. When I configured my server I enable ufw for 80 port and maybe its disable 22 port. Because early all was ok, ...
0
votes
0answers
2 views

cognito user does not exist when uploading code to elastic beanstalk

aws cognito user not exist i am making angular 5 app with login of aws cognito. Login is working properly with on local when i uploaded it to elastic beanstalk it is giving error User does not exist ...
0
votes
0answers
13 views

additional users to EC2 windows

I have spun up an EC2 windows instance in AWS. I would like to know how to enable login for the users with ssh key pairs in windows? Is it possible or should I just use windows login (username / ...
0
votes
0answers
11 views

Programmatically Download RDP file from AWS once a EC2 instance its launch with it java sdk

There are a few things I require help on, I am currently working with AWS ec2 instances. I have successfully started a server using an Image I have created in AWS and launch the image to multiple ...
0
votes
1answer
14 views

What is the best practice for having several AWS Lambdas consuming an external(EC2) Postgres

I've +100 endpoints at AWS API each one calling a specific Lambda script, that connects to a external Postgres DB, that fetch the data and return it. My question is, if I do that, 100 Lambdas scripts,...
0
votes
0answers
8 views

Amazon Linux EC2 instance unreachable - Volume Read Jumped

I'm running an Apache web server on an EC2 Amazon Linux instance. The server was unreachable (timeouts) this morning, both via SSH and through the website. I had to reboot the server and then I was ...
0
votes
0answers
3 views

Using tags prefixed with aws: in IAM policies

I have a use case where I'm creating a set of resources such as EC2 instances and S3 buckets using CloudFormation. I see that Cloudformation adds tags to both EC2 instances and S3 buckets with the tag ...
0
votes
2answers
19 views

Nginx is refusing to connect on AWS EC2

I'm trying to use nginx to setup a simple node.js server, I'm running the server in background on port 4000, my nginx config file is server { listen 80; listen [::]:80; server_name 52.53.196....
0
votes
0answers
13 views

sendfile() failed (32: Broken pipe) while sending request to upstream, request: "POST

I'm having issue when uploading file on production using meteor with nginx + passenger. I'm also using meteor files for uploading files. it worked great in development but i can't upload files in ...
0
votes
0answers
17 views

Terraform - AWS EC2 Instance - Userdata is available on the device but does not run when I apply the template

I've been struggling with this issue for the last few days. I have an instance that is created using a terraform template with userdata that is specified from a template file. The instance uses the ...
0
votes
0answers
13 views

CloudFormation copy AMI to region on demand

I am looking to use CloudFormation templates alongside AMI's for which I installed and configured my software to simplify deployment of software setups to a handful of regions and maybe other AWS ...
0
votes
1answer
8 views

How to setup email notifications for AWS operational issues

Yesterday our infrastructure started throwing lots of connection errors. We stated debugging and the more we looked, the more perplexing the issue appeared to be; until someone noticed the bell icon (...
0
votes
0answers
16 views

Execute Selenium script from CGI script

I am currently working on a project where we need to run a Selenium Script to automate some processes on an IE browser. We have to do this via Selenium as the website we're run automation on doesn't ...
0
votes
0answers
7 views

Setting up cloud9 on existing EC2

I have an existing EC2 t2.micro instance. I am able to connect to it from my local machine. Now I want to setup Cloud9 on it but i am having issues. Here are the steps that I have followed but getting ...
0
votes
1answer
13 views

AWS Lambda unable to link the tesseract Executable

Tesseract OCR on AWS Lambda via virtualenv Scroll to Adapatations for tesseract 4. I have used this link to create the executable and the dependency libraries for tesseract. I have zipped everything ...
0
votes
0answers
13 views

Scrapy Cluster deployed on AWS with multiple ec2 instance

I am using scrapy cluster and customized code to scrapy multiple different website. and i struck with below problem(ec2 1spider and ec2 2spider). 1)there are 2 ec2 instance running in aws and in both ...
0
votes
0answers
14 views

Google Oauth 2.0 redirect Cloudfronrt and EC2

I have a nodejs web app running on ec2. And I am using cloudfront with ec2 to access the web. I am trying to implement google oauth login using passport-google-oauth20 everything is working fine but ...
0
votes
0answers
6 views

How do you manage provisioning Packer EC2 Linux instances that require hostname entries reliably?

I have a packer ec2 instance where part of the provisioning entails updating the etc/hosts file for the instance. Among these entries is the one of the current running machine which is written in ip-...
1
vote
1answer
26 views

Installing the AWS Command Line Interface on Linux

I required pip before installing aws cli so I tried to install pip by using command. curl -O https://bootstrap.pypa.io/get-pip.py As soon as I run this command it starts the timer and after every 2 ...
0
votes
0answers
16 views

Fastest Way To Migrate ElasticSearch Data?

Since i started using AWS my data set grew from just 50GB to over 5TB. Such a cost is at the point where hosting with AWS is costing too much. I've decided to host my own cluster. The only issue i ...
0
votes
0answers
23 views

Public DNS (IPv4) gives ERR_CONNECTION_REFUSED after reboot

I have a t2.large EC2 instance running with an elastic IP. Whenever I choose to reboot the Instance, it gives a "This site can’t be reached, .... refused to connect." error. I have tried rebooting it ...
0
votes
1answer
18 views

AWS service to deploy a machine with default security groups, alarms, etc.?

I am looking to provide my software setup to others for use on AWS with as few manual steps as possible. I can create an AMI with my software pre-installed and configured rather than just an installer ...
0
votes
0answers
11 views

EC2 Instances and Sonar

We have two instances EC2, on the first is installed Jenkins + Sonar and on the second is installed XAMPP. The problem is how to configure Sonar to point to instance 2 to use XAMPP (mysql apache)?
0
votes
2answers
22 views

gaining access to aws instace or having the data that stored in postgresql database

I am trying to login to the aws instance using ssh and putty that having odoo v11 running, I followed different ways to get access but still, I cannot. Errors in ssh : permission denied (public key) ...
0
votes
0answers
17 views

How to apply count index on provider aws of terraform?

I want to create 3 ec2 instances in 3 different regions. I am using iteration and count index feature of terraform. But I am not able to apply the same feature for region parameter in aws provider. ...
1
vote
1answer
22 views

All commands results in Can not allocate memory: fork

I am using AWS EC2 and my EC2 configuration is 4GB RAM and 100GB storage. But my server shows error after few day's fork: Cannot allocate memory every command. when I use df command shows output as ...
0
votes
0answers
38 views

python packages not available to script executed from cron

I have developed a python Flask API and deployed it on aws ebs. The Flask API works as expected. The Flask API requires several python packages that I have installed by adding them to: requirements....
0
votes
0answers
21 views

Lambda, python boto3, delete instance older than x days

I'm very new to Python. However I've managed to customize a Python script for Lambda to search for Packer Builder artifacts left behind after running Terraform and Packer. I'm struggling with finding ...
-1
votes
0answers
23 views

How to migrate DigitalOcean droplets to AWS

I want to migrate all droplets(Ubuntu, CentOS) in Digital Ocean to Amazon Web Services where the data of the droplet should also migrate to AWS. Can anyone suggest me to do this process? Thanks in ...
0
votes
2answers
30 views

Could not run Ec2-server on port 80

I could run the server on port 8000 but when i try to use 80 with python manage.py runserver myip:80 I get: You don't have permission to access that port. If I use sudo python manage.py runserver ...
1
vote
1answer
16 views

Recreating or saving docker-compose files on ec2 reboot

So I'm running two ec2 instances, both instantiated via command: docker-machine create amazonec2 .... Upon each instance I have to run: docker-compose -f staging.yml up -d in order to run the ...
0
votes
0answers
11 views

Jenkins ec2 plugin - windows slave is very slow

enter code hereI'm trying to use jenkins ec2 plugin and I have problems with performance. My options for winrm: winrm set winrm/config/service/Auth @{Basic="true"} winrm set winrm/config/service @{...
-1
votes
0answers
20 views

What is the AWS ELB Health check configuration for cake PHP project?

I have one ec2 instances where i host a cake php project. which is running fine by server IP. But when I configure ELB on that instance. there is health check failure. targets status is showing ...
0
votes
1answer
17 views

Check if termination is enabled for all EC2 AWS instances

I have a code which lists all ec2 instances in all regions import boto3 client = boto3.client('ec2',region_name='us-east-1') ec2_regions = [region['RegionName'] for region in client....
0
votes
2answers
32 views

Can we access BIOS setting of windows EC2 instance

OS: windows 10 when I am trying to run the emulator from android studio it is displaying following error: Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration! Emulator: ...
0
votes
1answer
26 views

How to send Ec2 logs to S3 and then monitoring it using Cloudwatch

I am going through a situation where i do not know which is the correct way and how to do it. My Aim is : ec2 Logs should be uploaded in S3 and logs should be reviewed and monitored using ...
0
votes
0answers
25 views

Docker compose mount in AWS EFS (swam mode)

The problem is the following: I made 3 ECs on AWS EC2 and I did the docker swam, they can communicate. But when I want to do replicas something okay. Docker-compose.yml: - type: bind          name: ...
-1
votes
0answers
24 views

Problem connecting to ssh client in windows version 1803

I have launched an EC2 instance for my Application and trying to connect to it using SSH Client. My Windows version is 1803 and it comes with Open SSH Client and Open SSH Server (both are already ...
0
votes
1answer
12 views

AWS autoscaling Lifecycle Terminating:Wait not working as I expected it to work

I have recently setup ASG lifecycle hooks. So the ASG instances go into terminating:wait lifecycle state for 5 minutes and terminated automatically. But I observed that during the time the Instances ...
0
votes
1answer
12 views

who provide service for instance meta-data access on AWS EC2?

we can retrieve info via instance meta-data by cli or api, just like this: curl http://169.254.169.254/latest/meta-data/ from What's special about 169.254.169.254 IP address for AWS? we know that ...