Retrieve IP address and port number of EC2 hosting Apache app created via CFT
I want to retrieve the IP addresses of EC2 instances hosting the Apache Solr application getting created through my CFT along with the port number it is running on. I need to pass this information to...
View Articlemongodb.conf bind_ip = 127.0.0.1 does not work but 0.0.0.0 works
I could not understand what bind_ip in mongodb is. I could make a remote connection from desktop to the EC2 machine by having bind_ip = 0.0.0.0, but could not make it work with bind_ip =...
View ArticleStopping ec2 to scale-down before it completes the process running on it
We have an application which runs on ec2 instances that we use as docker host in ecs cluster. There are multiple tasks running on each ec2. Each task picks up one message from SQS and process some...
View ArticleIs NAT charges apply for cross nodes in EKS?
I've created an EKS cluster within the same region as an S3 bucket which I read from. The data read was free since the EC2 instances are in the same Region as the S3 bucket, however, I see NAT charges....
View ArticleHow to disable weak CBC ciphers on Apache in AWS?
I am trying to disable all the weak CBC ciphers that are enabled on my Apache server in my AWS EC2 instance (AMI: Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type - ami-00eb20669e0990cb4). I have...
View ArticleuWSGI executed in user data script is installed as local package but when...
This is weird error as far as I know all the user data script are executed as root user still the uwsgi package is installed in /usr/local/lib/python3.6/site-packages.sudo -H pip install uwsgi==2.0.17...
View ArticleHow to specify my IP when creating a Security Group in CloudFormation?
In CloudFormation I am trying to create a Security Group with an Ingress rule to only allow my IP address access to port 22. However I cannot seem to find any documentation on this or any solutions...
View ArticleAmazon ECS support for --shm-size in docker
I am trying to use AWS EC2 Container Service (ECS) in order to run a dockerized webdriver (Selenium) Grid. According to docker-selenium github page, we need to either add some shared memory or mount a...
View ArticleElastic beanstalk health check fails with status code 444
I have a docker running nginx which returns 444 when $host is unknown. This causes Elastic Beanstalk (EB) to see it as 5xx error. When too many such requests are terminated, EB thinks that the health...
View Articledocker command not working for specific user
I am trying to execute the "docker run hello-world" command for two different users. It works fine for the "ec2-user"ec2-user@ip-172-31-17-83 ~]$ docker run hello-world Hello from Docker! This message...
View ArticleHow to Access Private Subnet EC2 with site to site VPN
If I have an AWS VPC with a private and public subnet. The public subnet has 1 EC2 instance and the private subnet has 1 EC2 instance as well. If I do a site to site VPN to my VPC from my work...
View ArticleAmazon Web Services Missing Instances
Sorry, I am really new to this AWS. I am stuck since yesterday.Our former developer creates an app and it is on AWS, unfortunately, we can't find the Instances on the account he created. But we can...
View Articlehow to migrate AWS old generation instance to current generation instance...
I am trying to migrate my old geneartion instance to new geneartion instance from paravirtual to hvm machines, I detached pm machine's old root volume and detached the new hvm root volume. I attached...
View ArticleAWS S3 bucket is not remounting after restarting EC2 Instance
I mounted my S3 bucket to my EC2 Instance using S3fs, and I was able to read, write to my S3 bucket. But after restarting my EC2 Instance, S3 bucket is automatically unmounted. I found that to make it...
View ArticleHow to attach Amazon EC2 Target Group to Amazon Elastic Load Balancer using...
The process in my application through AWS API - AmazonElasticLoadBalancingV2Client, that I am trying to achieve is:Create Target GroupRegister Target in Target GroupRegister / Add Target Group to Load...
View Articlefail2ban installation using ansible throws error
I tried installing fail2ban using ansible,The playbook is as follows. tasks: - name: Install the `fail2ban` package yum: name: "{{ item }}" state: latest with_items: - fail2ban - fail2ban-firewalld -...
View ArticleSet SSL on AWS EC2 t2.micro with windows 10 and IIS
Hi guys i need an help, so i want set https on my domain: http://ec2-xx-xxx-xx-xxx.us-east-2.compute.amazonaws.commy target is: https://ec2-xx-xxx-xx-xxx.us-east-2.compute.amazonaws.com my customer...
View ArticleWindows application performance deteriorates in EC2 instance created by...
I have created a Windows custom AMI with some custom Windows application.I use this AMI to generate EC2 instances.I have run into a strange issue:All the applications run smoothly in the EC2 instance...
View ArticleAWS CodePipeline, how use parameter override section in config file...
in my CodePipeline, stage GenerateChangeSet, I have this under Advanced -> Parameter override{ "ProjectId":"myproj-fe", "InstanceType":"t2.micro", "KeyPairName":"myproj-fe",...
View ArticleResponse difference on local and EC2 server when hitting request in nodejs
Okay so I did not get anything from my last SO question may be I was not so clear in detailing the issue I am facing, so hoping this time I'll get solution for my issue:var request =...
View Article