Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
14 views

Understand the output of top command

I need some help in understanding the output of top command. CPU% is shown as 112.4% How can it be more than 100 % ? How do I interpret this? Also what is VIRT,RES and SHR there? Also it shows that 1 ...
3
votes
1answer
26 views

Amazon AWS localhost error: channel 3: open failed: connect failed: Connection refused

I have just made an AWS ubuntu instance with a private key. I managed to connect to it through ssh, but I can't connect to it in web browser with localhost. I'm connecting through a windows computer ...
0
votes
1answer
25 views

AWS EC2 - Get access logs of AWS EC2 Instance logged in by RDP

I have created a windows instance and got .rdp file. How can i get the access logs i.e WHO and WHEN the instance is logged into with this .rdp file. Also, how much time was it used. Need help with the ...
0
votes
0answers
14 views

Rails SSL running puma and EC2 AWS

Specs: Rails 4.2.4, Ruby 2.1.9, running puma, EC2 instance in production mode I have an SSL certificate that I want to install on my server but using techniques like this one yields no results ...
1
vote
1answer
27 views

TCP port mapping / proxy with AWS

I have several services running on a single AWS instance on different ports: rabbit :5672 rabbitMQ :15672 elastic :9200 a few others I have a jumpbox on AWS which handles all incoming requests. I ...
0
votes
0answers
36 views

AliasMatch not working in AWS EC2 Apache2 server conf

I have a site running on a locally hosted server configured with Apache2 that uses this AliasMatch rule in the .conf file: AliasMatch ^/media/(?!video_uploads)(.*)$ /var/www/proj/media/$2 This ...
0
votes
0answers
7 views

Is it possible to get the cloud9 ide private key to debug: “AWS Cloud9 couldn't connect to SSH server ubuntu@ip”

I have an ec2 instance that I can ssh into, and a docker instance inside it that cloud9 ide can't connect to when I try to create an SSH environment created with the docker sample instructions. I've ...
1
vote
2answers
52 views

ec2 not able to a ping google.com

We created new vpc for our new architecture and vpc has 4 subnets in that private 2 and public 2. Private and public one will be Mumbai A and Mumbai B region. If I Try to do ping google.com from ...
-1
votes
0answers
41 views

AWS - Environment health has transitioned from Ok to Warning notification

I am facing a "Warning" notification in Elastic Beanstalk. How can I determine the reason for this error? I have checked instance CPU USAGE in a CloudWatch but it was set maximum 58.9% during warning ...
0
votes
0answers
31 views

Setting up a Laravel project on AWS Fargate

I am trying to run a Laravel Docker Project on AWS Fargate. The project builds and runs successfully on local machine. I am able to browse to http://localhost:8000 and it works just fine. However, ...
0
votes
0answers
22 views

EC2 instance stopped connecting to Port 80,443,1443 but RDP works on W2K16 Datacenter instance

Around 7:30 Thursday my web site which is hosted on AWS EC2 which has been up since late March, just stopped working. External users cannot connect to HTTP port 80 or HTTPS port 443. No change was ...
0
votes
3answers
46 views

Another EC2 ssh issue

I am having an issue with the ssh daemon not starting on one of EC2 instances. I created another instance to access the volume, mounted the volume without any issues and tried many many solutions ...
0
votes
2answers
48 views

Webapp with Python back-end. Should I use AWS Lambda?

I want to build a webapp with Python back-end. The front-end of the webapp will just have a simple input box where the user puts an address. Then, on the back-end I want to scrape content from the ...
0
votes
0answers
15 views

Deploy one django project with multiple app on multiple subdomains on AWS EC2

I have one django project which contains 2apps namely, admin and api. The admin app is dependent on api app to access the models. I have 2 subdomains like: admin.xxxx.com and api.xxxx.com. This ...
2
votes
1answer
40 views

Can you use m5d's local SSD as a root device?

I've been using the Amazon ECS AMI on m5 EC2 instances, and I noticed that there's a new m5d instance type which is similar but comes with a 70 GB local SSD. Since these are throwaway instances, ...
0
votes
1answer
23 views

aws ec2 t2.small vs t2.medium CPU performance

Since t2.medium has 2 VCPU and t2.small has 1 VCPU would it be faster as a web server? (Apache/php). I am wondering if I upgrade if I will gain any performance benefits.
0
votes
1answer
14 views

How to install svnmucc on Amazon Linux?

I have an AWS Linux machine running Amazon Linux: Linux XXX.XXX.XXX.XXX 4.4.30-32.54.amzn1.x86_64 #1 SMP Thu Nov 10 15:52:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux And I am trying to install "...
0
votes
0answers
19 views

How to remove a partition and create a new partition for usr in cloud environment

I'm working with a AWS environment with 8G root and there is only 1.4G free space at the beginning. $ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 8.0G 6.7G 1.4G 83% / ...
0
votes
1answer
47 views

How can i download my aws key file? [duplicate]

I asked a freelancer to migrate the website from staging to live server and they perform the migration, but now I want to back up the files and DB I need a pem file, which the freelancer never gave me....
0
votes
1answer
22 views

How to dynamically add users clause in CloudFormation::Init (or, how to programmatically set template keys)

The AWS::CloudFormation::Init documentation allows the specification of users to be created on ec2 instances, thusly: "users" : { "myUser" : { "groups" : ["groupOne", "groupTwo"], ...
11
votes
2answers
1k views

How to max out performance EC2 instance

Disclaimer: I am a front end dev in a server kind of world. Hi guys. I have a server instance on EC2, the c5d.9xlarge, whose specs are: System: Ubuntu 18.04 vCPU: 36 threads/cores Memory: 72 GB ...
0
votes
1answer
83 views

Not understanding metrics of k6

I have load tested my server with k6 and I have some doubts about the results I have obtained. /\ |‾‾| /‾‾/ /‾/ /\ / \ | |_/ / / / / \/ \ | | / ...
1
vote
1answer
27 views

OpenVPN on AWS - no access to Internet

I seem to have encountered a strange problem with configuring OpenVPN on an AWS EC2 instance (Ubuntu AMI). Connection gets established, two-factor authentication passes, but once connected, the client ...
-2
votes
0answers
13 views

Ubuntu aws VM - Constantly losing disk space [duplicate]

Note: The article that was posted as a solution to these issues, assumed the problem was related to files that were hidden due to mounting another file system on an existing folder. THIS IS NOT the ...
0
votes
1answer
17 views

Trigger external API Calls with Cloudwatch Events

I am looking for a solution to make a POST Request to an External API when the state of an EC2 Instance changes. I want to use Cloudwatch so that I can pass the InstanceId to the API with the Input ...
0
votes
0answers
20 views

Attach security groups to multiple EC2 instances

Is it possible to attach a new security group to all the EC2 instances in a specific region and keeping the old ones in place?
-1
votes
0answers
22 views

Sending RESTCONF request on EC2 instance [duplicate]

I'm deploying CSR 1000v on EC2 instance. I have enabled RESTCONF by the following CLI commands in the router: csr1# configure terminal csr1(config)# restconf csr1(config)# ip http secure-server csr1(...
0
votes
0answers
14 views

AWS Application Load Balancer not working

I have a EC2 cluster with just one EC2 instance, where two services are running: api1, listening at port 8080 api2, listening at port 9090 If I make requests against EC2 instance and those ports, ...
0
votes
1answer
28 views

How to autoscale Kubernetes cluster on AWS

I created kubernetes cluster on aws ec2 using kubeadm. Now I need to autoscale the K8's cluster when there are not enough resources on nodes to schedule new pods, How can I achieve autoscaling feature ...
0
votes
0answers
29 views

Can I use elastic beanstalk if I am a lightsail user?

Can I use elastic beanstalk if I am a light sail user. After creating an instance I can't find an instance in ec2>instance
1
vote
0answers
21 views

/home/webapp: No such file or directory elastic beanstalk

When I deploy my ruby app on aws using elastic beanstalk. Following error occur. pass log App 20278 stdout: intializing git App 20278 stderr: error: could not lock config file /home/webapp/.gitconfig:...
1
vote
1answer
57 views

Adding a second network interface on Amazon EC2

I'm trying to add a second network interface to Ubuntu 18.04 instance on Amazon EC2. I followed this guide from Amazon on how to do it, and added a /etc/netplan/51-eth1.yaml file with the following ...
0
votes
1answer
19 views

EC2 instance and EDS volume is restarting even after the terminate/delete

I am dealing with this issues for quiet couple of hours and tried all possible ways to delete my EC2 instance that I created for testing/free trail. Immediately after stopping/terminating the EC2 ...
1
vote
1answer
18 views

EC2, Tomcat, Amazon Linux and Out of memory

I use AWS Elastic Beanstalk to run my application on Tomcat 8.5 with Java 8 running on 64bit Amazon Linux. I use t3.small which according to specification has 2vCPI and 2.0 GB of memory. My ...
0
votes
1answer
32 views

Problems SSH authentication in AWS

I'm running docker Yang Development Kit for python ydk-py in my remote Ubuntu server. I would like to establish a connection using with the remote server and my AWS EC2 instance that runs CSR 1000v (...
0
votes
0answers
15 views

Recover ec2 root password

Last week I changed the root password of our Centos ec2 instance and now I've forgotten what the new password is. I can SSH into the machine using my user account without a key, I disabled it in SSH ...
1
vote
0answers
23 views

R Shiny app on AWS instance blocking API requests to Google Geocoding API

I have an R Shiny app hosted on AWS ec2 instance and part of the app is it makes API requests to Google geocoding API. This works fine locally but I have the app dockered and up on the instance and ...
0
votes
1answer
24 views

EC2 yum sometimes not working User Data

I'm having such a weird behaviour with my EC2 lately. Sometimes (not all the times), when my autoscaling group create a new EC2, the EC2 cannot run its User Data because yum is broken, and can't fetch ...
0
votes
2answers
33 views

AWS Elastic Load Balancer: Forwarding Requests to all Instances

Using Terraform to create Autoscaling Group (with 2 instances) and Elastic Load Balancer (ELB) in AWS. The instances are running simple http-echo server written in Go on Port 3000. When the DNS ...
0
votes
1answer
50 views

AWS Autoscaling Group: Invalid fleet configuration Error

Using Terraform to create Autoscaling Group in AWS. Using mixed_instances_policy in aws_autoscaling_group resource of Terraform. resource "aws_launch_template" "go_app" { image_id = ...
-2
votes
0answers
22 views

Cannot connect to nginx ec2 instance

I have an nginx server instance in AWS ec2. The listen entry in the config file is the servers public DNS and the port to listen on is port 80. The purpose is to act as a reverse proxy, which will ...
-1
votes
0answers
30 views

Allow outbound traffic for some of the domains and IPs and block all other traffic

In a Linux host, i am trying to whitelist some domains and IP ranges for outbound traffic and blacklist all other traffic. My use case is that user access linux host without admin right should be able ...
2
votes
1answer
38 views

Induce reachability status check failure

I have some tools that monitor the status checks of all my organisation's EC2 instances. I'd like to test them by deliberately inducing a failure of the reachability status check (that comes by ...
2
votes
0answers
32 views

AWS EC2 + Google Domains: Paths not getting converted

I am hosting a Python Flask web app on AWS EC2 and am mapping this AWS URL (http://myappname-env.abcxyz.us-west-2.elasticbeanstalk.com) to a domain on Google Domains (example.com). I have the A and ...
0
votes
0answers
43 views

Trouble with Cloudwatch Event Targeting SSM Automation

I want to be able to shut down any ec2 instances with a certain tag, triggered by a scheduled cloudwatch event. However, when i choose SSM Automation as a target and choose the StopEC2Instance ...
0
votes
1answer
39 views

AWS - EC2 : How to use a different public address for outbound connections [closed]

I have an AWS Ubuntu EC2 instance with an elastic IP address assigned to it and running a web application. I would like to run a web scraping script on my server and I do not prefer my server / ...
-1
votes
0answers
26 views

Are AWS EC2 suitable for email hosting? [duplicate]

I was wondering whether Amazon EC2 servers are best suited for email hosting as I tried in installing one but got stuck on a problem(which I have asked about here but nobody answered) or are there any ...
5
votes
2answers
70 views

Can SSH to EC2 But Forgot Account

I have an EC2 micro instance that has been running for years. I can still SSH into it, but I've completely forgotten the email address I used to create it. I had been moving from email to email every ...
0
votes
2answers
59 views

How to connect from ydk-py to Cisco CSR 1000v deployed on EC2 NETCONF sessions

I'm running docker Yang Development Kit for python ydk-py in my remote server Linux Ubuntu. I would like to Establish a connection using the following command in there. (ydk-py)samples$ ./bgp.py --...
0
votes
0answers
23 views

How to connect with root on ec2 without sudo? [duplicate]

I made a mistake. I used sudo chown -R 775 on /usr/bin instead of using sudo chmod -R 775 (don't judge me please). So now i'm stucked with ec2-user and i can't use sudo anymore. What can I do ? I'm ...