Skip to main content

Gitlab Datastore Bootstrap

@webframp/gitlab-datastore-bootstrapv2026.07.22.1· 2d agoMODELSWORKFLOWS
01README

One-shot bootstrap for @webframp/gitlab-datastore. Validates access to a GitLab project, optionally creates a scoped project access token, and switches the current swamp repository to use GitLab's Terraform state API as the datastore backend.

Useful as a zero-infrastructure PoC: if you already have a GitLab project, this gives you a shared datastore with distributed locking in under a minute.

Prerequisites

  • A GitLab project (GitLab.com or self-hosted) with API access
  • A personal access token with api scope (or Maintainer access to create a project access token)

Running

swamp extension pull @webframp/gitlab-datastore-bootstrap

swamp model create @webframp/gitlab-datastore-bootstrap/provisioner \
  swamp-gitlab-provisioner

swamp model create command/shell swamp-gitlab-setup

swamp workflow run @webframp/bootstrap-gitlab-datastore \
  --input project_id=12345 \
  --input token=glpat-xxxxxxxxxxxxxxxxxxxx

swamp datastore status
02Models1
@webframp/gitlab-datastore-bootstrap/provisionerv2026.07.22.1provisioner.ts
fn provision()
Validate GitLab project access, optionally create a project access token, and produce @webframp/gitlab-datastore configuration.

Resources

state(infinite)— GitLab project validation and datastore configuration for swamp.
03Workflows1
@webframp/bootstrap-gitlab-datastoree1a3b5c7-d9f2-4a6b-8e0c-3f5a7b9d1e2f

Validate access to a GitLab project, optionally create a project access token, and switch the current repo to use GitLab's Terraform state API as the swamp datastore.

validateValidate GitLab project access and prepare configuration.
1.provisionswamp-gitlab-provisioner.provision— Validate project, optionally create token, produce config. Instance `swamp-gitlab-provisioner` must be pre-created with globalArguments wired to the workflow inputs.
configurePoint this repo's datastore at GitLab.
1.run-setupswamp-gitlab-setup.execute— Run `swamp datastore setup extension @webframp/gitlab-datastore`.
04Stats
A
100 / 100
Downloads
0
Archive size
7.6 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels