passing command from awk to the next command using xargs
I am using AWS EC2 CLI to perform a filter on stopped instances, then create an AMI out of these with the AMI name taken from the instance tag.aws ec2 describe-instances --output text --profile proj...
View ArticleCannot perform an interactive login from a non TTY device
I was working with docker build that was working fine for me but from yesterday i am getting error while trying to login to aws cli docker Error Error: Cannot perform an interactive login from a non...
View ArticleConnecting to EC2 Windows host from Linux
When I use the recommended rdesktop to connect to Windows EC2 host I see from Archlinux:$ rdesktop 54.254.180.73 ATTENTION! The server uses and invalid security certificate which can not be trusted for...
View ArticleAre there any ways to control the speed of AWS SQS
I wonder if there are any config that help control the throught put of SQS queue. For example, limit the queue to only send 30 requests/sec.
View ArticleHow to add new repository in CentOs
I am trying to install readR package from R on EC2 instance.I found a solution on this post:I would like the script for CentOS but the answer is for Ubuntu:[1] apt-get update # refresh [2] apt-get...
View ArticleFeatured Image not load after installing SSL Bitnami Apache
I have recently create a ghost site on AWS EC2. I use Bitnami Ghost Image to install ghost. This image uses apache for web server. And my ghost cms version is 3.9.0 .I use Cloudflare for map dns. But...
View ArticleConnect to remote mongo server works fine but when connecting through Go, it...
I'm connecting to remote mongo server using following ssh tunneling command:ssh -i document-db-tun.pem -L 27017:docdb-2019-07-30-09-40-47.cluster-cffrhwfhhfof.us-east-2.docdb.amazonaws.com:27017...
View ArticleElastic Beanstalk empty /var/app/current after successful deployment
I have a config with CodePipeline that deploy a Laravel app into Elastic Beanstalk. The deployment is successful but the /var/app/current is empty, 404 on url of course, no eb logs. Someone has an idea...
View ArticleHow to increase vm.max_map_count?
I'm trying to run Elastic search in an Ubuntu EC2 machine (t2.medium).But I'm getting the message:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] How can I...
View ArticleHow does my neo4j browser still works even when I stop neo4j service?
neo4j.service - Neo4j Graph Database Loaded: loaded (/lib/systemd/system/neo4j.service; disabled; vendor preset: enabled) Active: inactive (dead) Mar 06 13:26:43 ip-10-14-12-59 neo4j[12287]: 2020-03-06...
View ArticleExecute python script on EC2 instance via AWS lambda
I have an AWS EC2 instance on linux running 24/7 with a set of python files that are working properly. From the shell, I can input python python_script.py var1 var2. var1 and var2 are simply integers...
View ArticleFiltering ec2.snapshots by name [duplicate]
Im iterating through the snapshots inside my aws account, but also getting the public snapshots from aws. To avoid this I created the function filtering_owned()def filtering_owned(snapshot): for t in...
View ArticleCan I stop a spot instance in aws just like I can stop and start an on demand...
I had a use case where I was switching to using spot instances for my application instead of on demand instances. According to my requirement i should be able to stop that instance and restart it just...
View ArticleAbout the environment variable access in Linux
I have the below Environment variable in Linux machine.$echo $JAVA_OPTS -Dspring.datasource.username=root -Dspring.datasource.password=XXXX! -Dspring.profiles.active=aws Now I need to pass the password...
View ArticleExpress - how to calculate avg requests per minute
I'm looking for a simple way to know how many records are being created by my Node.js analytics service. I came across average-requests-per-minute Express middleware, but the author says:Disclaimer:...
View ArticleIs there a way to clone a private git repo inside ec2 instance when creating...
I am trying to create an ec2 instance with Terraform and want to clone a git repository inside the ec2 instance while launching it using Terraform. Is there a way to do it? Doing a git clone is not...
View ArticleTerraform "Route target is not supported" when creating a AWS route table to...
Using terraform v0.12.21 and the AWS provider v2.51.0, I'm trying to create some infrastructure from scratch (no previous terraform state).The goal is to have some publicly-accessible EC2 instances in...
View ArticleAspnet Core Application - Document DB Timeout Error
We have an application with C# and AspNet Core 2.2 and we use AWS document db, our db is configured with replicaSet which 1 is main and 3 secondaries.The application start fine on production but when...
View ArticleSetup a single AWS load balancer for multiple .net core applications hosted...
Framework: .Net core 2.0Hi everyone,I have deployed let's say 3 applications on the same EC2 instance which are websites (front end angular js and 2 web apis for authentication and communication). How...
View Articlekubectl get nodes unable to connect to the server on AWS EC2 Instance
I have deployed kubernetes cluster on AWS EC2 Ubuntu Nodes, one master node and one worker node. Its a free tier t2.micro machine with 1 CPU.I installed and configured everything and on day 1...
View Article