Skip to main content

Twingate Resource Provider

The Twingate Resource Provider lets you manage Twingate resources.

Installing

This package is available for several languages/platforms:

Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

npm install @twingate/pulumi-twingate

or yarn:

yarn add @twingate/pulumi-twingate

Python

To use from Python, install using pip:

pip install pulumi-twingate

Go

To use from Go, use go get to grab the latest version of the library:

go get github.com/pulumi/pulumi-twingate/sdk/go/...

.NET

To use from .NET, install using dotnet add package:

dotnet add package Twingate.Twingate

Configuration

The following configuration points are available for the twingate provider:

  • twingate:apiToken - The access key for API operations. You can retrieve this from the Twingate Admin Console (documentation). Alternatively, this can be specified using the TWINGATE_API_TOKEN environment variable.
  • twingate:network - Your Twingate network ID for API operations. You can find it in the Admin Console URL, for example: autoco.twingate.com, where autoco is your network ID. Alternatively, this can be specified using the TWINGATE_NETWORK environment variable.
  • twingate:url - The default is 'twingate.com'. This is optional and shouldn't be changed under normal circumstances.

Reference

For detailed reference documentation, please visit the Pulumi registry.

Development

Building the Provider Locally

To build and test the provider from source:

Prerequisites

  • Go 1.24+: Required to build the provider
  • Node.js 22+: Required for the Node.js/TypeScript SDK
  • Pulumi CLI: Install from pulumi.com

Build Steps

  1. Build the provider and SDKs:

    # For full development build (all SDKs)
    make development
    
    # For just the provider and Node.js SDK
    make provider build_nodejs
    
  2. Install the local provider plugin:

    After building, you must install the locally built provider as a Pulumi plugin:

    pulumi plugin install resource twingate v4.1.0-alpha.1772811417+dirty \
      --file bin/pulumi-resource-twingate
    

    Note: The version string will match what's in your build (includes +dirty if you have uncommitted changes).

Common Errors

Error: "404 HTTP error fetching plugin"

If you see this error when running pulumi up or pulumi preview:

error: Could not automatically download and install resource plugin 'pulumi-resource-twingate'
at version v4.1.0-alpha.1772811417+dirty: 404 HTTP error fetching plugin from
https://api.github.com/repos/Twingate/pulumi-twingate/releases/tags/...

Solution: This happens because you're using a local development build. Install the plugin manually:

pulumi plugin install resource twingate v4.1.0-alpha.1772811417+dirty \
  --file bin/pulumi-resource-twingate

Replace the version string with whatever version your build generated (check the error message for the exact version).

Verify installation:

pulumi plugin ls | grep twingate

You should see your local version listed.

Testing GitHub Actions Workflows Locally

You can test GitHub Actions workflows locally using act.

Install act

On macOS with Homebrew:

brew install act

On Linux:

curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash

For other platforms, see the act installation guide.

Run workflows locally

To test a specific workflow job, use:

# List all available jobs
act --list

# Test the lint workflow
act pull_request -j lint

Note: The first time you run act, it will ask you to choose a Docker image size. Select "Medium" for most workflows.

Release files for pulumi-twingate 4.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pulumi-twingate 4.3.0
File Size Uploaded
pulumi_twingate-4.3.0.tar.gz 72.2 kB Details

Release files / pulumi_twingate-4.3.0.tar.gz

Download URL pulumi_twingate-4.3.0.tar.gz
Size 72.2 kB
Tags Source
SHA-256 checksum
How to use checksums
248aaf7dd39f2d6bdd5a6e7b0a97fb9ff21e8388cf74631cf87217e1f7bcd5a6
BLAKE2b-256 checksum
How to use checksums
d66344394d11fe5d6b18d7664c2d2bf56e12b093fa4f537194c3ae359c0c6719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

Release history Release notifications | RSS feed

5.0.2

1 release file

5.0.0

1 release file

4.3.2

1 release file

4.3.1

1 release file

This release

4.3.0 This release

1 release file

4.2.2

1 release file

4.2.0

1 release file

4.1.0

1 release file

4.0.2

1 release file

3.7.1

1 release file

3.7.0

1 release file

3.6.0

1 release file

3.5.1

1 release file

3.5.0

1 release file

3.4.0

1 release file

3.3.2

1 release file

3.3.1

1 release file

3.1.0

1 release file

3.0.18

1 release file

3.0.17

1 release file

3.0.16

1 release file

3.0.15

1 release file

3.0.14

1 release file

3.0.13

1 release file

3.0.12

1 release file

3.0.11

1 release file

3.0.8

1 release file

3.0.6

1 release file

3.0.5

1 release file

3.0.4

1 release file

3.0.3

1 release file

3.0.1

1 release file

3.0.0

1 release file

0.0.48

1 release file

0.0.47

1 release file

0.0.46

1 release file

0.0.45

1 release file

0.0.44

1 release file

0.0.43

1 release file

0.0.42

1 release file

0.0.41

1 release file

0.0.40

1 release file

0.0.37

1 release file

0.0.36

1 release file

0.0.35

1 release file

0.0.34

1 release file

0.0.32

1 release file

0.0.31

1 release file

0.0.23

1 release file

0.0.22

1 release file

0.0.21

1 release file

0.0.19

1 release file

0.0.17

1 release file

0.0.14

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.5

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page