Questions tagged [amazon-ec2]

Amazon EC2 (Elastic Compute Cloud) is a web service that allows users to rent virtual computing capacity on which they can run their applications. Web service questions are on topic here only if the question is about the operating system or using a PC application hosted there. Otherwise, other sites on the network may be more appropriate

Filter by
Sorted by
Tagged with
0 votes
1 answer
463 views

Unprotected Private Key File

I have an Amazon EC2 instance that I have been using to learn networking concepts on, today I tried to connect via SSH and was prompted with the following error. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
0 votes
1 answer
31 views

AWS ec2 ubuntu - run command from calling a web endpoint

How do you run a particular command using an AWS EC2 Ubuntu instance - from a web endpoint? For example http://ipaddress.com/endpoint triggers the Ubuntu command For example http://ipaddress.com/...
0 votes
1 answer
33 views

AWS EC2 Instance "On Demand" - vCPU-based On-Demand Instance - does that mean pay only when used?

I'm new to EC2 (and come from having used dedicated servers). I'm trying to understand how it's priced with the new transition to their "vCPU-based On-Demand Instance". Does this mean that you don't ...
1 vote
1 answer
620 views

Postfix issue on Ubuntu (Amazon EC2): can not send email after a few success

I installed Posifx on Ubuntu 18.4 LT on an amazon EC2 box. After installation and configuration, I was able to send out two emails to my hotmail and another email account. I do received them. However, ...
1 vote
1 answer
377 views

how to fix broken fstab that causes / read-only on remote VM?

I broke my fstab by a multi line paste of commands on an AWS ec2. by some sort of miracle, the os still boots. output of mount: ec2-user@host:~ $ mount sysfs on /sys type sysfs (rw,nosuid,nodev,...
1 vote
1 answer
39 views

Amazon Route53 Record set doesn't work as intended

I have an hosted zone which contains a record set list. I encountered a problem after I made some modifications with my running instances which I can't remember exactly. My Record Set List ; www1....
0 votes
1 answer
952 views

AWS EC2 Ubuntu 18.04 LTS and export $DISPLAY to run graphical application

If I SSH into a Raspberry Pi or into a local VM running Ubuntu 18.04 LTS, then I can run: user:~$ export DISPLAY=:0 user:~$ gedit And this will open a graphical window on the OS with the text editor,...
1 vote
1 answer
347 views

FTP connection error in EC2 instance with secondary EIP

Recently I have launched an EC2 instance with WHM-cPanel. I have associated 5 EIP to the instance and assigned them for 5 different site in WHM panel. Sites are running good but connecting via FTP ...
1 vote
0 answers
29 views

How to point a subdomain to run applications using virtualenv on ec2 (AWS)

I added an ec2 instance (ubuntu server) in aws, installed python3.7, virtualenvs, pointed ec2's elastic ip to a subdomain, entered virtualenvs and made a webapp to run the web application. How do I ...
0 votes
0 answers
590 views

AWS Instance Created from Snapshot Failing "Instance reachability check"

I have a dev environment hosted by AWS (t2.large, RHEL 7.4) that is backed up with a snapshot every couple of hours. Today, I tried to create a new instance from one of those snapshots to run some ...
0 votes
0 answers
60 views

SSL not working

I've a nginx server on aws ec2 instance. I've successfully setup ssl and config for ssl in my nginx. If I check my ssl setup using websites like: https://whynopadlock.com https://www.sslshopper.com/...
1 vote
2 answers
301 views

AWS Cloned EC2 Instance Rerouting to Original Instance

I have an EC2 instance running OpenEMR Cloud Express 5.0.1 attached to an Elastic IP address and with a domain name associated with it. I recently cloned the instance using Action -> Create Image, ...
1 vote
0 answers
1k views

"cannot execute binary file" on aws ec2 with sage (using python) shell

I would like to use SageMath (using Python) on a AWS EC2 server. When I tried the SageMath console interface I got the following error: /opt/sagemath-8.8/local/bin/python: /opt/sagemath-8.8/local/...
0 votes
1 answer
138 views

Yum update file Error

[root@ ec2-user]# yum update file* Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper Loading mirror speeds from cached hostfile * amzn-main: packages.us-east-1.amazonaws.com * ...
0 votes
1 answer
164 views

Setup an ALB to re-route to a different target group if all checks are failing

We are trying to put up a maintenance webpage for our customers, when our application is down for whatever reason. Say we have an Application Load Balancer on AWS. How do we setup an ALB to re-route ...
0 votes
1 answer
4k views

How do I set custom response headers from an EC2 ALB?

I am finding it hard to get info on how to set custom response headers from an Amazon ALB. Is this possible?
1 vote
0 answers
928 views

Cannot find out what consumes my disk space in AWS

I use a free tier ec2 instance in amazon aws. I run a nodejs server with mongodb, and the server has a memory and cpu intensive job. df -h shows that I consumed 18G of 20G disk. Filesystem ...
0 votes
0 answers
271 views

EC2 instance Amzn2 was down for a month. Kernel panic when starting now

I had this fully functional Amazon Linux 2 instance which I had configured into a mail server. During the summer I shut it down. But nothing more than that. When I try starting it now, it only passes ...
0 votes
0 answers
228 views

install of nginx1.12 on amazon linux 2

I am getting following error, when I try to install ngnix on my amazon linux 2 Error: Package: nginx-1.14.0-4597.amzn1.art.x86_64 (atomic) Requires: libpcre.so.0()(64bit) You could ...
1 vote
0 answers
267 views

Error while connecting MySQL Workbench SSH tunnelling with AWS EC2 (Linux -Free tier)

First what I have done so far In AWS In Security group given 3306 port access for all MySQL/Aurora: Created a .pem key and saved it. PuTTY I am able to connect to MySQL (5.7) using PuTTY Created ...
1 vote
2 answers
4k views

Cannot ping EC2 instance. Inbound rules set

I've read several threads but can not find a solution to following problem: I have just set up a new instance of an EC2 server running Windows Server 20xx. I have set up an inbound rule for this ...
1 vote
1 answer
115 views

Why can ec2-user see root processes?

I was under the impression that, for security reasons, one user cannot see processes (and their respective command-lines) run by another user. Why is it when I run top on a Linux 2 AMI I can see root'...
2 votes
1 answer
2k views

How to install collectd in AWS EC2 in one step with no failed commands

I want to install collectd in AWS EC2. Im running as root: yum install collectd -y Output: # yum install collectd -y Failed to set locale, defaulting to C Loaded plugins: priorities, update-motd, ...
0 votes
1 answer
380 views

Slurm nodes on AWS set to drain at boot

I am working to configure slurm on an AWS cluster created with CloudFormation. At boot time some of the nodes get set to a "drain" state, with the stated reason being "Low socketcorethread count". ...
1 vote
1 answer
720 views

how can I make a hashcat mask for phone numbers in my area code?

I am trying to find my own wifi password in a hashcat hccapx file and i cannot figure out how to make a mask to find it. I have made a mask file that contains 123$d$d$d$d$d$d$d 124$d$d$d$d$d$d$d ...
0 votes
1 answer
118 views

Vapor App deployed to AWS gets stuck after high load

I have my Vapor 3 Swift app deployed to AWS inside a Docker container. I was following this instruction and the app was deployed successfully. Additionally, I have RDS PostgreSQL database running on ...
0 votes
1 answer
90 views

Amazon Web Services IDE setup

I am trying to connect to the Ubuntu 14.04 IDE I have launched on Amazon Web Services. I am using the EC2 Instance Connect (browser-based SSH connection) method to connect. I don't get an error ...
0 votes
2 answers
551 views

Unable to install Docker Enterprise edition on EC2 Amazon linux 2

Please I need assistance installing Docker EC2 Amazon Linux 2 After: yum -y install docker-ee docker-ee-cli containerd.io I receive: No package docker-ee available. No package docker-ee-cli ...
0 votes
0 answers
29 views

How to create LB on AWS that does not target port 80

I have an ubuntu instance with a process listening on port 3000, exposed via security group and all that. When I create an LB and a respective target group, and port 3000 for this TG, the UI will ...
1 vote
1 answer
921 views

How to add an EBS volume by snapshot ID to Amazon EMR

We have a large amount of data on an EBS volume. I am familiar with attaching the volume to a new EC2 cluster. But how is this done for EMR ? Here is the Add Storage dialog: notice there is no ...
0 votes
1 answer
170 views

Custom AMI with source code

In aws how can we create a custom ami which contains both config files and source code? (I want to create an ami with source code for the application embedded in it)
0 votes
1 answer
507 views

Ubuntu on an EC2 instance that uses the new AWS ARM processor architecture?

What are the downsides to running Ubuntu on an ARM processor from an EC2 instance at Amazon? Does it make any difference if I want to run a webserver? The price difference between a comparable ARM ...
0 votes
0 answers
93 views

NGINX Amazon EC2 keeps loading through 80 port is allowed

I'm trying to host ubuntu 18.4 server on aws ec2 instance. Here is my security group allowed port Though I've allowed 80 port but when i try to see on browser using my public ip it wont loading but ...
0 votes
1 answer
217 views

Cannot seem to access s3 bucket for training after mounting onto ec2 instance

I am using data on a s3 bucket for deep learning purposes. I mounted the s3 bucket onto ec2 instance using How to Mount S3 bucket on EC2 Linux Instance - Cloudkul. When I cd into my local directory ...
1 vote
1 answer
243 views

Cannot connect to EC2 instance more than once via SSH (OSX Terminal)

Update This may be to do with my account potentially being in an 'isolated' state as per this post: https://forums.aws.amazon.com/thread.jspa?start=0&threadID=239202&tstart=0 I'm going to ...
0 votes
1 answer
107 views

EC2 AmznLinux2 instance unreachable after repairing via snapshot

I hope anybody has experience with EC2. I'm in a spot. I accidentally removed glibc from my Amazon Linux 2 instance. Well, not entirely on accident, I was trying to replace the one I had with the ...
1 vote
1 answer
848 views

Amazon ec2 instances loopback two Network interfaces backtoback

I am working application called Intel DPDK 18.05 on Amazon ec2 instance, I tried to send traffic from eth1(apart from management network) to eth2 created on my Instance. the eth1 IP address is like ...
1 vote
0 answers
180 views

How can I dynamically update my AWS CloudWatch dashboards? [closed]

I have several dashboards in CloudWatch that represent a view of my infrastructure : Number of instances from an autoscaling-group that are currently running, the CPU/Disk usage per instance etc. ...
0 votes
0 answers
113 views

My Tomcat 8.5 doesn't work properly

I started AWS EC2, and installed Java and Tomcat 8.5 then I tried to access Tomcat and access Manager App to deploy.. But it's not loading front page.. just displaying 404 Error. Of course I turned on ...
0 votes
1 answer
2k views

AccessDenied error for ec2:DescribeKeyPairs while creating aws cloudformation stack

I'm running the following aws cli command to create a cloudformation stack for a single ec2 instance. $ aws cloudformation create-stack --template-body file://templates/single-instance.yml --stack-...
-1 votes
1 answer
98 views

Install Java 8 on Amazon Linux 2018.03 version without upgrading the Java 7 on the server

I would like to install latest stable version of Java 8 available through the normal package installation mechanism on Amazon Linux 2018.03 machine. Java 8 should not become the default Java. The ...
2 votes
1 answer
9k views

Slurm on AWS returns slurmstepd: error: execve(): : No such file or directory

I have installed a Burstable and Event-driven HPC Cluster on AWS Using Slurm according to this tutorial. With this installation I can burst instances and run jobs in the Slurm environment on EC2. ...
0 votes
1 answer
262 views

AWS EC2, Network calls in browser (https) are resolving to http, 301 redirect, unauthorized

I am hosting a website at https://website.com When a user logs in, there are many network calls using javascript (VueJS/axios) to get their data. That network calls all use the path https://website....
1 vote
1 answer
728 views

How to configure EC2 instance to accept inbound traffic from Bitbucket using reverse DNS

I want to configure an EC2 instance to accept any incoming traffic originating from Bitbucket (bitbucket.org, api.bitbucket.org, etc).  I tried this: But it gave me the error pictured in the red box.
0 votes
2 answers
982 views

How can I link AWS SSL to AWS Wordpress

I have created an EC2 instance for WordPress on AWS. My domain, its hosted zone, and SSL certificate all run on AWS. Can you guys please help me to connect my domain with SSL certificate? Really ...
0 votes
2 answers
258 views

Files aren't rendering on website (connected to Amazon EC2 file directory using Filezilla SFTP)

I registered a virtual domain with namecheap and set up an Amazon EC2 instance (I also set up an elastic IP, it looks like I did this correctly). I was able to have the EC2 instance successfully ...
1 vote
0 answers
179 views

Accessing Web App running on EC2 instance

I have an EC2 instance that is running searchkit. I successfully started the searchkit web app and it gave me an IP address that I should be able to access via my local machine, as well as a ...
1 vote
1 answer
672 views

How to reboot OS at Amazon AWS EC2 instance start [closed]

I am seeing device driver problems in EC2 instances that are stopped, and later started. A reboot always seems to fix them. Specifically this is with EC2 FPGA instances. I need a way to force an OS ...
0 votes
1 answer
286 views

Authorize other AWS accounts for EC2 AMI access

I have a number of Amazon Machine Images (AMIs) which need to be kept private, but shared with a growing number of partners and customers, each using a distinct AWS account. Each account should be ...
2 votes
0 answers
687 views

How can I connect to a AWS Windows Server instance via RDP?

I set up a Windows 2012 free tier instance, got the Windows password from the *.pem file, and in the Instances view from the AWS console, got the IPv4 public IP. On my Windows 10 laptop, started ...

1 2 3
4
5
14