New answers tagged

0 votes

Cannot send email from EC2 instance on port 587

It took me a while to figure out, but Amazon blocks the port 25 (SMTP) on EC2 instances and it's not clear whether or not it blocks all outbound emails as well : https://aws.amazon.com/premiumsupport/...
0 votes

Is it possible to get aws ec2 instance id based on its IP address

You can use grep aws ec2 describe-instances --filter Name=private-ip-address,Values=x.x.x.x | grep 'InstanceId' Note: dont use InstanceId keyword in Tag or Name
0 votes

EC2 instance won't recognize IAM role?

Reinstalling/upgrading AWS cli made it work. The AWS cli was at version 1, after upgrading to version 2 it worked. Before that, I launched a new EC2 instance (Amazon Linux 2) with the attached role ...
  • 101
0 votes

How to check if Route53 will speed up my website?

Route53 might help a little bit, but not a lot. Here's my first set of suggestions: Keep your domain registration where it is, but move domain serving to AWS Route53 Set up the CloudFront CDN in ...
  • 30.4k
0 votes

Failed to enable unit: Access denied - while enabling a service on AWS RHEL instance

I ran into a similar problem on a Centos 8 Stream box. Turns out it was related to selinux. You can test this by running sudo setenforce 0 and then running a sudo systemctl daemon-reload again. You ...
0 votes

aws ec2 instance AMI backup with reboot

Yes, you can use an EC2 instance while the backup is in progress. The snapshot will be as at the time you requested the snapshot. The reboot is irrelevant. As Matt points out below, if you are using a ...
  • 30.4k
0 votes

ECS service is not starting tasks

Hi so the problem was the I had not assigned the iam role for the auto scaling group, I was not using an ecs optimized image and I did not write the ecs cluster name to the ec2 config file.
0 votes

What causes reachability check failure on EC2 instance?

The instance status check failure indicates an issue with the reachability of the instance. This issue occurs due to operating system-level errors such as the following: Failure to boot the operating ...
0 votes

My instance is accessible from ipv4 address and public DNS. I want it to be accessible from domain name only

Create a different virtual host, either don't give it any content or redirect where you want, and then make it the default (usually by being the first virtual host configuration file).
  • 1
6 votes

My instance is accessible from ipv4 address and public DNS. I want it to be accessible from domain name only

This is normal behavior of web servers that have virtual host concept. You need to set up a default virtual host in your webserver that returns for example 404 to every request. Then your website is ...
0 votes

Ecs service doesn't update the task definition

This also would work. When you run --force-new-deployment on your local machine it opens a vim editor with the output, dev/null the command and it should resolve the issue. aws ecs delete-service --...
0 votes

AWS EC2 CentOS 7 Port 80 blocked despite correct rules

Thank you everyone for trying to help. As It happens to be this problem was apparently due to aws suspending thoose ports because of malware. For future reference make sure to check. The Health Status ...
  • 101
0 votes

S3fs performance improvements or alternative?

Used rclone mount and is far much faster than s3fs
0 votes
Accepted

I lost my AWS EBS volume completely. What are the odds of that?

The chances are pretty high you'll encounter one eventually. https://aws.amazon.com/ebs/features/ Amazon EBS volumes [other than io2] are designed to provided 99.8%-99.9% durability with an AFR of ...
  • 32.5k
1 vote

How to emit IPv6 address of EC2 instance in the ouputs of a cloudformation stack?

As mentioned before you should use CloudFormation Custom Resource. You can find a Custom Resource which is extracting IPv6 address from EC2 server in https://gist.github.com/martin-garbe/...
1 vote
Accepted

Nginx - https://www not 301 redirecting

Since you only redirecting HTTP (listen 80) you should add new line for HTTPS port server { listen 80; server_name olddomain.co.uk; return 301 $scheme://www.newdomain.com$request_uri; } ...
  • 178
0 votes

Deleted the data while Amazon EBS Volume While Snapshot in Pending

For anyone else that got here from a search for whether you can delete EBS volumes that currently have a pending snapshot, it appears that the volumes hold themselves in the Deleting state until the ...
  • 1
0 votes

AWS - Is it safe to remove ec2-user?

Totally wrong and misguiding concept of deleting ec2-user whole AWS cloud features monitoring and other event based things become corrupted and of no use? Did you know about this consiquences or you ...
-1 votes

How to change the name and description of an AWS EC2 security group?

2022's answer. Actually, You cannot rename the SG name. You can follow the steps of FlavioMuratore's answer to copy the old group into a new one. After that, you can Change SG like this Right click ...

Top 50 recent answers are included