-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pulumi-defang provider package #6794
base: master
Are you sure you want to change the base?
Conversation
To answer some of your questions:
|
Hi @iwahbe, thank you for taking a look.
I think this is ready to go—aside from the Nuget Package (which I think we can resolve in time). Let me know if I can answer any other questions. |
The correct command for If you want help with schema metadata, please post what you have tried, what you expected to happen, and what actually happened.
$ pulumi plugin install resource defang --server github://api.github.com/DefangLabs
[resource plugin defang-0.18.0] installing
warning: Error downloading plugin: plugin asset 'pulumi-resource-defang-v0.18.0-darwin-arm64.tar.gz' not found
Will retry in 80ms [1/5]
warning: Error downloading plugin: plugin asset 'pulumi-resource-defang-v0.18.0-darwin-arm64.tar.gz' not found
Will retry in 160ms [2/5]
warning: Error downloading plugin: plugin asset 'pulumi-resource-defang-v0.18.0-darwin-arm64.tar.gz' not found
Will retry in 320ms [3/5]
warning: Error downloading plugin: plugin asset 'pulumi-resource-defang-v0.18.0-darwin-arm64.tar.gz' not found
Will retry in 640ms [4/5]
warning: Error downloading plugin: plugin asset 'pulumi-resource-defang-v0.18.0-darwin-arm64.tar.gz' not found
Will retry in 1.28s [5/5]
error: [resource plugin defang-0.18.0] downloading from github://api.github.com/DefangLabs: failed to download plugin: defang-0.18.0: failed all 5 attempts I don't see any binary assets associated with your latest release. |
Hi @iwahbe, thanks for getting back to me.
Ah, sorry, I had marked the latest release (
As soon as this PR is approved, I'll cut a release without the Regarding the schema metadata issues:
Aha! I didn't realize the executable served as a schema source. This led me to two key understandings:
I've cleaned up our handling of the schema accordingly, and I've now published a nuget package. Showing an example with some of the metadata properties (even just one of them) in the docs for the I think we've covered everything now. Let me know if you have any additional feedback before we cut a 1.0.0 release. Thank you! |
Hi @jordanstephens. I don't see a schema published for the $ ./bin/resourcedocsgen metadata from-github \
--repoSlug DefangLabs/pulumi-defang \
--schemaFile 'provider/cmd/pulumi-resource-defang/schema.json' \
--version 'v1.0.0-beta.8'
Error: unable to read remote schema file: finding remote file at https://raw.githubusercontent.com/DefangLabs/pulumi-defang/v1.0.0-beta.8/provider/cmd/pulumi-resource-defang/schema.json: 404 Not Found There is a schema for the ./bin/resourcedocsgen metadata from-github \
--repoSlug DefangLabs/pulumi-defang \
--schemaFile 'provider/cmd/pulumi-resource-defang/schema.json' \
--version 'v1.0.0-beta.5'
Error: unable to read remote schema file: unmarshalling schema into a PackageSpec: json: cannot unmarshal string into Go struct field PackageSpec.keywords of type []string
E0317 23:15:00.511404 54571 main.go:29] Failed to execute command: unable to read remote schema file: unmarshalling schema into a PackageSpec: json: cannot unmarshal string into Go struct field PackageSpec.keywords of type []string Keywords needs to be a |
Hi @iwahbe Apologies, I must have misunderstood your last comment. I thought you were saying that I didn't need to generate a separate schema artifact because the executable served as a schema source. Either way, I have put the schema back in place. I was able to run the
Let me know if there are any other issues to address. Thank you |
Awesome. I'm previewing your provider now: #6950. |
There is a live preview of the Defang Provider: http://registry--origin-pr-6950-047013ae.s3-website.us-west-2.amazonaws.com/registry/packages/defang/. It needs a couple of docs fixes before going out:
|
Description
Hello, Pulumi team! This PR adds the
pulumi-defang
provider package to the Pulumi registry. This provider will allow Pulumi users to deploy their Docker Compose projects to their favourite cloud with Defang.This is the initial release so the functionality is the minimum viable feature set. There is a single resource (
defang:Project
) which can be deployed. Eachdefang:Project
has two properties:cloudProviderId
: One ofaws
,gcp
, ordo
configPaths
: A list of paths to compose files which describe the projectThis package is an official, sponsored Defang package. I will be the primary owner and best contact.
[email protected]
Questions
schema.json
file, butschema.json
is autogenerated. I don't see a way to add this metadata to the go code so that it can be inferred, so I am creating a secondschema-metadata.json
and merging it withjq
. Have I overlooked any useful tooling for this workflow?Adding a new package?
If this pull request adds a new package, please verify/document:
Cloud
,Infrastructure
,Network
,Database
,Monitoring
, orUtility
)./docs/_index.md
) that includes:layout
set topackage
./docs/installation-configuration.md
) that includes:pulumi config set
. (There are no config vars)v
that corresponds with a valid GitHub release and published package SDKs (in NPM, PyPi, and NuGet)