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
  • i

    incalculable-sundown-82514

    09/18/2018, 12:00 AM
    looks like we’re forbidding all RPCs and then immediately doing another RPC with RegisterResourceOutputs
  • i

    incalculable-sundown-82514

    09/18/2018, 12:00 AM
    can we move that
    ctx.waitForRPCs()
    after the
    RegisterResourceOutputs
    ?
  • a

    aloof-tailor-93191

    09/18/2018, 12:00 AM
    ah
  • a

    aloof-tailor-93191

    09/18/2018, 12:01 AM
    ok, trying that
  • a

    aloof-tailor-93191

    09/18/2018, 12:02 AM
    ooo, that got me to the prompt
  • i

    incalculable-sundown-82514

    09/18/2018, 12:02 AM
    😄
  • a

    aloof-tailor-93191

    09/18/2018, 12:02 AM
    goes for creating
  • a

    aloof-tailor-93191

    09/18/2018, 12:02 AM
    let's see if we get an IP...
  • a

    aloof-tailor-93191

    09/18/2018, 12:02 AM
    ---outputs:---
        inst: "35.161.246.170"
    🎉 2
  • a

    aloof-tailor-93191

    09/18/2018, 12:02 AM
    🎉 🎉 🎉
  • i

    incalculable-sundown-82514

    09/18/2018, 12:02 AM
    nice!!
  • a

    aloof-tailor-93191

    09/18/2018, 12:02 AM
    awesome!
  • i

    incalculable-sundown-82514

    09/18/2018, 12:03 AM
    thanks for digging in! 😄
  • a

    aloof-tailor-93191

    09/18/2018, 12:03 AM
    no problem
  • a

    aloof-tailor-93191

    09/18/2018, 12:03 AM
    I'll open a PR
  • i

    incalculable-sundown-82514

    09/18/2018, 12:04 AM
    thanks! CC me on it and I’ll give it a review
  • a

    aloof-tailor-93191

    09/18/2018, 12:04 AM
    ok, will do
  • a

    aloof-tailor-93191

    09/18/2018, 12:04 AM
    thanks for the pointers
  • i

    incalculable-sundown-82514

    09/18/2018, 12:04 AM
    thanks for doing this! 😄
  • a

    aloof-tailor-93191

    09/18/2018, 10:12 PM
    https://github.com/pulumi/pulumi/pull/1954
  • a

    aloof-tailor-93191

    09/20/2018, 5:13 PM
    I'm running into an odd error when defining a lambda function in go. Here's the code snippet:
    lambdaFunction, err := lambda.NewFunction(ctx, "slacker", &lambda.FunctionArgs{
    			Runtime: "python3.6",
    			Code: asset.NewAssetArchive(map[string]interface{}{
    				".": asset.NewFileArchive("./function.zip"),
    			}),
    			Timeout: 300,
    			Handler: "function.lambda_handler",
    			Role:    lambdaRole.Name(),
    		})
  • a

    aloof-tailor-93191

    09/20/2018, 5:13 PM
    function.zip is a zip file with a bit of python lambda code in it
  • a

    aloof-tailor-93191

    09/20/2018, 5:14 PM
    here's the error:
    Diagnostics:
      global: global
        error: expected an asset, but filename is not an asset
  • a

    aloof-tailor-93191

    09/20/2018, 5:14 PM
    I'm attempting to port/follow https://github.com/pulumi/examples/blob/master/aws-ts-serverless-raw/index.ts
  • a

    aloof-tailor-93191

    09/20/2018, 5:17 PM
    @incalculable-sundown-82514 any pointers?
  • i

    incalculable-sundown-82514

    09/20/2018, 5:21 PM
    @aloof-tailor-93191 huh, that’s strange. I’ll take a look
  • i

    incalculable-sundown-82514

    09/20/2018, 5:21 PM
    very likely that there’s a bug in the Go SDK about how we handle assets and archives
  • a

    aloof-tailor-93191

    09/20/2018, 5:21 PM
    ok
  • a

    aloof-tailor-93191

    09/20/2018, 5:23 PM
    let me know what I can do to help
  • a

    aloof-tailor-93191

    09/20/2018, 5:23 PM
    if you need my full code, I can share
Powered by Linen
Title
a

aloof-tailor-93191

09/20/2018, 5:23 PM
if you need my full code, I can share
View count: 3