AWS Guide for .NET Developers

Creating an AWS Elastic Beanstalk Version in Team Services

You can use AWS Elastic Beanstalk deployment tasks, provided as part of the AWS Tools for Microsoft Visual Studio Team Services, to build an ASP.NET application to deploy to multiple existing Elastic Beanstalk applications.

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

    The process is the same for Visual Studio Team Services.

  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 Create Version, and then choose Add.

  5. On the Process page, choose AWS Elastic Beanstalk Create Version 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 for the deployment. It must be an existing application.

  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)\

    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. Choose Save & queue. In the Queue build dialog box, choose Queue. You can see task progress in the build console.