This release is a pre-release and may not be stable for production use.
Defang Pulumi Provider
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:
- JavaScript/TypeScript:
@defang-io/pulumi-defang - Python:
pulumi-defang - Go:
github.com/checkly/pulumi-defang/sdk/v1/go/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 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
- 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 Digital Ocean, you will need to set the following env vars:
DIGITALOCEAN_TOKENSPACES_ACCESS_KEY_IDSPACES_SECRET_ACCESS_KEY
- For Google Cloud, you may wish to use the
google-github-actions/authGithub 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 0.19.7a1741223605
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pulumi_defang-0.19.7a1741223605.tar.gz | 9.2 kB | Without provenance | Details for pulumi_defang-0.19.7a1741223605.tar.gz |
Release files / pulumi_defang-0.19.7a1741223605.tar.gz
| Download URL | pulumi_defang-0.19.7a1741223605.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0478ab9ccb24488a0a516f54ba4ea47ea2c09f772226e08db17bac85288f23f2
|
|
BLAKE2b-256 checksum How to use checksums |
521f3cfeaf02638c2dfab2870aaed10fe3750d8844bcd45454fb8cd00371ac5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for pulumi-defang 0.19.7a1741223605
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.