Tag Info

Hot answers tagged

4

if you want to ssh your instance without NAT, it has to be reachable from your network (where your laptop is). thus I see two solutions: set an elastic IP to your instance + internet gateway/route to your subnet. An elastic IP without internet gateway is not enough, as traffic will not be routed properly. However, if you set up an Internet gateway, the NAT ...


4

This is precisely what EC2's user data functionality is for. You can provide a shell script that makes your required changes, or even better than that, have the system pull its intended configuration from your Configuration Management solution (Ansible, Salt, etc.).


3

Just apt-get update and apt-get upgrade daily and use AWS best practices. Also whatever services you are running should probably be hardened to the best of your ability. There's really nothing all that fancy to it. Note major upgrades may take down services temporarily. Tweak your /etc/apt/sources.list to your liking as well.


2

If the status check is returning a 401, AWS sees the instance as unhealthy and takes it out of the ELB. Since you have no healthy instances, the ELB is down. Note that AWS accesses /heartbeat.php via IP, not via DNS name. Check the response using curl -I http://<your instance IP>/heartbeat.php and adjust your server config if it's not being served by ...


2

You need IPv6 connectivity from your ISP to be able to use IPv6. AWS is known to not support IPv6 on their instances. You have to make your ISP do the right thing and provide you with IPv6 or you have to get IPv6 using e.g. tunnelbroker.net


2

The most likely reason why commands would not be running when invoked from a crontab script is that they are not on the PATH environment variable. Crontab entries run with a minimal set of environment variables by default.


1

Alias /results /var/www/html/mysvr/results ProxyPass /results ! This excludes /results from being passed to tomcat. The first line is optional if the results folder is in the correct place in the document root. Be sure to include this ProxyPass line before the others to make it work.


1

[root@stormking ~]# uname -a Linux stormking 2.6.39-400.17.1.el6uek.x86_64 #1 SMP Fri Feb 22 18:16:18 PST 2013 x86_64 x86_64 x86_64 GNU/Linux [root@stormking ~]# service nfs reload exportfs: internal: no supported addresses in nfs_client exportfs: stormking:/export/oradata01: No such file or directory [root@stormking ~]# service nfs start Starting NFS ...


1

Change the DNS options for your VPC. http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html You can add your private DNS there, and instead of adding the AWS DNS server, the DHCP update will put the addresses you have configured.


1

Another possibility is to use Ansible as your configuration management tool. In the ec2 module, which allows you to fire up both spot and normal lifecycle instances, you can add the "instance_tags" attributes to create the tags. A simple playbook would be: - name: Provision Spot Instance hosts: localhost connection: local gather_facts: False ...


1

I'm assuming it's a web app because 80. You have to set ports at the AWS Management Console level. It works almost like a hardware based firewall (inb4 "it isn't!", I know it isn't). Navigate to your security groups (the one assigned to the instance) and edit your inbound rules as needed.


1

This is my current hack — not too elegant, but it works: patch /usr/lib/python2.7/dist-packages/cloudinit/stages.py <<EOF @@ -469,7 +469,6 @@ def consume_data(self, frequency=PER_INSTANCE): # Consume the userdata first, because we need want to let the part # handlers run first (for merging stuff) - ...


1

I personally backup my code in S3 using git, using this method: http://www.fancybeans.com/blog/2012/08/24/how-to-use-s3-as-a-private-git-repository/ RDS is already backed-up so I just use the auto-backup feature of RDS for my databases.



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