How to run ansible inventory script with python3
I'm running a docker container with alpine.And running ansible script for getting dynamic inventory from AWS and it works great with python2. But I'm changing it to python3 and this is causing me...
View ArticleHow do I block calls to a specific endpoint in EC2?
I have an open port for a server I am hosting, and I get lots of spurious calls to "/ws/v1/cluster/apps/new-application" which seems to be for some Hadoop botnet (all it does is pollute my logs with...
View ArticleHow run a command on an EC2 instance? AWS-RunShellScript is missing from SSM
In the AWS Console, I opened the AWS Systems Manager Console. I then chose "Run Command" and clicked the "Run a command" button.The only commands it has are:AWS-ApplyAnsiblePlaybooks Amazon...
View ArticleLoop in bash until there are no unique result
I created function using bash to retrieve EC2 SnapshotIds and output the list to a text file. I used a for loop:for i in {0..20} ; do aws ec2 describe-snapshots \ --filters...
View ArticleAWS EC2 Ubuntu and SSL via nginx is broken
this is weird, I read a lot of tutorials how to install SSL, but it's still not working.I followed steps:sudo apt-get updatesudo apt-get install software-properties-commonsudo add-apt-repository...
View Articledisplay instance ids based on instance tags aws
need instance ids if particular tag['key'] is not taggedi am trying to list instance ids based on some tags for ex :: if tag:name=env and value = 'Not tagged'(like it filters in console) ()import...
View ArticleAWS CodeDeploy Blue/Green Deployment stuck?
I was performing AWS Blue/Green deployment to test a basic apache server and as CodeDeploy goes through 4 steps of B/G deployment it stuck at step 3 i.e, Routing traffic to replacement instances for...
View ArticleAnsible Dynamic inventory getting permission denied issue, while able to...
Created an ansible aws connection.Provisioned single ec2 instanceTrying to ping that instance using ansible dynamic inventory.getting the following issue.enter image description here
View ArticleHow to Configure AWS RDS for a Spring Boot Project Running on an EC2 Instance?
I have an AWS EC2 Linux instance running a jar from my Spring Boot Project. I created a an AWS RDS Postgres instance, and I am trying to call it from within my service that's running in my EC2...
View ArticleUnable to start a java process using a gitlab ci pipeline to deploy on EC2...
What I m trying to do is to deploy a java application on an ec2 instance using gitlab-ci pipeline, after copying the .jar file it has to start the process. The deploy steps are the next ones:*deploy:...
View ArticleExpires headers on an Amazon EC2 with Bitnami Wordpress
I'm working with a client who has a Wordpress installation (via Bitnami) set up on an Amazon EC2. I didn't put this together, and for background I am a Front-end Developer who is used to cPanel and has...
View Articlenon www to www not working for wordpress in EC2 instance using safari
If I use my safari browser, I cannot get to my website example.com. I have to use www.example.com for it to work. I tried editing htaccess numerous times and still, it doesn't work.My website is using...
View ArticleVS2017 not deploying everything to AWS
I have a VS2017 solution (asp.net core 2.1). actually I have several.But for one of the UI projects when I deploy to the AWS EC2 instance it deploys everything except for one directory.If I manually...
View ArticleAre AWS instances clocks synchronized with minute precision?
My question is: is time across AWS workers (e.g., EC2, Lambdas, ...) synchronized at a minute level (i.e., Unix Time across workers can differ at most 1 min between them)?Why I need this: I am creating...
View ArticleRegistering domain with Route 53 on master AWS account and linking it to EC2...
I currently have 2 AWS accounts under AWS Organizations. When I'm trying to register a domain using Route 53 on the non-master account, it is trying to use the credit card on the master account but it...
View ArticleMLflow Tracking On EC2
I'm attempting to follow the instructions given here (https://medium.com/@alexanderneshitov/how-to-run-an-mlflow-tracking-server-on-aws-ec2-d7afd0ac8008) to test running MLflow tracker on an ec2...
View ArticleGetting AWS Production parameters from parameters store vs QA
In AWS QA env I am able to get AWS parameters from parameter store. My username in QA AWS cloud is abc.xyz (firstName=abc, lastName=xyz) I do the following and I am able to get the parameters from AWS...
View ArticleAttaching and mounting existing EBS volume to EC2 instance filesystem issue
I had some unknown issue with my old EC2 instance so that I can't ssh into it anymore. Therefore I created a new EBS volume from a snapshot of the old volume and tried to attach and mount it to the new...
View ArticleHow to use ec2 instance as personal dev box using intellij as IDE?
I have searched the questions and have not found an answer to this one:I am developing an existing project (git repo) that runs only on Linux. For the time being I have at my disposal only a windows...
View ArticleAWS IAM policy to restrict access to specific ec2 instances via...
I am creating a IAM policy to grant access to third party developers so that they can connect to EC2 instances in private subnet via ec2-instance-connect.The developers should only connect to specific...
View Article