Deploy OneAgent on AWS Fargate and AWS App Runner

For AWS Fargate and App Runner, monitoring consumption is based on host units. See Serverless monitoring for details.

To deploy OneAgent on AWS Fargate or App Runner, read the instructions provided below.

Prerequisites

Integrate OneAgent into your application image

There are three ways to integrate OneAgent with AWS Fargate applications.

Note: For AWS App Runner, you can only use the build-time injection.

  • Automatic injection (for EKS only) manages upgrades and lifecycle.
  • Build-time injection (for ECS, EKS, and App Runner) embeds OneAgent into your container image.
  • Runtime injection (for ECS only) pulls OneAgent when the container starts.

Note: The runtime approach requires Fargate versions 1.3+. For earlier versions, select the build-time approach.

Configure network zones optional

You can configure network zones as an environment variable:

  • DT_NETWORK_ZONE: equals your.network.zone

See network zones for more information.