Join Linux Instance on Simple AD
AWS has made it easy for administrators managing several EC2 Linux instances. They may now join these to AWS Directory Service Simple AD directory and manage user credentials with the standard Simple AD tools and even add directory groups.
In order to use this feature, note that you must have the AWS Directory Service in your Amazon Virtual Private Cloud, as well as the most recent version of Linux AMI, CentOS, Ubuntu Server, or RedHat Enterprise Linux on the EC2 instances therein.
You can find the complete, simple instructions here. Among others, it will teach you to how to use domain credentials, include domain administrators to the sudo’ers list, and limit membership access.
In short, the steps are as follows:
- Set up a DHCP Options Set for the Virtual Private Cloud.
- Point this set to the directory.
- Install and configure a Kerberos client.
- Join the Linux instance with the domain.
- Reboot the instance.
New CloudWatch Action – Reboot Instance
AWS CloudWatch is a handy tool that lets you monitor the resources and services you currently have provisioned under AWS, especially AWS EC2. Formerly, you could perform three CloudWatch actions on EC2 instances: stop, terminate, and recover. Now a fourth action is available: reboot.
Once an instance triggers the CloudWatch alarm—due to problems with full memory or overlong response time—the machine can instantly be rebooted. This is an improvement compared to the current method, which can only be used with some EBS-instance types that have run into problems.
In order to create an alarm-triggered reboot, you need to do the following simple steps:
- Go to the AWS Management Console and locate the instance.
- Click on the icon on the Alarm status column.
- Click Take Action.
- Select Reboot Instance and set parameters.
- Confirm IAM role, if necessary.
- Click Create Alarm.
This feature is now live in all public AWS regions.
[video_player type=”youtube” width=”560″ height=”315″ align=”center” margin_top=”0″ margin_bottom=”20″ border_size=”3″ border_color=”#13cae7″]aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1vS19Ja05UVVBHdw==[/video_player]