Can we exchange metadata between ec2 instances in cloudformation template?
I have this query that is blowing my mind, the windows server 1+1 template i have created requires to be connected but for that i would need to get metadata(dns,iP etc) of one instance to another one....
View ArticleMy own git server (on EC2) git clone via ssh (permission denied) why?
I can connect from my pc to my EC2 git server using ssh ( i specified port 22 cause default port is onother):$ ssh -p22 dev@xxxxxxxxxxxx.compute.amazonaws.com this works fine, but when I try to clone I...
View Articlepip install in virtualenv on EC2 missing packages in requirements.txt file on...
I am pip installing a variety of packages inside a virtual environment on an EC2 instance (2018-03). Pip successfully installs some of the packages, but not all. I am using pip install...
View ArticleParamiko ssh into ec2 instance: throws Private Key File is Encrypted, but...
I am writing a Python program which spins up an AWS EC3 instance, which I then use Paramiko to SSH into and run some code. The problem is that about 50% of the time that I run the code I get this...
View ArticleAWS EC2 policy cannot change User Data
I'm trying to create a policy that allows changing User Data of stopped instances that have tags: "Name":"MyApp" but it only allows me to see the User Data. When I click save, it says I'm not...
View ArticleConnecting to EC2 instance when deployed jhipster app using "jhipster aws"
I have deloyed a jhipster app on aws using jhipster aws. But when I am trying to connect to the EC2 Instance, it's giving following warning : WarningYou may not be able to connect to this instance as...
View ArticleEC2 Remote Desktop with a flexibility to stop or spin new instance with all...
I have created a linux machine on EC2 for remote desktop but if I reboot or shutdown all data history gets lost. What would be the recommended way for this kind of workflow?shall I create an AMI before...
View ArticleHow to auto start web services when starting an Amazon EC2 instance?
How do I set the httpd and mysqld services to start automatically upon booting an amazon-ec2 instance?Currently I have to start them manually by connecting to the instance via ssh and running sudo...
View ArticleAWS EC2 suddenly cannot connect to RDS?
Suddenly, wordpress cannot connect to my RDS. all configurations and inbound/outbound rules are correct. I also tried creating basic php function to connect.. I tried it on my local machine and it's...
View Articlesshd2 command consume 100% memory in ubuntu on ec2
I noticed that command sshd consume more than 100% cpu usage on EC2 Server. I'm attaching screenshot which is result of command top. For information : I've installed solr.Unfortunately this command use...
View ArticleECS to Authenticate with Docker Hub
I'm having issues authenticating with a private repo in docker hub from my AWS EC2 instance.AWS provides documentation on how to set this up....
View ArticleConnection timeout when connection mongodb from lambda
I am facing a weird issue. I have MongoDB installed and working on a project on an EC2 instance. I tried to access the DB from local it is working fine. But, when I try to execute my AWS lambda...
View ArticleAWS EC2 windows user getting logged off closing all console programmes
We are facing a strange issue. We have built a AWS EC2 instance windows OS. On this EC2 instance we are running console application with high I/O. Instance type is I3.4Xlarge. After every 3 to 4 hours...
View ArticleAlternative to ping [closed]
I want to see if an Amazon EC2 instance is open, but by default Amazon EC2 blocks ping requests. There is a way to do this by changing the security policy of the instance. Excluding that, what would be...
View Articlehow to uninstall apache web server from AWS ec2 instance?
I have tried different commands but still unable to uninstall/remove apache server. here are few command which i have tried:sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common sudo...
View Articleusing AWS Elastic search with VPC endpoint django haystack
I want to use AWS Elastic-search service with my django application which is running on EC2 instance. For that I use the settings - HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE':...
View ArticleError: Could not resolve module @angular/core
I am trying to run an angular 4 application but i keep getting this errorERROR in Could not resolve module @angular/core There are no other errors. No dependency errors nothing. @angular/core exists in...
View ArticleAWS autoscaling starts not ready instances because of userdata script
I have an autoscaling that works great, with a launchconfiguration where i defined a userdata script that is executed on a new instance launch.The userscript updates basecode and generate cache, this...
View ArticleDebugging refused ssh connection to EC2 instance
I have created a new EC2 instance api1-new in the same subnet, same VPC and using the same security groups as an old instance api1-old. api1-new was created from an Ubuntu Linux AMI that already has...
View ArticleCan't call any powershell script from Cloudformation template (windows instance)
I created a Windows 2012 AMI and created an instance of that AMI using the CloudFormation template shown below.In that JSON script I want to call a PowerShell script to disable a service (simple one)....
View Article