Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Twingate-Labs/pulumi-twingate

Repository files navigation

Important

Pulumi is now officially supported by Twingate. Please refer to the official repository at: https://github.com/Twingate/pulumi-twingate/

Twingate Resource Provider

This is a non-official Pulumi resource provider for Twingate that was built using the pulumi terraform bridge utilizing the official Twingate Terraform Provider.

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.

Examples

  • TypeScript: Demonstrating how Twingate remote network, service account, service key and resources can be created and configured in Typescript.
  • Python: Demonstrating how Twingate remote network, service account, service key and resources can be created and configured in Python.
  • AWS EC2 Connector: Deploying Twingate connectors to AWS EC2 instances.
  • AWS ECS Connector: Deploying Twingate connectors to AWS ECS cluster.
  • GCP VM Connector: Deploying Twingate connectors to GCP instances.
  • GKE Connectors: Deploying Twingate connectors to GKE Kubernetes cluster.
  • Azure VM Connectors : Deploying Twingate connectors to Azure VM instances.
  • Azure Container Connectors: Deploying Twingate connectors to Azure Container Instance.