Menu
AWS .NET SDK
AWS Guide for .NET Developers

Deploying an ASP.NET Application from Team Services to AWS Elastic Beanstalk

You can use use Elastic Beanstalk deployment tasks, provided as part of the AWS Tools for Microsoft Visual Studio Team Services, to deploy an ASP.NET application to a single existing Elastic Beanstalk application in one step.

  1. In Team Services, choose the Projects tab. Select the project to deploy, and then choose Build & Release.

  2. On the Build Definitions page, choose + New definition.

  3. On the Select a template page, choose ASP.NET, and then choose Apply.

  4. Add the Elastic Beanstalk deployment task. Choose Add Task. In the Add tasks pane on the right, type aws into the search bar, scroll down to AWS Elastic Beanstalk Deploy Application, and then choose Add.

  5. On the Process page, choose Deploy to Elastic Beanstalk to configure deployment details. Choose AWS Credentials, and then choose credentials that the build agent will use to access Elastic Beanstalk.

  6. Choose the AWS Region for your Elastic Beanstalk deployment.

  7. Provide an Application Name and Environment Name for the deployment. For example, ContosoUniversity and ContosoUniversity-dev.

  8. In the Deployment Bundle Type list, choose ASP.NET (Source: Web Deploy Archive), and then specify the Web Deploy Archive location. It's a .zip file named after your application. For example, $(build.artifactstagingdirectory)\ContosoUniversity.zip.

    To find the web deployment archive (the output package) folder, choose Build Solution in the Process list, and then look at PackageLocation in the MSBuild Arguments entry.

  9. In the Version Label box, type $(Build.BuildNumber). If you don't provide a version label, one based on date and time is automatically generated.

  10. Select Save & queue. In the Queue build dialog box, choose Queue. You can see deployment progress in the build console.