Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Defang Pulumi Provider

GitHub tag (latest by date)

The Pulumi provider for Defang - a radically simpler way to develop, deploy, and debug cloud applications. The easiest way to deploy your Docker Compose project to the cloud with Pulumi.

Installation

The Defang provider is available as a package in most Pulumi languages:

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 varialbes Github providew 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 env vars.

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
  • For Digital Ocean, you will need to set the following env vars:
    • DIGITALOCEAN_TOKEN
    • SPACES_ACCESS_KEY_ID
    • SPACES_SECRET_ACCESS_KEY
  • For Google Cloud, you may wish to use the google-github-actions/auth Github Action

Example usage

You can find working Go, Python, and TypeScript code samples in the ./examples directory.

Reference

For detailed reference documentation, please visit the Pulumi registry.

Development

See the Contributing doc.

Metadata

Release files for pulumi-defang 1.1.0a1741215156

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-defang 1.1.0a1741215156
File Size Uploaded
pulumi_defang-1.1.0a1741215156.tar.gz 9.2 kB Details

Release files / pulumi_defang-1.1.0a1741215156.tar.gz

Download URL pulumi_defang-1.1.0a1741215156.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5b6f3c1dbd92d552be202e7931dfa71ab20777b61ade709e5e4df01a77f5a60d
BLAKE2b-256 checksum
How to use checksums
dde036986bf8b6a3f30334347dbbcacb0dc0fdf884816728aaaf4cfb9369ddbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9
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