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/20/2018, 5:26 PM
    thanks!
  • i

    incalculable-sundown-82514

    09/20/2018, 5:26 PM
    to be honest I’m not sure why this isn’t working
  • i

    incalculable-sundown-82514

    09/20/2018, 5:27 PM
    I’m not sure where that error message is coming from
  • a

    aloof-tailor-93191

    09/20/2018, 5:27 PM
    yeah, I grepped for it all throughout pulumi and pulumi-aws, even fragments wouldn't show up
  • i

    incalculable-sundown-82514

    09/20/2018, 5:28 PM
    hmm. If you run pulumi with
    --logtostderr -v 7
    , it should print out a bunch of debug logs
  • i

    incalculable-sundown-82514

    09/20/2018, 5:28 PM
    maybe itll show up there?
  • a

    aloof-tailor-93191

    09/20/2018, 5:31 PM
    ok, trying that
  • i

    incalculable-sundown-82514

    09/20/2018, 5:31 PM
    thanks!
  • a

    aloof-tailor-93191

    09/20/2018, 5:31 PM
    woah, lots of output
  • i

    incalculable-sundown-82514

    09/20/2018, 5:31 PM
    yeah, it’s a lot 😛
  • a

    aloof-tailor-93191

    09/20/2018, 5:33 PM
    I can send you the whole log, but here's a quick snippet:
    I0920 10:35:28.888785   32735 source_eval.go:648] ResourceMonitor.RegisterResource operation finished: t=aws:sns/topic:Topic, urn=urn:pulumi:bi
    lling-dev::billing::aws:sns/topic:Topic::billing-notifications, stable=true, #stables=0 #outs=18
    I0920 10:35:28.888884   32735 provider_plugin.go:244] Provider[aws, 0xc4207fab40].Check(urn:pulumi:billing-dev::billing::aws:lambda/function:Function::slacker) failed: err=expected an asset, but filename is not an asset
    I0920 10:35:28.888904   32735 plan_executor.go:166] planExecutor.Execute(...): error handling event: expected an asset, but filename is not an asset
    I0920 10:35:28.888932   32735 eventsink.go:87] eventSink::Error(<{%fg 7%}>expected an asset, but filename is not an asset<{%reset%}>)
    I0920 10:35:28.888972   32735 step_executor.go:248] StepExecutor worker(-1): StepExecutor.waitForCompletion(): waiting for worker threads to exit
    I0920 10:35:28.888999   32735 step_executor.go:248] StepExecutor worker(0): worker exiting due to cancellation
    I0920 10:35:28.889002   32735 step_executor.go:248] StepExecutor worker(6): worker exiting due to cancellation
    I0920 10:35:28.889007   32735 step_executor.go:248] StepExecutor worker(7): worker exiting due to cancellation
    I0920 10:35:28.889021   32735 step_executor.go:248] StepExecutor worker(4): worker exiting due to cancellation
    I0920 10:35:28.889037   32735 step_executor.go:248] StepExecutor worker(5): worker exiting due to cancellation
    I0920 10:35:28.889048   32735 step_executor.go:248] StepExecutor worker(3): worker exiting due to cancellation
    I0920 10:35:28.889034   32735 step_executor.go:248] StepExecutor worker(9): worker exiting due to cancellation
    I0920 10:35:28.889023   32735 step_executor.go:248] StepExecutor worker(8): worker exiting due to cancellation
    I0920 10:35:28.889054   32735 step_executor.go:248] StepExecutor worker(2): worker exiting due to cancellation
    I0920 10:35:28.889065   32735 step_executor.go:248] StepExecutor worker(1): worker exiting due to cancellation
     *  global global no change 1 error. error: expected an asset, but filename is not an asset
    I0920 10:35:28.889132   32735 plan_executor.go:183] planExecutor.Execute(...): step executor has completed
    I0920 10:35:28.889283   32735 plan_executor.go:71] planExecutor.Execute(...): exiting provider canceller
     *  global global no change 1 error
    
    I0920 10:35:2  global: global
        error: expected an asset, but filename is not an asset
  • i

    incalculable-sundown-82514

    09/20/2018, 5:33 PM
    ah, ok! so this is failing
    Check
    .
  • i

    incalculable-sundown-82514

    09/20/2018, 5:33 PM
    This is the key line:
    I0920 10:35:28.888884   32735 provider_plugin.go:244] Provider[aws, 0xc4207fab40].Check(urn:pulumi:billing-dev::billing::aws:lambda/function:Function::slacker) failed: err=expected an asset, but filename is not an asset
  • i

    incalculable-sundown-82514

    09/20/2018, 5:34 PM
    Check
    is when Pulumi invokes a provider to ask it if a series of resource inputs are valid
  • i

    incalculable-sundown-82514

    09/20/2018, 5:34 PM
    So the clue here is that perhaps the Go SDK is not marshaling assets or archives correctly
  • i

    incalculable-sundown-82514

    09/20/2018, 5:35 PM
    can you open an issue for this? this is an interesting failure mode. there are probably a couple things we can do here: 1) there’s maybe a bug in the Go SDK, and 2) the error message that the CLI gives here is really bad
  • i

    incalculable-sundown-82514

    09/20/2018, 5:36 PM
    here’s what I think the bug is: https://github.com/pulumi/pulumi/blob/abb0c2769baabf6648522ba235d4df73ac32ecaf/sdk/go/pulumi/rpc.go#L103
  • i

    incalculable-sundown-82514

    09/20/2018, 5:36 PM
    this should be
    rpcTokenSpecialArchiveSig
  • i

    incalculable-sundown-82514

    09/20/2018, 5:36 PM
    does it work if you make that change?
  • a

    aloof-tailor-93191

    09/20/2018, 5:36 PM
    one sec, lemme try
  • i

    incalculable-sundown-82514

    09/20/2018, 5:36 PM
    thanks!
  • a

    aloof-tailor-93191

    09/20/2018, 5:38 PM
    after that, I just rebuild the pulumi-language-go binary, right?
  • i

    incalculable-sundown-82514

    09/20/2018, 5:38 PM
    you should only need to rebuild your program, I think
  • a

    aloof-tailor-93191

    09/20/2018, 5:39 PM
    ah ok, doing that
  • a

    aloof-tailor-93191

    09/20/2018, 5:40 PM
    looks like the error is missing
  • a

    aloof-tailor-93191

    09/20/2018, 5:40 PM
    going for create
  • a

    aloof-tailor-93191

    09/20/2018, 5:41 PM
    heh, got a different error now
  • a

    aloof-tailor-93191

    09/20/2018, 5:41 PM
    so I assume that it's fixed
  • i

    incalculable-sundown-82514

    09/20/2018, 5:41 PM
    cool!
  • a

    aloof-tailor-93191

    09/20/2018, 5:41 PM
    Diagnostics:
      aws:lambda:Function: slacker
        error: Plan apply failed: creating urn:pulumi:billing-dev::billing::aws:lambda/function:Function::slacker: Error creating Lambda function: ValidationException: 1 validation error detected: Value 'lambda-4523708' at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
            status code: 400, request id: 3401222e-bcfc-11e8-b5a4-bb5c05ec42d2
Powered by Linen
Title
a

aloof-tailor-93191

09/20/2018, 5:41 PM
Diagnostics:
  aws:lambda:Function: slacker
    error: Plan apply failed: creating urn:pulumi:billing-dev::billing::aws:lambda/function:Function::slacker: Error creating Lambda function: ValidationException: 1 validation error detected: Value 'lambda-4523708' at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
        status code: 400, request id: 3401222e-bcfc-11e8-b5a4-bb5c05ec42d2
View count: 3