Autoscaling group on AWS exhausting internal IPs
Suppose I have this simple scenario. I setup an autoscaling group that will launch a new EC2 instance if the CPU usage goes about 85%. My understanding is that when CPU usage goes under a certain level...
View ArticlePermission denied when trying to deploy Flask app on AWS EC2
I've created a Flask app and am trying to deploy it for testing on an EC2 machine using Flask's micro web framework (just for testing purposes). I'm serving the app on host=0.0.0.0 and port=80 yet...
View ArticleError Couldn't find any package by regex 'php7.0' when try to install php
I am trying to install php version 7.0.* for my AWS ec2 instance but getting error :-> root@ip-172-:/etc/apt# apt-get install php7.0 Reading package> lists... Done Building dependency tree...
View ArticleHow can I share an existing AMI to someone?
I followed the guide Sharing an AMI with specific AWS accounts - Amazon Elastic Compute Cloud, and in my AMI portion, I can see the permission.However, the one I've shared doesn't get any notification...
View ArticleEC2 error: cannot create temp file for here-document: Read-only file system
Looks like my Ubuntu 14.04 EC2 made the fs read-only. cd /var/ (pressing tab for autocomplete)cannot create temp file for here-document: Read-only file systemBut I have plenty of free space and memory...
View ArticleAWS EC2 instance replace key pair
I am trying to create a ec2 instance for someone on his own aws account. That person should only interact with the machine via a web service. I can't afford having anyone ssh into the machine and...
View ArticleHow to access the EBS volume on AWS via EC2?
I have an EBS (elastic storage) volume on AWS attached to my EC2 instance.However, how do I make all the gigas available to that EC2 instance?When I run sudo file -s /dev/xvdaI getNAME MAJ:MIN RM SIZE...
View ArticleAccessing AWS EC2 instance with SSH
I started to play with AWS EC2 for the first time and as usual with AWS, nothing is simple. I am reading this document, because I can't SSH to my...
View ArticleAnsible Timeout (12s) waiting for privilege escalation prompt
I'm having trouble running my Ansible playbook on AWS instance. Here is my version:$ ansible --versionansible 2.0.0.2I created an inventory file as:[my_ec2_instance]default ansible_host=MY_EC2_ADDRESS...
View ArticleAWS Load Balancer: 503 (Service Unavailable: Back-end server is at capacity)
I setup a load balancer that is forwarding https (443) to https (443) on a simple EC2 nano with AMI Linux using a SSL cert from AWS. After some hours/days by opening the website over https I get...
View ArticleJMeter throws "java.net.ConnectException: Connection timed out (Connection...
I have reserved a number of Linux based EC2 machines(running OS : Centos 7) and with the exact same versions of JMeter 4.0 and Java installed. No active firewalls, all the devices are connected within...
View Articleaws auto scaling group + elb v2 target groups
I'm using AWS Application Load Balancer (new ELB version, target groups), that allows attach several ports of single server to the balancer.If I attach this application balance to EC2 Autoscaling...
View Articlecan't start minikube in ec2 shows "X Sorry, Kubernetes v1.18.0 requires...
Hi I am trying to start minikube that's why I ran minikube start --vm-driver=noneBut it shows in the console the below lines:minikube v1.9.2 on Amazon 2 (Xen/amd64) Using the none driver based on user...
View ArticleConnecting to AWS phpmyadmin and mysql with Flask App
While Connecting SQL-alchemy with database was quite easy task when it was on my localhost but when I tried to connect with AWS phpmyadmin and Apache server it is showing an internal server error Which...
View ArticleAuto Ec2 stop after aws member logoff
Is there a way that Amazon Web Services EC2 instances can be self stoping ? Does Amazon have anything that allows an instance to stop itself ("Hara-Kiri") after aws member user logoff from the console.
View ArticleTerraform get output of public_ip from aws_lauch_configuration
I try to get output of public ip from aws_launch_configuration but I don't see any solution for this, so I created a data instance to filter that lauch instance to get it's public ipdata...
View ArticleCheck instance status using filter with EC2 API
I want to make sure the instance has passed the two status checks(System/Instance reachability check) using command line. When I run thisec2-describe-instance-statusec2-describe-instance-status...
View ArticleOpen SSL throwing unknown option '-n' in Amazon Linux2 instance
My code throws error when it reaches this line:{% set encrypted_password = salt['cmd.run']('openssl enc -aes-128-cbc -a -salt -md md5 -in <(echo -n "'+ ssm_plaintext_password +'") -pass...
View ArticleBoto3 create_image for AMI creation - Save ONLY the root volume
I'm writing a script to create AMI images of instances. My goal is to ONLY save the root volume. I'm using boto3. My test instance has 2x EBS volumes attached. I only want to save the root volume with...
View ArticleDelete an order from Mongo instance running on AWS
There is an Mongo DB instance running on AWS so it is can be accessed only from terminal (I guess).the table is called ordersto see what entries are in the table I'm using this command:db.orders.find()...
View Article