https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
golang
  • h

    helpful-bear-175

    07/26/2019, 9:03 PM
    does exists
  • b

    broad-dog-22463

    07/26/2019, 9:20 PM
    @helpful-bear-175 is your Gopath part of PATH?
    h
    • 2
    • 1
  • g

    gentle-diamond-70147

    07/26/2019, 9:22 PM
    @helpful-bear-175 I’ve asked internally.
    👍 1
  • h

    helpful-bear-175

    07/27/2019, 3:26 AM
    Okay, I needed to add my $GOBIN to my $PATH
    👍 1
  • s

    stocky-spoon-28903

    07/29/2019, 6:08 PM
    Hi @helpful-bear-175! I’ve just taken a look at the provider for Aiven, and it’s not actually compatible with the Terraform bridge as it doesn’t use the standard layout for a Terraform provider.
    ✔️ 1
  • s

    stocky-spoon-28903

    07/29/2019, 6:08 PM
    Usually all the resources are in a package below the root, so they can be imported into another program (this dates from when TF providers were shipped in the TF binary itself)
  • s

    stocky-spoon-28903

    07/29/2019, 6:08 PM
    However, the Aiven one has everything at the root, and since you can’t import a
    package main
    , it’s not possible to wrap.
  • h

    helpful-bear-175

    07/29/2019, 6:11 PM
    @stocky-spoon-28903 Thank you for having a look.
  • g

    gentle-diamond-70147

    07/29/2019, 6:13 PM
    @stocky-spoon-28903 is this something that would be reasonably easy for the folks at Aiven to change to make it work with our bridge?
  • h

    helpful-bear-175

    07/29/2019, 6:19 PM
    @gentle-diamond-70147, looks like they haven't touched most of it in 10 months.
  • s

    stocky-spoon-28903

    07/29/2019, 6:29 PM
    You could fork it to restructure - look at azure or AWS for the standard layout
  • h

    helpful-bear-175

    07/29/2019, 9:03 PM
    @stocky-spoon-28903 I'm working on it.
  • h

    helpful-bear-175

    07/30/2019, 2:02 PM
    @gentle-diamond-70147 @stocky-spoon-28903, I refactored aiven repo (( https://github.com/aiven/terraform-provider-aiven/pull/83 ))
  • s

    stocky-spoon-28903

    07/30/2019, 3:22 PM
    That looks correct now @helpful-bear-175 - and should be wrappable
    ✔️ 1
  • g

    gentle-diamond-70147

    07/30/2019, 3:48 PM
    @helpful-bear-175 awesome! Do you know anybody there you can poke to get a review?
  • h

    helpful-bear-175

    07/30/2019, 3:49 PM
    I don't. But I tagged both lead committers.
  • g

    gentle-diamond-70147

    07/30/2019, 3:51 PM
    Cool. Didn't know if you had an account manager there or someone on the sales side.
  • h

    helpful-bear-175

    07/30/2019, 3:51 PM
    Not yet. We are just getting started with Aiven
  • h

    helpful-bear-175

    08/15/2019, 2:37 PM
    Changes Merged
    <https://github.com/aiven/terraform-provider-aiven>`
    g
    • 2
    • 1
  • r

    rough-plastic-90183

    08/16/2019, 3:34 PM
    Do golang have full docker support? Like pushing an image to a private ecr?
  • h

    helpful-london-36654

    08/27/2019, 3:37 AM
    Is go not a first class language for Pulumi? On the getting started there's only TypeScript, JavaScript and Python
    w
    • 2
    • 3
  • c

    cold-car-23440

    09/16/2019, 9:54 AM
    I’m looking to set-up a PoC of an environment for azure using Go as my language to demo to my client. I understand it’s in preview which is why there is no documentation as yet; however, i’ve had a snoop around and looks like it’s using the terraform azure provider. Is there somewhere i can read more about this to figure it all out. I’ve seen the Go examples but they are AWS. In order to get clients to see the value, i need to demo to them in their own languages and their own cloud providers
  • s

    stocky-spoon-28903

    09/16/2019, 11:53 AM
    Hi @cold-car-23440! The
    pulumi-azure
    provider is indeed based on the AzureRM Terraform provider. The same resource model is exposed by each language SDK, so the typescript docs are mostly fine for working out what is available. The actual Go programming model is the same between AWS and Azure too - you create your resources in the function passed to
    pulumi.Run
    , and pass the
    pulumi.Context
    into each resource constructor. Do you have a specific scenario in mind that you’d like an example of?
  • c

    cold-car-23440

    09/16/2019, 1:22 PM
    awesome - thanks for pointing me in the right direction @stocky-spoon-28903 yes, i’m looking at creating 8 VMs and placing them into different availability zones. I managed to do this with Terraform using some maths trickery but it doesn’t scale well. The thing i can do with pulumi is put the AZs into a slice and loop over it so it scales to as many VMs as i want (in theory). Hope that makes sense
  • s

    stocky-spoon-28903

    09/16/2019, 1:23 PM
    Yes, you should be able to do that.
  • c

    cold-car-23440

    09/17/2019, 10:11 PM
    Just started to play around with the golang pulumi with the default resources for azurerm (resource group and storage account). Trying to build that package and i’m getting the following error
    go: <http://github.com/pulumi/pulumi-azure@v1.0.0|github.com/pulumi/pulumi-azure@v1.0.0> requires
            <http://github.com/Azure/go-autorest/autorest@v0.8.0|github.com/Azure/go-autorest/autorest@v0.8.0> requires
            <http://github.com/Azure/go-autorest/tracing@v0.4.0|github.com/Azure/go-autorest/tracing@v0.4.0> requires
            <http://contrib.go.opencensus.io/exporter/ocagent@v0.4.6|contrib.go.opencensus.io/exporter/ocagent@v0.4.6> requires
            <http://github.com/census-instrumentation/opencensus-proto@v0.1.0-0.20181214143942-ba49f56771b8|github.com/census-instrumentation/opencensus-proto@v0.1.0-0.20181214143942-ba49f56771b8>: invalid pseudo-version: version before v0.1.0 would have negative patch number
    go version go1.13 darwin/amd64 any ideas?
    b
    • 2
    • 3
  • b

    broad-dog-22463

    09/18/2019, 7:25 AM
    1.12.9
  • c

    cold-car-23440

    09/18/2019, 8:26 AM
    sweet - thanks @broad-dog-22463
  • b

    broad-dog-22463

    09/18/2019, 8:26 AM
    The first of the PRs for g1.13 have started to be merged
  • b

    broad-dog-22463

    09/18/2019, 8:27 AM
    so expect the others (AWS, Azure and Pulumi) will follow soon
Powered by Linen
Title
b

broad-dog-22463

09/18/2019, 8:27 AM
so expect the others (AWS, Azure and Pulumi) will follow soon
View count: 3