Skip to content
database

GitHub Action

Fauna DB IaC

v1.0 Latest version

Fauna DB IaC

database

Fauna DB IaC

Github action for automating Fauna databases

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Fauna DB IaC

uses: firehudson/[email protected]

Learn more about this action in firehudson/fauna-action

Choose a version

This fork has been intentionally pushed to marketplace to continue development in my internal team and may not be used in production by others.

It will be deleted from marketplace once the PR on Shadid12/fauna-action is merged.

Fauna Action

This action gives you the ability to manage your Fauna resources in the CI/CD pipeline through Fauna Schema Language. Using this action you are able to

  • create, update, delete databases
  • manage collections
  • manage user defined function
  • manage database access
  • automate integration testing

How to use it

Create a new fauna schema file (i.e. myshema.fsl) in your project. Add the github action as a step as follows

# ...
steps:
  - name: run fauna_db_actions
    uses: Shadid12/[email protected]
    with:
      node-version: '20'
      fauna-secret-key: ${{ secrets.FAUNA_SECRET_KEY }}
      schema-directory: './'

With pnpm

# ...
steps:
  - name: run fauna_db_actions
    uses: Shadid12/[email protected]
    with:
      ...
      package-manager: pnpm
      ...

Based on the schema the action will apply the changes in your database.