Skip to content

This repository includes the code necessary to deploy the HTTP endpoint of OpenFGA on AWS Lambda and Amazon RDS.

License

Notifications You must be signed in to change notification settings

careduct/openfga_aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFGA HTTP Endpoint Deployment on AWS Lambda and Amazon Aurora Postgres serverless v2

Welcome to our repository! Here, you'll find all the necessary code to deploy the HTTP endpoint of OpenFGA on AWS Lambda and Amazon RDS. This guide will walk you through the steps to get everything up and running.

Overview

OpenFGA is a versatile and open-source service designed to help developers with access control management. By integrating OpenFGA's HTTP endpoint with AWS API Gateway and Lambda, you can achieve scalable and serverless function execution. Additionally, using Amazon RDS for database management ensures a strong and scalable foundation for handling authorization tasks.

The process involves creating a Lambda extension that initializes OpenFGA during the cold start, setting up both gRPC and HTTP servers. For every incoming request, the AWS API Gateway directs the request to the server operating on the Lambda extension. This setup facilitates efficient and scalable authorization services.

Prerequisites

Before you begin, make sure you have the following:

  • An AWS account
  • AWS CLI installed and configured
  • Basic knowledge of AWS services (Lambda, API Gateway, RDS, IAM)
  • Familiarity with OpenFGA

Deployment Steps

  1. Prepare Your AWS Environment:

    • create a provider.tf file at terraform folder and provide the credentials and regions where you want the infra deployed
    • run terraform init
  2. Deploy the Lambda Function:

    • run 'make package' on the services/openfga_http folder
    • run terraform apply
  3. Test Your Deployment:

Additional Resources

Contributing

We welcome contributions! Please feel free to submit pull requests or open issues to suggest improvements or add new features.


Thank you for visiting our repository. We hope this guide helps you deploy OpenFGA's HTTP endpoint seamlessly on AWS Lambda and RDS.

About

This repository includes the code necessary to deploy the HTTP endpoint of OpenFGA on AWS Lambda and Amazon RDS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published