Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Browsing all 29449 articles
Browse latest View live

Userdata in AWS EC2 Linux [closed]

I have a EC2 instance which is created by one team using cloud-formation.This is Linux EC2 instance and in userdata i could see below data is passed. UserData: Fn::Base64: Fn::Sub: - | #cloud-config...

View Article


Install SSL Certificates on Docker Image

I am using EC2 instance to host my PHP app (Codeigniter) which is using Amazon Linux AMI ( Not Debian). Now I have created docker containers for the app which is using the base image - php:5.6-apache...

View Article


How to log to an explicit AWS CloudWatch log stream and change it...

I have a daemon in Scala running on EC2 that processes jobs. For each job I know a (possibly) different log stream I'd like to append messages to.How can I make a log-stream specific Appender that I...

View Article

Change key pair for ec2 instance

How do I change the key pair for my ec2 instance in AWS management console? I can stop the instance, I can create new key pair, but I don't see any link to modify the instance's key pair.

View Article

AWS EC2 forgot password and not able to use SSH

I have an ec2-ubuntu instance. And now I forgot the password for the user. Unfortunately i've also lost the .pem file and .ppk file i used to use with putty. And finding it difficult to get in. I want...

View Article


Crontab unable to run cron job every 1 minute Ubuntu

I have Ubuntu running on EC2 and I have written this script to check if my site is up or not.Here is my serv.sh file:#!/bin/bash # My first script yourURL="http://mywebsite.com" if curl --output...

View Article

How to access Neo4j on EC2 from Node

I set up a Neo4j database on an EC2 instance. I attached a domain name and created a certificate so that I can access the browser version from https://my-domain-name:7473. From the browser, I can...

View Article

Problem parsing json from "aws ec2 describe-instances" output

I'm trying to parse the following json that was output from the aws ec2 describe-instances cli command: "Reservations": [ { "Instances": [ { "Monitoring": { "State": "disabled" }, "PublicDnsName":...

View Article


Installing pip packages inside virtual environment on EC2 instance when code...

I am using TravisCI to deploy changes in my repo to an EC2 instance. Is there a way for me to install python packages from the requirements.txt file in this EC2 instance inside a virtual environment on...

View Article


How can we launch apache kafka on AWS EC2

After connecting to the ec2 instance and downloading kafka and java in it .... i ran the following commandsexport KAFKA_HEAP_OPTS="-Xmx256M -Xms128M" bin/zookeeper-server-start.sh -daemon...

View Article

How to programmatically clone/create AWS EC2 instance

I have the need to get a prepared/configured AWS EC2 instance (my template instance), clone it (into the same region) get the corresponding IP address of the newly created instance, change its hostname...

View Article

How to deploy code build to a EC2 instance from GitLab Pipeline

I have been working on a React web app and I need to deploy it now. I have the codebase in GitLab and I'm using Gitlab pipeline to run the tests and create build and deploy. For deployment I need to...

View Article

Image may be NSFW.
Clik here to view.

Unable to execute HTTP request : Couldn't Kickstart Handshaking

I am trying to hit my Spring Boot Server(2.1.4) with 500 user threads using JMeter(5.0). while trying this I got the error in JMeter log file which is about 1% of the Samples. Spring Boot server is...

View Article


Launch Configuration question (AWS Certified Solutions Architect – Associate...

You can see the question and answer given by others. My question is why not C, C also seems correct.Which of the following statements is true of creating a launch configuration using an EC2 instance?...

View Article

Problem while reading file from URL - Timeout

I'm able to execute below sample code locally (output: 200 OK) but unable to execute (output: timeout) the same code in AWS ec2 server. This code used to work perfectly fine in AWS ec2 until last week,...

View Article


bash: twistd: command not found

I am trying to start a socket connection in amazon AMI server, for that I have some existing code which is in python, I am a newbie to python and unable to start that, As I am trying to start that...

View Article

Failed to load application: No module named udpecho

I am trying to start a socket connection in amazon AMI server, for that I have some existing code which is in python, I am a newbie to python and unable to start that, As I am trying to start that...

View Article


Running Node app via PM2 on port 80

I have an express that I want to run on port 80. -->app.listen(80);I'm using PM2 to manage the app (restarting, stopping, monitoring, etc.) . I have a deployment shell script whose last command is...

View Article

How to resolve to private IP of AWS EB Load Balancer?

A Parse Server is deployed on AWS Elastic Beanstalk behind an Application Load Balancer.The EB environment URL is: example.us-east-1.elasticbeanstalk.com. An external CNAME record parse.example.com...

View Article

Image may be NSFW.
Clik here to view.

ec2 instance nginx set up point to localhost app

I'm not sure what i've missed, but i've done this set up many times in the past on digital ocean with node apps, however this one with amazon ec2 isn't working. My goal is to point it to a running...

View Article
Browsing all 29449 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>