Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Browsing all 29404 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

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 Article


User 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 Article


Ansible : 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 Article

Whats 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 Article

how 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 Article


Wordpress 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 Article

How 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 Article

Laravel 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 Article


how 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 Article


Postgresql 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 Article

How 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 Article

Linx 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 Article

Elastic 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 Article


How 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 Article

How 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 Article


Linux 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 Article

ICMP "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 Article


How 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 Article

Elm 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 Article

How 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
Browsing all 29404 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>