Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.

-1
votes
1answer
20 views

Can't install phpMyAdmin due to package dependency issue

When I run the command sudo yum --enablerepo=epel install phpmyadmin it returns the following package dependency error: Error: Package: php-mcrypt-5.3.3-5.el6.x86_64 (epel) Requires: ...
0
votes
0answers
7 views

Getting EC2 Windows Password from instances when using Terraform

I'm struggling to get the password from a couple of new ec2 instances when using terraform. Been reading up through a couple of posts and thought i had it but not getting anywhere. Here's my config: ...
0
votes
1answer
20 views

Subdomain that uses Route 53 without migrating parent domain

I currently have a domain (asoba.co) that is hosted on Linode, and for which I use Linode nameservers. This site currently works as expected. My goal is to have an additional subdomain for a webapp ...
0
votes
1answer
16 views

Is connection to Bastion Server Open to Anyone

My team uses a Bastion Server as a tunnel server to secure our AWS EC2 instances. The connection to Bastion was configured based on this article. To the best of my understanding, the Bastion server ...
1
vote
3answers
144 views

AWS is eating up storage space

I have ec2 account setup with size of 80GB. I have uploaded ML code of 2gb on this ec2 instance. However for some reasons my instance is 99% occupied in terms of storage space ubuntu@ip-172-31-41-142:...
0
votes
1answer
107 views

How do I add storage with cloud templating?

I have a CloudFormation template to spin up an EC2 instance. Parameters: InstanceType: Type: String Description: Instance type for RStudio. Default is t2.micro. AllowedValues: - ...
0
votes
1answer
42 views

How can I move storage from one file system to another filesystem?

I'm on a Linux EC2 machine and I'm getting an error that my storage space is full. Error writing to connection: No space left on device I used df and I can see that I have plenty of space in some ...
0
votes
1answer
18 views

Not able to ssh after reboot on aws ec2 instance “Connection timed out”

After rebooting an aws ec2 instance I am not able anymore to ssh into it, putty on Windows is telling me "Network error: Connection timed out" and the same happens from the command line on a Linux ...
1
vote
1answer
41 views

Installing GeoIP on Amazon EC2 Linux

I am trying to install GeoIP module to block country specific traffic to my website. My Website is LAMP configured and hosted on Amazon AWS EC2 instance. As per some article on google, I followed ...
0
votes
0answers
12 views

OpenOffice Can't detect JRE

I'm trying to run the latest version of open office as a service on CentOS 7.4. I downloaded the 64 bit rpm package directly from open office using wget and I'm running a 64 bit version of amazon ...
1
vote
0answers
29 views

Multiple installation of postgres in AWS instance, why or how?

I was checking why some services were not working as expected in an AMI Linux instance in AWS and after some time I found there were two PostgreSQL installations, both version 9.6 located at: /var/...
6
votes
1answer
69 views

Why does Amazon Linux 2 have older version of wget vs. Amazon Linux 1?

We noticed that wget on Amazon Linux 2 is v1.14, but on the older version of Amazon Linux, it was v1.18. Any idea why this would be? I'm fairly certain we installed from yum in both cases. Is there ...
2
votes
0answers
18 views

Use S3FS Mount As HTTP Server Document Root

My proposed setup: An EC2 server running Apache or nginx. An S3 Bucket in the same region/availability zone mounted with S3FS. The Apache or nginx document root set to the S3FS mount. My question: ...
0
votes
0answers
20 views

AWS - Are EC2 Spot Instances charged for partial hours terminated by Amazon?

I'm seeing contradictory information in the AWS documentation. I'm wondering specifically about termination initiated by Amazon after the first hour. From the FAQs If the Spot instance is ...
0
votes
0answers
16 views

EC2 - Persist instance store swap volume after stop/start

I have an EC2 instance for which I want to configure a swap instance volume. I can do this relatively easily, by launching the instance with the instance store volume attached, and then running the ...
1
vote
1answer
33 views

Configure Nginx to serve Wordpress or Angular app depending on route on the same EC2 under same domain name

My goal is to serve a Wordpress site for my static pages for routes such as /about-us and /contact and then serve my bundled Angular application for the /login/, /signup/, and the user auth guarded ...
0
votes
0answers
25 views

Fixing Presence of Load balancer detected issue

I have a setup with Amazon EC2 running my webapp while the domain hosted at cloudflare. I dont have any kind of Load balancer setup in my infra. Yet when we run the security test at Qualys, the report ...
-1
votes
1answer
42 views

Minimizing the write-outage time of the database deployed on AWS EC2 [closed]

Say we have a relational database on EC2 instance. It has a set of EBS volumes in RAID mode. We perform a procedure of backing-up this instance. How to minimize the time during which we cannot write ...
1
vote
0answers
22 views

aws ec2: ipip tunnel between instances via public ip addresses

Can anyone kindly tell me that it's possible or not in the first place? Suppose: There are two ec2 instances In one aws account/vpc. In different subnets/available zones each other. Runnig on ...
-1
votes
1answer
30 views

After installing sysstat on an AWS EC2 instance: kernel: ena: Feature 27 isn't supported

After installing and enabling sysstat on an AWS EC2 instance I get the following log entries everytime sysstat is run (from the cronjob in /etc/cron.d/sysstat) in my /var/log/syslog file on Debian: ...
0
votes
1answer
36 views

Deploying ESXi onto Hyper-V on AWS?

Can I run ESXi onto Hyper-V which is deployed on AWS? Hyper-V can be deployed on AWS Running Hyper-V on Amazon EC2 Bare Metal Instances . Once Hyper-V is ready, ESXi can be installed according to ...
1
vote
1answer
12 views

AWS - Shared AMI (private)

I have an account which shares an AMI with another account. My assumption is if we delete the source account, which shares the AMI with new account, the shared AMI is new account will not be available ...
0
votes
0answers
30 views

ERROR: configuration failed for package ‘gifski’

I'd like to use the gganimate package in R, but it requires gifski which is failing. * installing *source* package ‘gifski’ ... ** package ‘gifski’ successfully unpacked and MD5 sums checked ---------...
0
votes
1answer
21 views

Missing package `udunits2` on CentOS

I'd like to use gganimate, but it requires the package sf. I tried to install, but I get this error. configure: error: in `/tmp/RtmpEpee0m/R.INSTALL282e663ea13f/units': configure: error: -----------...
0
votes
2answers
40 views

Unable to ping vpn clients from target subnet

I'm using AWS vpn endpoint to connect vpn clients to a subnet: I am able to ping an ec2 instance on cidr 10.0.0.0/16 when connected using the vpn endpoint. However that ec2 instance is unable to ping ...
1
vote
1answer
22 views

Can't connect to mongo server after restarting the EC2 instance

guys I'm new to AWS and what I did was I restarted the Ec2 Instance of mongo via a Schedule. But after restarting I am unable to connect to the mongo server from anywhere. i.e Robomongo (local machine)...
-1
votes
1answer
99 views

Run ESXi on AWS EC2?

Can I run ESXi on EC2? If so, any suggestion how to do that. I would like to launch an ESXi machine and host routing VNFs in it on AWS.
1
vote
1answer
65 views

AWS system failing on HEAD request but hardly on GET requests on stress test

I'm running a stress test with Locust on: c4.xlarge (attacker has c4.4xlarge) 1 instance amazonlinux 2017.03 The load balancer is: classic type internet-facing stickiness is disabled for both 80 &...
1
vote
0answers
36 views

nginx + uwsgi + django 502 bad gateway on aws ec2

I have successfully installed nginx and uwsgi on aws ec2 instance. But on hitting the public IP its showing "502 bad gateway". Though both nginx and uwsgi server status is running and active. The ...
1
vote
1answer
20 views

Creation of an AMI from attached volume

In one of the AWS certification quizzes I met a question, where the proper answer states, that creation of an AMI from an attached EBS volume is not recommended and it is a bad practice. Could ...
0
votes
0answers
16 views

How to upgrade OpenGL in Ubuntu 16.04 and enable it in Mate desktop?

I work for a company which develops behavior scenarios for autonomous cars. I've been given a task to install and configure an Ubuntu 16.04 GPU instance in AWS with Unreal Engine and Carla. ...
0
votes
1answer
39 views

AWS EC2 - Instance works as T2, but not M4 or C4

I'm having a very strange problem with server instance, which I'm trying to upgrade from PV to HVM. I've got through the migration process, and created an AMI. If I launch an instance from this AMI ...
0
votes
0answers
20 views

How to add subdomain with nginx and route 53?

I have let's say example.com and it's running on EC2 instance with nginx and i need to run api.example.com on the same ip of the EC2 instance as example.com i tried to create record set in route 53 ...
1
vote
0answers
43 views

Nginx Redirect to EC2 Instance

ORIGINAL I had angular (version: 7) site which was deployed on S3 bucket, but for SEO purposes, recently I integrated Angular Universal. Now I moved site/frontend from S3 bucket to EC2 instance. I ...
0
votes
0answers
65 views

How to set up S3 bucket with nginx?

I've encountered with the problem. I created S3 bucket with default permissions and uploaded files for my website (js, css, html) but when i try to access it via browser i get access denied. So i set ...
1
vote
0answers
36 views

SSH Tunnel with Port Forwarding

I'm attempting to establish a SSH tunnel to an AWS EC2 instance using: ssh -i ~/aws_rsa.pem -ND 8157 hadoop@ec2-xx-xx-xxx-xxx.us-east-1.compute.amazonaws.com From the debug log below, it appears the ...
0
votes
1answer
29 views

How to connect two EC2 instances using the eth1 interface on both instances?

I have 2 EC2 instances running Ubuntu 18.04. I've attached an additional network interface "eth1" to each instance, so each instance has 2 interfaces( eth0, eth1). eth0 is the default gateway. What I'...
-1
votes
2answers
70 views

What is the point of VPC if instance requires public ip?

I created ec2 instances in a public subnet (auto created with vpc wizard), and realized that some of them are not able to access internet. I learned that reason behind it is they don't have public ip ...
2
votes
1answer
45 views

Why EC2 instance continues responding to a ping request after deleting the inbound security group rule?

While playing around with AWS console, I tried the following Launched an EC2 instance (public IP enabled) in the default VPC with the default security group, and default subnet. EC2 launched in the ...
0
votes
0answers
34 views

Invalid Certificate Bitnami EC2

i have just bumped into SSL thing without any prior knowledge. I am working on bitnami AWS EC2 instance. Yesterday i mistakenly deleted all the files on the home. So i lost my SSH access to instance. ...
0
votes
0answers
43 views

AWS ElasticBeanstalk and Laravel CPU 100%

I have a Laravel 5.6 application running in a t2.small instance managed by ElasticBeanstalk. After every 2 or 3 minutes the status transitions to "Warning" due to 100% memory usage. In this picture ...
2
votes
1answer
32 views

How to set name in command line when running `aws ec2 run-instances

How to give Name in command line when running aws ec2 run-instances ? I don't find it in the official docs
0
votes
0answers
18 views

Amazon beanstalk deployment suddenly very slow: it went from 4 minutes to 15 minutes Any idea why?

Recently, we have seen the deployment time required for our Amazon Elastic Beanstalk go from 4 minutes to over 15 minutes. We're on a customized version of the canned Tomcat server (customized to add ...
1
vote
1answer
32 views

how to check ec2 instance-type availability in regions and availability zones

How can we tell which regions and availability zones an instance type is available in? I am looking for to check for c5.xlarge instance type. i already have one query but that is not giving me proper ...
0
votes
1answer
57 views

AWS Data Transfer Costs within the same machine

I have an ECS cluster of services running on a few EC2 machines. Each service is internet facing and forms a target group, all these target groups are on the same load balancer. Architecture: ...
0
votes
0answers
36 views

zsh: locking failed for /home/centos/.zsh_history: no space left on device: reading anyway

I am using CentOS image from AWS EC2, I have root volume attached which is 150 GB and I see below error message after I login zsh: locking failed for /home/centos/.zsh_history: no space left on ...
2
votes
1answer
40 views

AWS: Outbound only connectivity from a private subnet

I'm sure this question was asked before and there a number of documentations from AWS but it seems not working for me. But cannot find a straight answer to my question, so asking here again. I have a ...
3
votes
1answer
83 views

How to share a EFS/s3 with code in a auto scaling group?

the main problem is: Infrastructure: Autoscaling (min 1 - max 3) RDS ELB elasticache (redis) elasticsearch I want to share a volume (EFS / S3) with the code of my application; The size of it is ...
1
vote
1answer
19 views

Allow only Angular application to access Node application (Same EC2 instance)and block Node for everybody else

I have hosted both my angular(port no 4200) and node application(port no 3000) on the same EC2 instance. Both are currently accessible to anyone. I want to limit access to the Node application so that ...
3
votes
4answers
218 views

AWS IAM: Restrict Console Access to only One Instance

I am trying to create an IAM user for the AWS Console with permission to list and perform action on only 1 instance. So I have a total of 6 Instances and I tried hiding 5 of them via IAM Policies by ...