Skip to content

relaycorp/terraform-google-veraid-authority

Repository files navigation

Terraform module relaycorp/veraid-authority/google

This is a Terraform module to manage an instance of VeraId Authority on Google Cloud Platform (GCP) using serverless services.

The module is responsible for all the resources needed to run the endpoint app on GCP, except for the following (which you can deploy to any cloud and any region):

The following diagram illustrates the cloud architecture created by this module (without the Awala integration):

Prerequisites

Install

  1. Enable the required service APIs and initialise this module in a new module. For example:
       locals {
          services = [
             "run.googleapis.com",
             "compute.googleapis.com",
             "cloudkms.googleapis.com",
             "pubsub.googleapis.com",
             "secretmanager.googleapis.com",
             "iam.googleapis.com",
          ]
       }
    
       resource "google_project_service" "services" {
          for_each = toset(local.services)
    
          project                    = var.google_project
          service                    = each.value
          disable_dependent_services = true
       }
    
      module "veraid-authority" {
        source  = "relaycorp/veraid-authority/google"
        version = "<INSERT VERSION HERE>"
    
        # ... Specify the variables here...
      }
    See full example.
  2. Run terraform init, followed by terraform apply.