This message was deleted.
# general
s
This message was deleted.
b
oh thankyou, I didn't know this was missing! cc @limited-planet-95090
We do have an example here that's up to date: https://github.com/pulumi/examples/tree/master/aws-go-webserver
l
@alert-gpu-24581 Sorry to hear you ran into this problem in the docs. We’re working on updating the Go version in our docs and examples.
a
That example doc go code is not working on v3. I was following the go getting started guide. Create bucket works, but ec2/ lookup Ami throws a bunch go build error
Thank you for the prompt answer
b
can you share the code you have, the provider version you're using and the error?
a
Sure. Gimme a second,
there were two issues. by deault go mod init picked an older (3.22) version, which didn't have the lookupAmi method,. so that was first error.
after fixing that, i hit the second error, which I think is related to the Map type. I fixed it entirely by guessing (YOLO). Let me know if its correct.
it will be super helpful if theres godoc for the core types etc.
b