Domain Join Ec2 Instance
To join ubuntu ec2 instances to the domain we should or the instance should be in the same region as of the directory service.
Domain join ec2 instance. How to connect your on premises active directory to aws using ad connector takes you through the process of. After completing either of these steps you should now be able to join your ec2 instance to the domain. Seamlessly joining windows ec2 instances in aws to a microsoft active directory domain is a common scenario especially for enterprises building a hybrid cloud architecture with aws directory service you can target an active directory domain managed on premises or within aws.
Let us manually configure the static dns on the instance we will be using the dns addresses of the directory services. To connect your domain name to aws ec2 instance you need to get the ip address first via ec2 console and then create an a record in the domain name s dns. I created a new iam policy called allow all ssm and then used it to.
Open the amazon ec2 console choose your region and then choose instances from the navigation pane. Goto your domain provider. You will need to create a new iam role or modify an existing one to allow the instance to access the ec2 ssm simple system manager api.
Once you do that you can then log into your instance using a remote desktop protocol rdp client with the credentials from your aws managed microsoft ad user account. This post shows how to set up a custom domain to access your site. Choose your desired ec2 instance from the drop down list of running instances and click associate.
The target instance reboots automatically to finish joining your domain before you begin be sure that rebooting your instance is safe for your infrastructure. On the description tab for iam role confirm that a role is attached which is configured for. If you need to manually join an ec2 instance to your domain you must launch the instance in the proper region and security group or subnet then join the instance to the domain.
Follow the steps below to get the ip address from your amazon ec2 instance. In my previous post i explained how to deploy a simple wordpress site using aws. For more information see seamlessly joining a windows instance to an aws directory service domain in the amazon ec2 user guide for windows instances.