Open siwei-luo opened 1 year ago
I ran into this issue now as well. I would like to fix it, but I'm don't have any experience writing Pulumi packages. I assume I have to make some kind of changes to the schema.json
file, but I'm unsure what.
The issue though is that this piece of generated code https://github.com/pulumi/pulumi-tls-self-signed-cert/blob/49b5cd362c6e9cb4de736341b107a1da1c3d69cf/sdk/go/tls-self-signed-cert/selfSignedCertificate.go#L106
...should generated as:
Subject tls.SelfSignedCertSubject `pulumi:"subject"`
If anyone can help me in the right direction I can fix a PR
@jooooel I ended up in working around the issue by using github.com/pulumi/pulumi-tls/sdk/v4/go/tls
instead to create a self signed certificate:
https://www.pulumi.com/registry/packages/tls/api-docs/selfsignedcert/
What happened?
Given the Go sample:
I am getting following error after executing
pulumi up
:This looks like a library issue here?
Expected Behavior
Successful creation of the requested self signed certificate.
Steps to reproduce
Run the minimal Go sample to create a self-signed certificate.
Output of
pulumi about
CLI
Version 3.63.0 Go Version go1.20.2 Go Compiler gc Host
OS arch Version
Arch x86_64
Backend
Name pulumi.com URL https://app.pulumi.com/sluo User sluo Organizations sluo, flipapp
Pulumi locates its logs in /tmp by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).