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

boto3 instance.private_dns_name still returns despite disabling VPC DNS...

I have created a VPC with a disabled DNS Hostnames and then launching a new Instance onto this VPC but every time I check the instance.private_dns_name using boto3, it always returns a name. Should...

View Article


How to setup ReactJs, NodeJs, Redis application on AWS

I am newbie in AWS and totally confused about the deploy. here i have React for front-end , Nodejs for API, Mongodb for database and redis for session store. Can i use 1 EC2 for every service ? or...

View Article


Starting Amazon EC2 Spot instance to run docker image programmatically

I wish to move some ECS containers out of ECS cluster to spot EC2. What is canonical way to start/stop spot EC2 instance executing docker image. The main reason is that I wish container to have public...

View Article

How do i connect to Amazon EC2 Server with PHP and SSH

I'm unable to connect to Amazon EC2 with a pem file using PHP $pemFile = file_get_contents($this->_pemFileLocation); $out = ""; $key_private = openssl_pkey_export($pemFile, $out); i need to connect...

View Article

can't ping my instance private IP from other instance in the same VPC

I have two instances and both of them are on same subnet and same VPC, one of the instances is openvpn when I'm connected to VPN and try to ping the other instance (10.x.x.x) I dont get response...

View Article


How can I use advanced regex in a boto3 ec2 instance filter?

I'm trying to match EC2 instance names not starting with a hyphen (-), so I can to skip instance names starting with a - from the shutdown process. If I use a ^ or *, these basic regex operators work...

View Article

How to deploy a .war file into jboss server running in AWS EC2 instance?

I created a JBoss EAP instance on AWS-EC2 (following this guide), and now I'm trying to deploy a simple hello-world application into that. I've copied the .war file into the...

View Article

How to authenticate with googlesheets package in a head less environment(EC2...

Normally when I use googlesheets package on my desktop R studio, it puts me through a browser based authentication, where I select my Google account for authentication and it gets approved.I use the...

View Article


EC2 instance web access ERR_CONNECTION_REFUSED error. HTTP port is open

In Ec2 instance, HTTP port is open in security group . Still when i am trying to access the public IP through web browser (chrome,safari) its showing ERR_CONNECTION_REFUSED. I am able to ssh the...

View Article


Lambda cold start possible solution?

Is scheduling a lambda function to get called every 20 mins with CloudWatch the best way to get rid of lambda cold start times? (not completely get rid of)... Will this get pricey or is there...

View Article

How would I be able to implement a Python Command-Line Program for a ReactJS...

I have built a command line program written in python, which is now running through an AWS GPU Server. I wish to execute this program through a front end made in ReactJS. I have been told that AWS...

View Article

Programmatic User Account Creation for EC2 and EFS?

I'm using an EFS with my EC2 Linux instance to create writable per-user subdirectories. This entails creating the user, the subdirectory, and then mounting the user's home directory to the...

View Article

port 22: Connection refused after sudo reboot in AWS

After Rebooting AWS instance from ssh, it shows port 22: Connection refused. Got many solution like need to change in sshd file, but again my question is how to change that file without connecting to...

View Article


Problems mounting a S3 bucket with s3fs

I am trying to mount a S3 bucket on an AWS EC2 instance following this instruction. I was able to install the dependencies via yum, followed by cloning the git repository, and then making and...

View Article

unable to resize root partition on EC2 centos

i created my EC2 Machine using Community Image of Centos 6.3 x64. i have added a 35 GB disk. Now when i do #df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 1.2G 6.4G 16% / tmpfs 7.3G 0...

View Article


Connection refused to port 22 for EC2

I have a amazon Ec2 instance when i am trying to connect it from my windows machine using cmd i am getting connection refused error.I have checked security group is open for port 22 for all IP.Below is...

View Article

Uploading Image to AWS S3 from asp.net web api is very slow even for...

I need help in uploading an image file from asp.net web API to AWS S3. I have used the S3 TransferUtility class to achieve that. However, the upload takes 60-70 seconds for uploading image of size...

View Article


Jenkins pipeline to build image

I am writing a Jenkins pipeline groovy script to build image.I want to build one image and run some docker commands inside EC2 using this Jenkins pipeline. I have written below pipeline pipeline {...

View Article

aws beanstalk 403 error while deploying

Hi I'm using amazon web services elastic beanstalk. Everytime I use git aws.push, my php application uploads successfully However, when I click on the url it says Forbidden You don't have permission to...

View Article

Cannot fix "The provided execution role does not have permissions to call...

I tried the solutions in this answer but it does not work for me. I am getting the error:The provided execution role does not have permissions to call CreateNetworkInterface on EC2 (Service:...

View Article
Browsing all 29243 articles
Browse latest View live


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