https://pulumi.com logo
#golang
Title
# golang
r

ripe-match-38400

06/22/2023, 10:42 AM
Hei 😄 Is there anyone using Pulumi go with the AWS wafv2 (github.com/pulumi/pulumi-aws/sdk/v5/go/aws/wafv2) package? I am struggling to get the code compile when i include the wafv2 package. First i noticed that it got stuck on pulumi preview, i narrowed it down the the wafv2 package. Found out that it is getting stuck in the go build step. Anyone experiencing the same, something that I could have missed? This seems to be the last command running:
Copy code
<http://github.com/pulumi/pulumi-aws/sdk/v5@v5.41.0/go/aws/wafv2/webAclLoggingConfiguration.go|github.com/pulumi/pulumi-aws/sdk/v5@v5.41.0/go/aws/wafv2/webAclLoggingConfiguration.go>
Here is an example code:
Copy code
package main

import (
	"<http://github.com/pulumi/pulumi-aws/sdk/v5/go/aws/wafv2|github.com/pulumi/pulumi-aws/sdk/v5/go/aws/wafv2>"
	"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error) {
		temp := wafv2.IpSetArgs{}
		fmt.println(temp)

		return nil
	}
}
b

bright-angle-72523

06/26/2023, 6:02 PM
I'm using golang / AWS, not specifically using WAF yet but am curious to know what's happening here - clicking on https://pkg.go.dev/github.com/pulumi/pulumi-aws/sdk/v5@v5.41.0/go/aws/wafv2 times out
r

ripe-match-38400

06/27/2023, 12:07 PM
I havn’t had much time looking into it, but yea that times out for me to 🤔
a

aloof-easter-15696

06/27/2023, 7:05 PM
Still times out for me.
You might be able to read the docs by going to source.
Should have some comments.
image.png
r

ripe-match-38400

06/28/2023, 7:17 AM
The docs is okay for me, usually use the pulumi website or the github repository. Still struggling with getting the code to compile, when I include that package. Have also been trying a few of the example snippets, but with no luck. Not seeing the same issue with the other Pulumi aws packages. The api gateway package is working for example (github.com/pulumi/pulumi-aws/sdk/v5/go/aws/apigatewayv2)
3 Views