Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.
6,604
questions
35
votes
4
answers
53k
views
Where does Amazon publish the range of IP addresses used for EC2 instances by region?
How can I keep updated of changes to the range of IP addresses that Amazon will use for EC2 instances. I want to add a range of IPs to my firewall settings to allow access to my 'ground based' mysql ...
35
votes
4
answers
66k
views
How to make EC2 user data script run again on startup?
After cloud-init runs a user data script on the first boot of an EC2 instance, a state file is presumably written so that cloud-init won't run the script again on subsequent reboots. There are cases ...
35
votes
5
answers
33k
views
What does %st mean in top?
Here is an example from my top:
Cpu(s): 6.0%us, 3.0%sy, 0.0%ni, 78.7%id, 0.0%wa, 0.0%hi, 0.3%si, 12.0%st
I am trying to figure out the significance of the %st field. I read that it means steal ...
34
votes
3
answers
66k
views
Cannot mount an existing EBS on AWS
I tried mounting an existing EBS Storage (which has data) to an instance, but it keeps throwing this error.
mount: wrong fs type, bad option, bad superblock on /dev/xvdf,
missing codepage or ...
34
votes
8
answers
109k
views
How to copy files to Amazon EC2 Windows instance from my local machine?
I have created a new Windows instance on Amazon EC2. I want to copy some files from my local machine to the instance. How do I go about it?
33
votes
5
answers
50k
views
Nginx set_real_ip_from AWS ELB load balancer address
I have a set of Nginx servers behind an Amazon ELB load balancer. I am using set_real_ip (from the HttpRealIpModule) so that I can access the originating client IP address on these servers (for ...
33
votes
6
answers
217k
views
RSA certificate configured for SERVER does NOT include an ID which matches the server name
I recently started a LAMP server (all the latest versions) w/ WordPress on it, and I'm trying to install a SSL certificate that I recently purchased. When I restart apachectl, error_log gives me this:
...
33
votes
4
answers
57k
views
Enable Password Login for SSH on Amazon Linux AMI
I wan't to be able to login via ssh with a password and not the key file.
Yeah I know it's totally insecure but at this point in the config I was turning variables off and on left and right trying to ...
33
votes
1
answer
13k
views
How do I ensure my AWS free tier plan doesn't exceed the free usage limit?
I'm spinning up a free tier instance and I don't want to accidentally exceed the limit. How do I do that?
32
votes
7
answers
44k
views
How to verify a AWS VPC (S3) endpoint works?
I added a VPC endpoint to my VPC using CloudFormation, and allowed s3 usage. The routes are visible in the AWS console, but not in the local routing tables of the
EC2 instances:
$ route -n
Kernel IP ...
32
votes
2
answers
33k
views
AWS, Bandwidth and content delivery
My question is about Virtual Machines and delivering their content over the servers connection to the internet.
I have an Ec2 windows instance, and its network connection appears to be 100mbps
If I ...
32
votes
1
answer
14k
views
update-rc.d on Amazon Linux
I am fairly new to system administration and I am simply trying to make sure nginx runs at startup on my Amazon EC2 instance (running Amazon linux)
I have placed the script in /etc/init.d, but it ...
31
votes
5
answers
81k
views
amazon linux 2 ami - aws - How to install mysql in Amazon Linux 2?
I am trying to install mysql in amazon linux 2 ami and am not able to do it.
sudo yum install mysql56-server -> doesn't work
amazon-linux-extras list -> doesn't list mysql
I do not want ...
30
votes
5
answers
18k
views
Terminated EC2 instances keep restarting
I have a couple of small EC2 instances (t1.micro and t2.micro) one of which was setup using AWS-EB. I'd like to terminate both of them, but whenever I terminate them, the re-appear in my list of ...
30
votes
3
answers
62k
views
AWS CLI Command Line: How to use "--query" to output multiple source lines
I am using aws-cli version 1.7.8 to get the --query output to create one record that is derived from multiple lines.
In this case I am trying to get specific information from describe-instances.
In ...