How can you tell AWS-EB the desired AppPool identity for an ASP.NET web app running in IIS? In the AWS Beanstalk Deploy wizard I don't see this option like you would if deploying straight to IIS or when changing it manually in IIS. Obviously once deployed you can change it in the EC2 instance, but that doesn't help the "xcopy deploy" story of using EB.
Asked
Active
Viewed 1,612 times
4
-
I think this article might help [link](https://jaredmeredith.wordpress.com/2017/07/03/aws-elastic-beanstalk-ebextensions-update-the-iis-app-pool-using-commands-to-another-app-pool-identity/) – Kappacake Mar 07 '18 at 10:56
-
@demonicdaron Yes, I believe that will work perfectly! Please put that as an answer and I'll accept it – stonedauwg Mar 08 '18 at 15:14
1 Answers
1
You want to use Elastic Beanstalk ebextensions for this. Ebextensions allow you to run custom scripts when deploying code.
The process is pretty simple:
- You create a folder in your project (at root level) called ".ebextensions".
- Create a configuration file in the yaml format. That file will be executed when you deploy your code and is the place where you can change the application pool identity.
- Deploy your code.
This article has an example configuration file to change the application pool identity and more details on how to add ebextensions in your project.
Hope this helps!

Kappacake
- 1,826
- 19
- 38