Skip to main content

Deploying OPA on AWS

Open Policy Agent (OPA) is easily integrated with systems running in Amazon Web Services (AWS). OPA exposes APIs for policy evaluation and can be invoked over the network from a range of AWS services.

OPA can be deployed on a range of different AWS services. Choosing the right one for your use case depends on:

  • Where the calling service is running
  • The latency requirements of the calling service
  • What the data volume required at policy evaluation time

The table below outlines maps different use cases to one of the three main deployment options for OPA on AWS.

Use CaseDeployment Method
EC2 applicationLocal Node Agent or Centralized Service
AWS API GatewayECS Service
EKS applicationLocal OPA Sidecar or Centralized Service
Lambda applicationECS Service
Other custom applicationsCentralized Service on EKS or ECS