• EnglishEspañol日本語한국어Português
  • Log inStart now

Install the .NET agent on AWS Elastic Beanstalk

Amazon Web Services (AWS) Elastic Beanstalk is a dynamic service that allows easy deployment and scalability for your applications. Follow these instructions to deploy the .NET agent to the instances launched with your .NET AWS Elastic Beanstalk applications. You may also want to install the New Relic Infrastructure agent on your Elastic Beanstalk instances; refer to Configure the infrastructure agent on AWS Elastic Beanstalk for more details.

Requirements

Make sure you have a supported Amazon Web Services account. In addition, for any New Relic installation, you will need your . This is a 40-character hexadecimal string that New Relic provides when you sign up for your account.

Install the .NET agent

To install the .NET agent for ASP.NET Core web applications deployed to AWS Elastic Beanstalk, follow these steps. You can also find working example projects for both Windows and Linux in our .NET agent samples repository.

  1. Create a .ebextensions folder at the root of your application and create a file named newrelic-dotnet-agent-install.config. (The exact filename isn't important, but it must have a .config extension.)

Important

Be sure to set Copy to Output Directory to Copy if newer for this file in your project, to ensure that it gets deployed with your application.

  1. Based on the operating system for your .NET application, add the following content to the file:

    • Replace YOUR_LICENSE_KEY with your New Relic license key.
    • Replace YOUR_APP_NAME with your application name.
  2. Deploy your application using the latest version of the AWS Toolkit for Visual Studio. You can also use the AWS CLI to deploy the application.

If your application is receiving traffic, data should appear within a few minutes. If it doesn't, see No data appears.

Did this doc help with your installation?

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.