published on Saturday, Jul 11, 2026 by Defang
Defang Providers: Installation & Configuration
published on Saturday, Jul 11, 2026 by Defang
Installation
The Pulumi Provider for Defang — Take your app from Docker Compose to a secure and scalable cloud deployment with Pulumi.
The Defang Pulumi Provider is available as separate packages per cloud (AWS, GCP, Azure) in most Pulumi languages.
Installing the Pulumi Plugins directly
pulumi plugin install resource defang-aws --server github://api.github.com/DefangLabs/pulumi-defang
pulumi plugin install resource defang-gcp --server github://api.github.com/DefangLabs/pulumi-defang
pulumi plugin install resource defang-azure --server github://api.github.com/DefangLabs/pulumi-defang
Authentication
Authenticating with Defang
Sign up for Defang with your Github account.
Authenticating in Github Actions workflows
When run in a Github Actions workflow, the Defang Pulumi Provider will automatically use environment variables Github provides to authenticate your Github user with Defang if you give your workflow the appropriate permissions. Defang use the ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variables.
Authenticating with defang token
You can run defang token --expires 30d out of band with a reasonable duration and you can store the result in DEFANG_ACCESS_TOKEN.
Authenticating with your cloud provider
You will also need to authenticate with your cloud provider.
- For AWS, there are many ways to authenticate
- Use the
aws-actions/configure-aws-credentialsGithub Action - Use AWS Access Keys by setting the
AWS_ACCESS_KEY_ID, andAWS_ACCESS_KEY_SECRETenv vars.
- Use the
- For Google Cloud, you may wish to use the
google-github-actions/authGithub Action
Using Pulumi Cloud
Defang runs the Pulumi CLI in your cloud account. You can use Pulumi Cloud to manage the Pulumi resources which Defang creates by setting the following environment variables:
DEFANG_PULUMI_BACKEND=pulumi-cloudPULUMI_ACCESS_TOKEN
Reference
For detailed reference documentation, please visit the Pulumi registry: defang-aws, defang-gcp, defang-azure.
published on Saturday, Jul 11, 2026 by Defang