Learn how to deploy Connectors in Aptible's secure cloud environment.
Aptible is a serverless application platform that manages security and compliance automatically. With Twingate, you can provide secure and controlled access to Aptible services so your remote users and engineers can access the environments with ease. For more information about Aptible, see our blog post announcement.
There are two approaches to deploying Connectors on Aptible:
./tg deploy aptible app from the command line to initiate the installation process. You can pass an environment name with the
--environment NAME option if you have multiple Aptible environments.
You will be automatically prompted for this information during the installation process.
You will be provided with the option to either select an existing Remote Network or create a new one.
Connector deployment will proceed automatically. You can verify that the Connector has been deployed correctly from the green status indicators in the Connector detail page in the Admin Console.
For a High Availability (HA) installation with multiple Connectors, run the
deploy aptible app command from step 1 again and select the same remote network. A second Connector instance will be provisioned and will automatically provide load balancing and failover.
Create a new Remote Network from the Network page in the Twingate Admin Console and select one of the Connectors on the right hand side of the page.
Select Manual for the deployment method and click Generate Tokens to create a set of authentication tokens for your Connector.
This step requires a re-authentication request. Once you have re-authenticated, click Copy to save each token. These tokens will be required in Step 4.
You can create an app in Aptible either via the Aptible dashboard or the Aptible CLI using
aptible apps:create [APP]. Replace
[APP] with the name of your Aptible App, e.g.
Set the app configuration by running the command below using the Aptible CLI. The parameters in square brackets must be replaced with the app name you chose in step 3, and the tokens you saved in step 2.
aptible config:set --app [APP] TWINGATE_NETWORK="[ACCOUNT]" \ TWINGATE_ACCESS_TOKEN="[ACCESS_TOKEN]" \ TWINGATE_REFRESH_TOKEN="[REFRESH_TOKEN]"
Deploy the app by running the following Aptible CLI command:
aptible deploy --app [APP] --docker-image twingate/connector:1 (replacing the
[APP] parameter with the name you chose in step 3).
Once deployment is complete, you will see two green lights in the Connector detail page in the Admin Console, indicating that the Connector is operational.
Last updated 2 months ago