scp from AWS EC2 takes very long time
I am trying to scp a directory from my EC2 instance. I am using the following command:scp -i "keyPair.pem" -r ubuntu@ec2.....com:~/targetDirectory ./It seems like it is working and I see initially...
View ArticleUse one AWS Elastic IP for several instances
I need to provide my customers with fixed urls that don't change when the EC2 instances are stopped/started because sometimes we need to change the size of the EC2 and when we restart the instance the...
View ArticleAction Filters execution Order different in Chrome and Firefox
I have a very simple Asp.Net MVC site. That I hosted on AWS EC2. I am having a very weird behavior of action filters i.e. in FireFox the ActionFilter execute after the controller actions has been...
View ArticleHow can I speed up PostgreSQL connections from pgbouncer? (getting a...
I have a basic pgbouncer configuration set up on an Amazon EC2 instance.My client code (an AWS Lambda function, or a localhost webserver when developing) is making SQL queries to my database through...
View ArticleAWS ElastiCache Redis can't connect from Laravel nad from redis-cli
I'm having a problem connecting to ElastiCache Redis from Laravel application installed on EC2 instance or even using redis-cli from EC2 instance. LaravelI tried to use predis with configurations in...
View ArticleIs there a way to record the production server traffic and replay the same in...
We have an aws setup for testing we want to capture the traffic from live environment and play the same in the test environment, we tried with the AWS traffic mirror however we did not achieve the end...
View ArticleHow to persist my database in Wordpress when running docker image of...
I am running a docker image of wordpress on ECSI am using database as Aurora "name": "WORDPRESS_DB_HOST",and "value": "db.us-east-1.rds.amazonaws.com"PROBLEMIf i terminate my ECS instance and run the...
View ArticleAuto Tagging AWS Resources not wokring
I am trying to tag EC2 Resources on creation automatically using script available hereBut I am not sure why tagging is not happening, It says cloudtrail must be enabled, Do I have to do something...
View ArticleScrapy: Connection refused 111 when running spider on EC2 instance
I am trying to run a scraper to scrape images from Houzz.com and running in a lot of issues when trying to crawl a lot of product overviews. One of the issues is that I get a connection refused 111...
View Articlewget giving me HTTP 403 in Linux EC2
I have Linux EC2 instance when i am trying to download a file but getting 403wget https://plugins.gradle.org/m2/org/springframework/data/spring-data-releasetrain/Moore-...
View ArticleHo to configure NGINX in aws
I have set up k8s cluster in AWS ec2 instances with 1 parent and 2 child nodes using kops. Deployed 2 services and running with LoadBalancer service type in browser. Now I installed NGINX but through...
View ArticleAWS ec2 SSH timed out but still can ping it
My situation is that i can ping my EC2 instance using command shell of my PC but i cant connect to it using ssh (putty) ... i was able to do that this morning , was trying to send some files using scp...
View ArticleWhere can I find an overview of how the ec2.instancesCollection is built
In boto3 there's a function: ec2.instances.filter() The documentation: http://boto3.readthedocs.org/en/latest/reference/services/ec2.html#instanceSay it returns a list(ec2.Instance) I wish...when I try...
View ArticleNode JS auto restart all forever JS process when server goes down / crashes
I am using forever js to keep my node server running 24/7 on AWS EC2.I use this commandforever start index.js However, I notice that some time it randomly stops the process and my site goes down. I...
View ArticleHow to iterate through block devices using python
I have around 10 EBS volumes attached to a single instance. Below is e.g., of lsblk for some of them. Here we can't simply mount xvdf or xvdp to some location but actual point is xvdf1, xvdf2, xvdp...
View ArticleLinux instance via Amazon CLI (issue)
Please advise how to run the following command as getting the following message on EC2 instance.[ec2-user@ip-172-31-38-26 ~]$ sudo yum update-security -y Loaded plugins: priorities, update-motd,...
View ArticleADFS and .NET Core
I'm trying to implement ADFS for a .NET Core 2 application. Finding that there are very limited documentation regarding the subject.I'm trying to do this for an application that is located on a EC2...
View ArticleAWS cluster not able to access resource present in container
I just created a cluster,task definition and a service.Container is running successfully but not able to access resource present in container.I am trying to access with Public DNS ipv4 getting This...
View ArticleJenkins ecs Command not found
I installed third party tool (ecs deploy using pip install ecs-deploy) .When I try to deploy using command ecs deploy demo-cluster demo-service in command prompt its working fine when I try with...
View ArticleIncrease directory size in EC2 linux [closed]
I want to increase volume size of below two directories in EC2 linux/home/ /var/lib/docker I have a external EBS volume of 200GB attached to my EC2. Using linux commands how should i add volumes to...
View Article