github-actions

Recover Deleted Postgres

Restore a deleted postgres Restore will be performed to a existing (deleted state) server with the same name Mainly designed to be used to recover a postgres in DELETED state

OIDC

Federated credentials must be set up to allow the action to authenticate to Azure and kubernetes

Inputs

Example

jobs:
  main:
    ...
    permissions:
      id-token: write # Required for OIDC authentication to Azure
      ...

    steps:
      - name: Recover Deleted Postgres
        uses: DFE-Digital/github-actions/restore-deleted-postgres@master
        with:
          resource-group: s189t01-app-rg
          deleted-server: s189t01-db-deleted
          restore-time: 2024-07-24T06:00:00
          cluster: test
          azure-client-id: $
          azure-subscription-id: $
          azure-tenant-id: $