No project description provided
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pulumi_defang-0.19.7a1741218795.tar.gz.
File metadata
- Download URL: pulumi_defang-0.19.7a1741218795.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa229ce1ac1a17f8394e029e57bc66c13400e5dce4633e0110d6e4f7d991c1d8
|
|
| MD5 |
eaebf3c21f69b95b97c2f55c79797e32
|
|
| BLAKE2b-256 |
602e463d155784808a32025ec9dd9c8e956e405f8f119bc3ce3d05096f89594c
|