This example demonstrates how to deploy Twingate connectors to AWS ECS Fargate.
- Python and PIP
- Pulumi
- AWS CLI
- Clone the repository
cd /path/to/repo/examples/connector-aws-ecs
- Configure Pulumi-Twingate Provider, see configuration section here
- Setup AWS CLI, see here
cp pulumi.dev.yaml.example pulumi.dev.yaml
and modifypulumi.dev.yaml
to desired values including number of connectors to deploy.pulumi up
Note: pulumi up
should automatically download the required Python dependency and Pulumi Plugins.
Note: make sure dev
part in the file name of pulumi.dev.yaml
is changed to the Pulumi stack name.
Adding parameter force_new_deployment=True,
to function awsx.ecs.FargateService
in main.py and execute pulumi up
would trigger the connector container to be redeployed. This can be used to update tasks to use a newer Docker image with same image/tag combination.
Note: Connector update can cause the existing connection to be interrupted.