Skip to content

eleven41/JoinElasticBeanstalkToAWSDirectoryService

Repository files navigation

Joining Elastic Beanstalk to AWS Directory Service

This is a sample application demonstrating joining an MVC ASP.NET application hosted on AWS Elastic Beanstalk to an AD directory hosted on AWS Directory Service.

This is the sample code for the article Joining Elastic Beanstalk to AWS Directory Service.

Requirements

Getting Started

  1. Create a CloudFormation stack using the included CloudFormation template.
  2. Load the included web application into Visual Studio 2013 or later.
  3. Modify .ebextensions/JoinDomain.config and replace "your ssm document name" with the name of your SSM document created in step 1.
  4. Publish your application to the "Publish" folder using the "ElasticBeanstalk" publishing profile.
  5. Create your Elastic Beanstalk application, ensuring:
  • Your app is in the same VPC as your directory.
  • Use the generated deployment package ZIP file from step 4.
  • Use the IAM Role generated by step 1.
  1. After your EB application is deployed, modify the configuration and change the HTTP listener to a TCP listener.
  2. Point your browser to your EB endpoint, you should see the front page.
  3. Click "Go Secured". You should be prompted for a username and password. Use the domain short name you specified in step 1 followed by "\Administrator" for the username. For example, "CORP\Administrator". Use the password you specified in step 1.

Resources Created

The CloudFormation template creates the following resources:

  • A small Simple AD directory,
  • The SSM document to join the domain,
  • IAM Role to be used by your Elastic Beanstalk EC2 instances.

About

Join an MVC Elastic Beanstalk Application to AWS Directory Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published