Tag Info

Hot answers tagged

53

Since it's the first result for google, I reply later. s3cmd can do this : s3cmd du s3://bucket-name


38

GoDaddy [...] I assume their servers are geographically distributed Don't assume, verify with GoDaddy or verify it yourself. A quick traceroute to nsX.secureserver.com (a common DNS server name for GoDaddy) gives me a response from a datacenter here in Scandinavia where I live. So yes, it seems that GoDaddy has its nameservers spread out over at least ...


31

Update 09/04/2014 1:00AM EST Amazon has stated that all Elastic Load Balancers have been updated and are now longer vulnerable. They recommend rotating certs as well. Update 08/04/2014 2:56PM CST Amazon has stated that all Elastic Load Balancers except those in US-EAST-1 have been updated, and the vast majority of those in US-EAST-1 have been updated. ...


22

Yes, your understanding is correct. There's no AWS charging based on CPU usage -- you pay the same for an instance whether its CPU usage is 0% or 100%.


19

The correct ssh-keygen command is however: ssh-keygen -y -f /path/to/privatekey > /path/to/publickey


18

I had the same question as you, so I worked out how to do it. First, I did this from the Ubuntu 32-bit EBS-backed ami from the US-East region, other OS's or images may work differently. However, I suspect that you should be ok, as long as you are using an ext* filesystem. It might work on other filesystems, but you'll have to figure out how to resize them ...


17

I had to wrap my SPF record in quotation marks for it to work. "v=spf1 include:_spf.google.com ~all"


16

Don't assume anything about GoDaddy. I've found them to be awful on many occasions. I personally have a separate DNS host to my domain registrar, because the DNS host provides a better service (more adjustable records, rather than just A and CNAME). From what I've seen, Route53 is supposed to be quite inexpensive, at least in line with Dynect's offering ...


16

This question has been answered before, but here is the link to the forums, select the sticky link to the list of Ip ranges used by Amazon, it gets updated reliably when they add new information. EDIT: Changed link, whenever the post is updated the link breaks, so just gave a static link to the forum page with the sticky, should be safer.


15

Update AWS has just announced the general availability of the functionality to Monitor Estimated Charges Using Billing Alerts via Amazon CloudWatch (it apparently has been available to AWS premium accounts already since end of 2011, see Daniel Lopez' answer to Is there a way to set Amazon AWS billing limit?): We regularly estimate the total monthly ...


14

The public DNS name (whether elastic IP address or not) is exactly the same as using the public IP address (elastic IP or not) with the one following important difference: If you query the public DNS name from outside of EC2, it resolves to the public IP address. If you query the public DNS name from inside of EC2, it resolves to the private IP address. ...


13

In short: Yes, you can, but not without some work. You'll need to do the following: (For these steps, assume that the machine you're having trouble connecting to is called server-01.) First, before starting these steps, take a snapshot of your server. Start a new, temporary instance. Call it server-02. Stop server-01. Don't terminate it, just stop it. ...


13

I ran into the same problem when trying to duplicate a machine. The problem turned out to be the kernel. Both when creating the AMI and the instance I selected default for the kernel image. To resolve the problem, I recreated the AMI using the same kernel image as the original instance.


13

Best practices: Whenever you build an AMI (or even set up an instance) always document the exact steps you took to install and configure the software and what data you put on it and where. This has many benefits including making it easy to rebuild the same AMI for a different architecture. Even better, I recommend scripting most or all of the install, ...


13

In your AWS Management Console, go to the EC2 Tab. Check the instance you want to change (from micro to large, for example) Put the instance in a 'Stopped' state. Click the 'Instance Actions' menu, and choose 'Change Instance Type' Choose the level you want the instance to run at (small, medium, large) Click 'Yes, Change'. Restart the instance in question. ...


13

As far as I know, private key can only be retrieved at the time you create the keypair (via EC2 web management console or via API commandline). So you have to save the private key somewhere and be able to retrieve it at work in order to connect to the instance via SSH, since keypairs' public keys are automatically installed on EC2 servers when you launch ...


12

You cannot do redirects in DNS. Instead, you need an HTTP server that sends HTTP 301 redirects in response to requests for mysite.com. Most registrars offer redirect servers; consult yours.


12

According to this 2011 blog post, the max connections on RDS instances come out this way: t1.micro: 34 connections ($0.035) m1.small: 150 connections ($0.115) m1.large: 640 connections ($0.455) m1.xlarge: 1263 connections ($0.920) m2.xlarge: 1441 connections ($0.655) m2.2xlarge: 2900 connections ($1.315) m2.4xlarge: 5816 connections ($2.630) No AWS docs I ...


12

Associating an Elastic IP with the instance is how this is done. Be aware, that unless you are using VPC, that your elastic IP will disassociate if you stop the instance, and you will have to manually reassociate it when you restart the instance.


11

AFAIK there is nothing special to it. In your public DNS just create "your-name.your-domain.com" as a CNAME to "your-bucket-name.s3.amazonaws.com" and have the folder name match your domain name. CNAME record for my Amazon S3 domain, so have nicer URLs I assume you have your website hosted elsewhere. Inside the HTML there are links to images, videos ...


11

Amazon EC2 provides security groups which your instance is a part of, then this allows you to grant permissions to other groups of hosts on your account or other external hosts. See the [User Guide][1] -> Concepts -> Network security for a little overview. Normally in the "default" security group you have full access to other members in the group (i.e. all ...


11

First of all, if you do not have a lot of experience with e-mail distribution I can only recommend that you find a third party e-mail distributor to do that for you, especially with that amount of receivers. Also, SEO does not matter all that much in regard of e-mail. E-mail reputation and IP network reputation matters a lot. Crossing the line is extremely ...


11

The Amazon Linux (which is essentially CentOS, which is essentially Red Hat) equivalent of update-rc.d is chkconfig. http://www.cyberciti.biz/faq/rhel5-update-rcd-command/ chkconfig --add nginx chkconfig nginx on


11

It is absolutely feasible to host a PHP/MySQL website on AWS (and you shouldn't notice any significant difference in the procedure compared to setting it up on a VPS or even dedicated host). The potential advantage here is that you have control over the operating system - can change it at will, or even customize and deploy your own build of most (linux ...


10

If you can guarantee that all requests will be coming from ELB (I'm not familiar with it), you could try: real_ip_header X-Forwarded-For; set_real_ip_from 0.0.0.0/0; That should tell nginx to trust an X-Forwarded-For header from anyone. The downside is that if anyone directly accesses your server, they would be able to spoof an X-Forwarded-For header and ...


10

You can convert /mnt from ext3 to ext4 in place (after backing up data for safety): dev=/dev/xvda2 sudo umount $dev sudo tune2fs -O extents,uninit_bg,dir_index $dev sudo fsck -fv $dev sudo mount $dev You don't have to edit /etc/fstab on Ubuntu 11.04 for EC2 since the AMI lists that file system as auto. Reference: ...


10

OK, I've never built an AWS load balancing solution with traffic on the levels of SmugMug myself, but just thinking of theory and AWS's services, a couple of ideas come to mind. The original question is missing a few things that tend to impact the load balancing design: Sticky sessions or not? It is very preferable to not use sticky session, and just let ...


10

Try ssh ubuntu@your.host.name -i your-private.key, instead of ssh-adding the key. Oh, and make sure you allowed TCP port 22 through the Security Group.


10

Firstly, I don't use RDS - so don't take this as an absolute. As with EC2, RDS is classed by instance type, so in terms of computing you get the same thing. The difference comes down to 'configuration' and the degree to which the hardware is dedicated. RDS advantages: Hardware is dedicated to only running RDS - not shared with 'general purpose' instances ...



Only top voted, non community-wiki answers of a minimum length are eligible