Newest 'amazon-ec2' Questions - Stack Overflow

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
23 views

I get status 500 when I make a request to node

I have uploaded a MEAN stack project on aws instance made by Bitnami and I set Angular's dist on htdocs, where was default index.html. It works when I start the server with node index.js and it's ...
0
votes
1answer
15 views

Modify AWS AMI periodically

I'm working on a web application which uses node.js as server and MongoDB as database. Both my server and MongoDB is hosted in a same AWS EC2 instance. Now I'm working on to initiate AWS Auto Scaling ...
1
vote
1answer
9 views

pm2 deploy fails after full fetch

I want to deploy a simple app to my ec2 instance but I got this error: bash: line 0: cd: /home/ubuntu/source: No such file or directory fetch failed Deploy failed 1 I don't understand why is ...
-1
votes
0answers
13 views

installing GoDaddy SSL in Amazon ec2 windows instance

I'm using amazon web service. I'm using GoDaddy SSL. I'm using windows instance i'm following the steps provided by godaddy docs i am unable to install the ssl certifcate
-1
votes
0answers
19 views

Android: OkHttpRequest fails to parse response from Flask web server

I tried to implement login with flask server in android app. This is my code for flask server API. from flask_httpauth import HTTPBasicAuth @auth.login_required def get_resource(): token = ...
0
votes
0answers
18 views

Facing chromedriver unexpectedly exited. Status code was: 127 while using Headless chrome browser with docker & python 3.7 on AWS ec2

This is not a duplicate of other questions & I have tried the existing answers as well. On AWS ec2 I have created a docker container in which I am trying to open headless chrome. The docker file ...
0
votes
0answers
21 views

AWS EC2 AMI launch with user-data, but script doesn't work

Before I wrote the script, I tried each command in the same order and it worked. What is wrong when I put them in a script? The only commands executed from the script is the yum update and git ...
0
votes
0answers
19 views

Facing issue while connecting to ec2 instance using chrome secure shell extension

Windows 10 - chrome browser - secure shell extension. Facing issue while connecting to an EC2 instance using chrome secure shell extension. Connecting to awsjava@ec2-34-243-184-18.eu-west-1.compute....
-1
votes
1answer
31 views

Detect change in CodeCommit and run command in EC2 instance

I want to detect changes in my amazon codecommit repo and run following commands: forever stopall git clone // clone codecommit repo forever start index.js Right now I have to git push code from my ...
0
votes
1answer
20 views

Amazon Linux Angular CLI Sass Build Failure: /src/styles.scssKilled

node version: 10.16.0 angular version: 7.3.9 I am trying to deploy an application on an Amazon Linux LightSail instance. I have deployed everything else I need, but for some reason I am having a ...
0
votes
1answer
17 views

Firebase: how to fix Error: ENOENT: no such file or directory, open 'node_modules/protobufjs/google/protobuf/api.proto'

We are making the following query to cloud firestore: ` var meeting = await db.collection("meetings").where( "pin", "==", request.body.Digits).where( "status", "==", "in-progress").get()` ...
0
votes
0answers
18 views

AWS ECS container external url does not exist

I have created a docker image from a spring boot application with the default port configurations 8080, then created an ECS to run my image, according to the logs: : Started Application in 2.569 ...
0
votes
0answers
33 views

How should I resolve the following error message? (111)Connection refused: AH00957: HTTPS: attempt to connect to 127.0.0.1:5001 (127.0.0.1) failed

As mentioned I am receiving the following error message in my apache logs. [Sat Jun 22 12:57:53.746190 2019] [proxy:error] [pid 10299:tid 140435221571328] (111)Connection refused: AH00957: HTTPS: ...
0
votes
0answers
12 views

Restore cloudwatch logs from s3 to an ec2 instance

I have exported my cloudwatch logs data to my s3 bukcket by following https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3ExportTasks.html. Now I want to restore the exported cloudwatch log ...
1
vote
1answer
30 views

How to make my go daddy based domain name have https url?

I have bought a domain name through go daddy, and I am hosting a website through an ec2 server. I associated the ip address of the ec2 instance with go daddy domain name. At present, the website has ...
-1
votes
0answers
23 views

Use git to push code to EC2 instance and restarting node app

I want to push a code from my local pc git repo to EC2 instance but can find a straight answer how to do it. So step by step: git push from my local pc git repo -> code transferring to EC2 -> in EC2 ...
0
votes
1answer
16 views

PHP connection to MongoDB not working and responding “trying to get property of non value”

I have been trying to connect to my MongoDB atlas cluster using PHP version 7 on an AWS EC2 linux instance running apache2 to insert and update values in that database/collection. I have installed ...
0
votes
0answers
11 views

How to fix “Default VPC not found” error during Django app deployment to Elastic beanstalk ( I created Default VPC but no luck )

Note: I am pretty new to the AWS world so please let me know if I could improve my questions in any way by providing additional info. Thanks! I am trying to deploy a basic Django app to Elastic ...
0
votes
1answer
27 views

How to create EC2 instance with EBS volume in CloudFormation?

Hi I am trying to create an Amazon EC2 instance with an EBS volume. I have created a CloudFormation template: AWSTemplateFormatVersion: "2010-09-09" Description: "First EC2 instance" Resources: ...
0
votes
1answer
33 views

I am not able to copy S3 file to EC2 instance using Userdata in CloudFormation

I am unable to download an S3 file to my EC2 instance using CloudFormation Userdata property. I have assigned an IAM role but still not able to get it resolved. I assigned the role inside the ...
0
votes
0answers
18 views

Architecture with smaller vs bigger machines for heavy load

We have a small application with AngularJS frontend and NodeJS backend. We need to host it for more number of users, say 100,000. We have containerized the app and going to use AWS ECS for hosting the ...
0
votes
0answers
16 views

How to set ssl certificate on aws ec2 instance?

I want to use https (port 443) for my web app which is developed using NodeJS express mongodb.In order to do that I know I need to get ssl certificate. My app is hosted by Amazon ec2. My express ...
-1
votes
1answer
12 views

What is the cost of cross-region reading SQS messages?

I have a SQS queue created in TY3 AWS region and I write messages in it from an EC2 box that also lives in TYO3. I want to read those messages from an EC2 box located in US-EAST-1. What is the cost ...
0
votes
0answers
6 views

What is Virtual Processor core in AWS Ec2 and how to find it using Linux and Windows command

We are working on a project where we need to count licenses for JBoss EAP. As per docs, it is based on virtual processor core for virtual machine but we need to know how it is captured in EC2 ...
0
votes
0answers
16 views

Read Timeout when connecting to AWS elastic cache redis through spring boot app runnig on aws ec2 instance

I'm running a spring boot app as a Docker container on EC2 instance. I've created redis cluster(elastic-cache on AWS) and enabled encryption in-transit as well as at rest. Everything is proper in ...
0
votes
0answers
46 views

OkHttpRequest often fail to parse response from Flask web server in android application

I tried to implement login with flask server in android app. This is my code for flask server API. from flask_httpauth import HTTPBasicAuth @auth.login_required def get_resource(): token = g....
0
votes
0answers
16 views

How to create index.html file in Apache? [on hold]

Hi I am very new to Linux world. I am trying to create some work. I am trying to create one linux and windows instance in EC2. I have created cloud formation template to create resource. The instances ...
0
votes
0answers
6 views

I am unable to create new database on my database

I careated new instance in amazon ec2 after that I installed apache2 server, installed PHPMyAdmin on the server, after login to phpmyadmin I am unable to create the database. It is showing privilege ...
0
votes
1answer
23 views

How to check if an ec2 instance is running or not with an if statement?

I have an instance-id of an ec2 instance. How to check if that ec2 instance is running or not using an if statement? I am using Python and Boto3.
0
votes
1answer
13 views

AWS Cloud Formation : How to automate the EC2 instance cloning / snapshot

Automating "Cloning" / "snapshot" of an already existing AWS EC2 instance. I am able to create a AWS EC2 instance manually through Cloud Formation within the console. Alternatively , from Jenkins too ...
0
votes
0answers
13 views

Unable to create service in Amazon ECS using Application Load Balancer. No error message given

I am trying to create a service on an ecs cluster with an application load balancer to run a task definition with two containers, an api, and redis. When I attempt to create the service I get the ...
0
votes
1answer
30 views

Send POST request from one service to another in Amazon ECS

I have a Node-Express website running on a microservices based architecture. I deployed the microservices on Amazon ECS cluster with one EC2 instance. The microservices sit behind an Application Load ...
0
votes
1answer
34 views

PHP IMAP Installed but getting “Undefined function imap_open()” Error

I'm trying to install/enable IMAP on an elastic beanstalk environment. I got the IMAP module installed as shown by the command below (when executed by SSHing into the ec2 instance). $ php -m | grep ...
-1
votes
1answer
39 views

Why should I use IAM roles?

Please help me understand why AWS recommends assigning roles to EC2 instances ("role-based approach") over storing API keys in files on the instance ("file-based approach")? Consider three use cases: ...
0
votes
0answers
8 views

Airflow installed on EC2 : How do i connect to my on prem server? Do i need an Airflow agent on the server as well?

I have already installed Airflow on EC2 instance. My use case is to migrate some data from Oracle on prem database to AWS S3. I have the ETL scripts on the ETL on prem server. So the ETL server makes ...
0
votes
1answer
23 views

AWS EC2 - Where I find how many EBS (in Gigabytes) I'll get for creating Instance when I use t3.medium instance

In AWS EC2, How much Storage I can use when I create an Instance of t3.medium ??? I tried to create an instance but I did not know how much storage I get to use ... Can Anyone Help me?
0
votes
1answer
13 views

Can't export a EC2 AMI to another account because the AWS Marketplace OS is obsolete

I'm trying to backup an old instance that I have from one of my accounts that I want to close down so I don't lose that instance. I was thinking in backing up the instance by making it an AMI and then ...
0
votes
1answer
14 views

Can i get EC2 IPV4 back after stop

I stopped by EC2 instance to do some maintenance and after I started I got a new IP. bummer. I made an elastic IP to make sure it does not change again, but i still have people calling the old IP, is ...
0
votes
1answer
18 views

How to Change http into https in Amazon Ec2 through LetsEncrypt

I have an ec2 instance in amazon ec2. In that i have php files and mysql database. I am connecting my database using ec2 by following http://18.37.220.172/phpInsert.php. But i feel insecure. So i ...
1
vote
1answer
26 views

Hyperledger-Fabric Sample Code - First Network Error - node not found

I am attempting to build a dev environment on a Ubuntu EC2 instance. I have loaded the samples, generated certs. When I run ./byfn.sh up I get the following verbose output. + peer channel join -b ...
0
votes
0answers
12 views

Pass comma-delimited parameters inside script in UserData block

I have commadelimited parameter in CloudFormation Template: Parameters: BlockDevices: Type: CommaDelimitedList Description: Comma Delimited size for sda1 and sdb on NFS server Default:...
0
votes
1answer
26 views

Permission denied (publickey) sudo ssh -i <pem file> ubuntu@ip?

I’m connecting a ec-2 instance with my ubuntu terminal, and and I am still facing a problem Permission denied (publickey). When i run following command sudo ssh -i Desktop/iris.pem ubuntu@13.127.228....
0
votes
2answers
28 views

AWS RAM utilization

How to monitor AWS RAM utilisation. I could able to monitor CPU utilisation. Reason is understand the RAM utilisation for the current load, so I can plan the RAM for the targeted load while going live....
0
votes
2answers
39 views

AWS Network out

Our web application has 5 pages (Signin, Dashboard, Map, Devices, Notification) We have done the load test for this application, and load test script does the following: Signin and go to Dashboard ...
0
votes
1answer
23 views

unioning tables from ec2 with aws glue

I have two mysql databases each on their own ec2 instance. Each database has a table ‘report’ under a schema ‘product’. I use a crawler to get the table schemas into the aws glue data catalog in a ...
0
votes
2answers
28 views

Trying to automatically register my EC2 instances in Route 53

I have approximately 40 Windows EC2 instances running at the moment. This number will start to grow substantially in the next few months. Each one is a t2.small Windows 2016 Server instance. Cost is ...
0
votes
0answers
22 views

AWS ECS EC2 Secrets Manager: TaskCanceledException

I have set up an AWS ECS cluster with EC2-type container instances. In task definition, there is "SECRETS" environment variable specified with the value corresponding to a particular secret name. In ...
0
votes
1answer
11 views

Ansible : Add running EC2 instances to Auto-scaling group

I am working on an Ansible project in which I would like to add to my Auto-scaling group an existing EC2 instance found by tag-Name. I was able to find it with an AMI or terminating the old instances. ...
-1
votes
1answer
15 views

Hosting a Progressive Web App in the Cloud [on hold]

I've been running into problems in trying to find a cloud service which can host a progressive web app with a .app domain and an SQL database. How can this issue be resolved? I first tried using an ...
0
votes
0answers
8 views

ERR_CONNECTION_REFUSED after installing Magento 2 on EC2

I have enabled a2enmod rewrite, all the file permission are set as per the Magento documentation. Both the admin and the storefront CSS and JS are not loading. On the console - I see the error as GET ...