how to ssh into ec2 windows server
How do I ssh into an aws windows server? To ssh into an ubuntu server, I run this command:ssh -i key-pair.pem ubunutu@ipv4 What is the username for a windows aws server? I cannot find this anywhere. I...
View ArticleUser Data Script for installing IIS with index page on AWS EC2 Windows server
I am trying to install IIS on aws ec2 windows 2016 base image to host a single index.html (on port 80) page in default directory i.e. c:\inetpub\wwwroot But the script seems to be wrong (as i am not...
View ArticleAnsible : MODULE FAILURE\nSee stdout/stderr for the exact error
I am trying to install AWS CloudWatch agent in EC2 Centos VM using ansible-playbook. It worked well in the sandbox but when I ran it in Production it fails (integrated with Jenkins pipeline)Here is my...
View ArticleWhats the difference between .ppk and .pem . Where .pem is stored in amazons...
I am using Amazon's EC2 cluster for running GraphLab. They want the location of my .pem file, which is my private key.After searching I still I could not find the file in ubuntu. I am using PuTTY.
View Articlehow to deploy and run SCIP to solve mixed integer programming models on...
I am trying to solve some mixed integer linear programming models (MILP) by SCIP, ParaSCIP and FiberSCIP.The MILP models' size can have not more than 60k binary variables and not more than 100...
View ArticleWordpress site on AWS not connecting properly to the DB when using multiple...
I am having issues with a Wordpress architecture on AWS when using more than one Wordpress server.I follow this procedure, which basically creates a mysql RDS with one EC2 instance (which has...
View ArticleHow to resolve 'protocol must not be null' for CopySnapshotRequest across...
I am attempting to move an EC2 snapshot from one region to another.When creating a basic Ec2 snapshot copy and copying it to a second Region I get the error protocol must not be null. It appears that...
View ArticleLaravel Project showed sqlstate hy000 error 2002 connection refused error...
I am hosting my laravel website on AWS Server, after I uploaded a new version using Elastic Bean Stalk it worked fine, but after 10 - 12 hours suddenly it showed the below error, at home page and my...
View Articlehow to serve node js api through AWS cloudfront?
I am trying to serve my node js API (deployed on AWS EC2 and attached with application load balancer) through cloudfront url, is it possible?Here are the steps I followed so far - Created S3 bucket to...
View ArticlePostgresql often shuts down in ec2 instance?
I created a free ec2 instance in AWS. I installed PostgreSQL there. I deployed an application. If I do not open my web application for two days or three days. Postgresql shuts down. Why I do not know....
View ArticleHow do I run a script every day at 00:00 hrs to hit an django API on Ubuntu...
I need information about how to hit a django API running on ec2 on every night 00:00 hours.Thanks in advance.
View ArticleLinx Command Fails during CloudFormation Init Step
Im trying to configure a second EIP on a linux ec2 instance using cfn init bootstrapping, while I can execute the commands through the terminal manually, one of the commands fails during the cfn init...
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 find files created on an ECS Container?
My program creates folders on "~/" if the OS is linux (Which is the case, considering the ECS Instance):if platform == "linux" or platform == "linux2": appdata = "~/" else: appdata =...
View ArticleHow to get cfnoutputs of AWS stack to a file using AWS-CDK
I want to store the Cfnoutputs in AWS-CDK to a file(Python).Below is the code to show Public IP on console. my_ip = core.CfnOutput( scope=self, id="PublicIp", value=my_ec2.instance_public_ip,...
View ArticleLinux Command Fails During CloudFormation Init Step
Im trying to configure a second EIP on a linux ec2 instance using cfn init bootstrapping, while I can execute the commands through the terminal manually, one of the commands fails during the cfn init...
View ArticleICMP "ping" not working on my EC2 instance, how to fix?
I can ping google.com from my PC, however I cannot ping my EC2 instance which has a static IP address.I have setup the following in the security group - what else do I need?Type Protocol Port range...
View ArticleHow to get the instance IDs using terraform
I am trying to get the instance ids and public_ips of awsec2 instances using terraform but I get this error:Call to function "element" failed: cannot use element function with an empty list.This is my...
View ArticleElm Json Decode - do nothing, get original string back
I'm using the-sett/elm-aws-core to get information from the AWS API, which unfortunately is very very inconsistent. Most of the endpoints return JSON and that works fine with that lib, which takes a...
View ArticleHow to run user-data commands in Cloudformation on EC2 as some other user?
What I have noticed is whenever user-data commands are executed while executing a Cloudformation template to spin up an EC2, they are run via the root user. How can I change this behaviour so that the...
View Article