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

How can I expose both TCP and UDP on a single port in a AWS EC2 Task?

I am running into an issue with port mappings on my AWS Fargate AWS::ECS::TaskDefinition. The app inside the container listens for both TCP and UDP traffic on a single specific port. The AWS docs,...

View Article


Can we run 2 EC2 instances on port 80 (httpd), both using same security group?

I have created 2 EC2 instances both using the same security group. Now I installed Apache on both the instances. Now when I echo "hello world" I am not able to do that on both the instances, please...

View Article


aws ec2: ssh to instance created by other user with no pem file

I need ssh into aws instance that has been started by another user. The key-pair file has not been shared with me, however valid account credentials, access to aws console and key/secret-key has been...

View Article

Too many open files while getting images from the S3 bucket

I am using boto3 to get the image content from the s3. Using the following function.def read_image_from_s3(bucket, key): s3 = boto3.resource('s3') bucket = s3.Bucket(bucket) object = bucket.Object(key)...

View Article

Getting connection time out while ssh newly created ec2 instance

I have created new ec2 instance using "Amazon Linux 2 AMI (HVM), SSD Volume Type" , free tier. The security group associated with this instance has open ssh port 22 for anywhere traffic (0.0.0.0/0) and...

View Article


Image may be NSFW.
Clik here to view.

How to create an IAM role of specific type using boto3?

I'm trying to lock down a user to a specific VPC in AWS and following this tutorial - https://aws.amazon.com/blogs/security/how-to-help-lock-down-a-users-amazon-ec2-capabilities-to-a-single-vpc/It is...

View Article

mysql on amazon linux - MySQL Daemon failed to start

I tried that restarting EC2 instance and sudo service httpd restart.But I still get this message:[ec2-user@ip-* ~]$ sudo service mysqld start MySQL Daemon failed to start. Starting mysqld: [FAILED]...

View Article

Hibernate Search on EC2, "Unable to create index directory"

I'm trying to implement Hibernate Search on my aws application. As usual, everything works great on localhost, but when upload to aws, I receive the following...

View Article


How to retrieve the results from my Amazon EC2 instance?

I am new to Deep Learning and using Amazon web services, and I have a (very) basic question to ask.I seem to have figured out how to run my Python code on Amazon EC2 server via AWS Batch, but I am...

View Article


awscli describe-instances, unable to sort query when there are multiple...

I am attempting to sort a list of instance IDs by launch time (so older instances are on top), but I seem to be having problems because of the way that the output of 'describe-instances' is separated...

View Article

Timeout when trying to retrieve EC2 instance-id metadata from within it

I'm launching a Windows 10 EC2 instance and trying to retrieve it's instance-id from the CMD with the command:curl http://169.254.169.254/latest/meta-data/instance-id This worked until yesterday, but...

View Article

Prestashop Error Too many redirections after using AWS CloudFront

I had to create an SSL certificate for my domain “farmtrust.tn” using a CloudFront distribution that I've configured this waySet Origin Protocol Policy to HTTP OnlyMinimum Origin SSL Protocol to...

View Article

How to programatically clone/create AWS EC2 instance

I have the need to get a prepared/configured AWS EC2 instance (my template instance), clone it (into the same region) get the corresponding IP address of the newly created instance, change its hostname...

View Article


ec2 instance can't connect to websites

I created an ec2 instance for web scraping purposes. However, I can't scrape any sites with selenium because I get below error : "selenium.common.exceptions.TimeoutException: Message: connection...

View Article

AWS CloudWatch Alarm to add capacity to EC2 autoscaling group has been in...

I set a CloudWatch Alarm to add 1 capacity unit to EC2 autoscaling group when memory reservation is > 70%. The Alarm was triggered at the right moment, but it has since been in alarm for 16 hours+...

View Article


Unable to build entity manager factory-Hibernet AWS

When I deploy work to EC2, AWS, I get that error, while trying to connect to RDS, however I am able to runt the same code locally pointing to the RDS and its wroking fine. below is my error.log from...

View Article

Unable to forward all traffic through OpenVPN on an Amazon EC2

I'm trying to setup an OpenVPN server on an Amazon EC2 instance. Unfortunately, after reading a lot of tutorial & stackoverflow threads, I still can't figure out why I'm not able to route all...

View Article


Cannot run yum due to libssl.so.10: cannot open shared object file: No such...

I inadvertently ran the following command in AWS EC2 Lightsail instancerpm --nodeps -e openssl-1.0.2k-16.150.amzn1.x86_64and ever since I am unable to run any yum commands[root@ip-172-26-3-161 abc]#...

View Article

How to resume cfn-init commands after reboot in linux - redhat 7.4?

Is it possible to resume cfn-init in Redhat linux after reboot? I have cfn-hup and cfn-auto-reloader setup correctly. And I have 'reboot' as one of the commands. All the commands run perfectly till...

View Article

Image may be NSFW.
Clik here to view.

Check if EC2 instance finished initializing. Using the AWS Java SDK v2

I am programatically spinning up an EC2 instance from the AWS Java SDK v2. I then associate an elastic IP address to this instance. This takes a couple minutes. AWS then initializes the instance. In...

View Article
Browsing all 29243 articles
Browse latest View live


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