简体   繁体   中英

how to set app pool identity for ASP.NET app deployed to aws elastic beanstalk

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.

You want to use Elastic Beanstalk ebextensions for this. Ebextensions allow you to run custom scripts when deploying code.

The process is pretty simple:

  1. You create a folder in your project (at root level) called ".ebextensions".
  2. 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.
  3. 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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM