AWS Elastic Beanstalk

The Raygun Agent can be installed into an AWS Elastic Beanstalk environment using .ebextensions

Note these instructions are tailored to a Web server environment using the .NET (Windows/IIS) preconfigured platform.

Add the following configuration file to your web application's source code to install the Raygun Agent Windows service and register your application for tracing.

Save the following as raygun-apm.config and add it to the root of your application zip file uploaded to AWS.

packages:
  msi:
    raygun-apm: https://downloads.raygun.com/APM/latest/RaygunAgent-x64.msi

container_commands:
  1-register-raygun-apm:
    cwd: "C:\\Program Files (x86)\\Raygun\\RaygunAgent"
    command: rgc.exe -register [API-KEY]
    ignoreErrors: true

  2-enable-raygun:
    cwd: "C:\\Program Files (x86)\\Raygun\\RaygunAgent"
    command: rgc.exe -enable DefaultAppPool -type IIS -apikey [API-KEY]
    ignoreErrors: true

Open the Elastic Beanstalk console, upload your new application version with the embedded raygun-apm.config file and deploy it to your environment.

Read more on deploying your application in the AWS Elastic Beanstalk developer guide.


Still need help?

We are always happy to help with any questions you might have. If we can’t answer your technical enquiries through the documentation, please feel free to get in touch through our contact page.

Contact Us