Is it possible to deploy an AWS ECS service to a EC2 scaling group or 1...
Is it possible to deploy an AWS ECS service to an EC2 scaling group or 1 particular EC2 instance without using either of load balancer or target group through Cloudformation? If so, how should such an...
View ArticleAWS autoscaling- add instance to specific availability zone when increasing...
I'm using the following command to increase the desired capacity of an autoscaling group so that it scales up by 1 instance from 2 to 3:aws autoscaling update-auto-scaling-group --region eu-west-1 \...
View ArticleHow to set "Name" of security group (AWS EC2)
Creating an EC2 security group through the console allows you to set a "group name" and it automatically provides a "group id". However the "name" is always blank, unless the security group was...
View Articlesession getting killed in aws server while installing the weblogic(12.2.1.1.0)?
Getting session "killed" automatically when I'm trying to install Weblogic(12.2.1.1.0) in AWS server. I tried to install through different applications like MobaXterm, TigerVNC, but no use. Please...
View ArticleHow to trigger AWS EC2 instance from AWS SQS service
I have integrated the SQS with my nodejs code. I push the data to SQS for background processing. Then SQS trigger a lambda function to complete background processing. But due to lambda limitation most...
View ArticleCloudWatch agent - How to troubleshoot apps on EC2 instance?
Below is the CloudFormation template for EC2 instance, from here:"EC2Instance":{ "Type": "AWS::EC2::Instance", "Properties":{ "ImageId": "ami-05958d7635caa4d04", "InstanceType": "t2.micro", "SubnetId":...
View ArticleAWS EC2 Connection timeout for one of the instance
I'm facing weird issue in one of my AWS EC2 instance when I try to connect through SSH, which was working fine till few days back, no changes was done after that. ssh: connect to host...
View ArticleHow to list down all the AMI image IDs for Red Hat in AWS using boto3?
I'm working on a task where I need to validate if a user has created an EC2 instance with RHEL latest image using Cloudtrail logs for that user.I was able to find the AMI image IDs used by that user...
View ArticleHow to install third-party SSL Certificate with AWS EC2 Instance (Ubuntu...
I have purchased SSL Certificate from COMODO SSL Store.I have AWS EC2 Instance with Ubuntu AMI.I want to install this SSL certificate on AWS but couldn't make it work. I just want to use this...
View ArticleHow to install python3.6 on aws ec2 instance
This question is specifically for installing version 3.6 of python. Not any other versions.I'm using aws'amazonlinux docker image and trying to install python3.6 on it. It worked less than a month ago...
View Articlehow to configure aws ec2 instance in api gateway for reverse proxy
I deployed Swagger APIs in an ec2 instance working with port number. Then, I want to integrate with API gateway for reverse proxy and cors policy. How can I do that? Can any one help on this?
View ArticleWhy my machine isn't using equaly the all vCPUs?
I am working with Sentry on-premise in one AWS EC2 m5.large instance in Docker but I am in front of a problem: My 2vCPUs aren't using equaly. One of them was with 100% and the other with less than 5%....
View Article502 Bad Gateway - Rails App, Puma, Capistrano, Nginx
I'm getting a 'Connection Refused' error when attempting to deploy my rails app. This is the message I get from /var/log/nginx/error.log2020/01/03 20:40:44 [error] 8059#8059: *69 connect() to...
View ArticleHow to execute python script sitting on EC2 using Lambda function?
How to execute python script sitting on EC2 using Lambda function?'''from_ec2.py''' print("hello from EC2") ################################# ###lambda function import boto3 def lambda_handler(event,...
View ArticleRevert the EC2 security group source 0.0.0.0/0 to 172.16.0.0/16 for the...
When someone opens 0.0.0.0/0 for the ports/protocols of SSH and RDP, it should automatically revert back to 172.16.0.0/16 with a Notification.. What I am trying to do here is, for SSH and RDP the SG...
View ArticleCloudFormation - Partitioning EBS root volume
Below is the cloudformation template to create EC2 instance:"EC2Instance":{ "Type": "AWS::EC2::Instance", "Properties":{ "ImageId": "ami-099999999999a27", "InstanceType": "t2.micro", "SubnetId": {...
View ArticleCrontab Launches Python Script but SystemD Does Not?
I can log into my AWS EC2 server via ssh and type:cd /opt/myWebApp sudo python3 /opt/myWebApp/manage.py myCronJob ...and it runs. I can also launch the same script via crontab:0 */6 * * * sudo python3...
View ArticleIs there a way to use EC2 as backend for iOS app developed on Monaca?
We created a webapp (all code is on EC2 server) and now, we are trying to create an iOS app using Monaca, which is based on OnsenUI/Cordova. We would like to use Monaca for the "front-end" and leave...
View ArticleHow 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 ArticleSetting SSM parameter as an Environment variable for EC2 - Does not work
I am trying to get and export an SSM parameter as an environment variable to an EC2 using the UserData section of Cloudformation. The script is trying to append for e.g export WHATS_HER_NAME=Sherlyn to...
View Article