pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
39 stars 12 forks source link

Invokes don't type check their arguments #433

Open iwahbe opened 1 year ago

iwahbe commented 1 year ago

What happened?

Invokes don't provider useful type errors.

Steps to reproduce

Run pulumi up on:

name: some-program
runtime: yaml
variables:
  _:
    fn::invoke:
      function: aws:getAvailabilityZones
      properties:
        foo: bar

Expected Behavior

A type error, just like a resource.

Actual Behavior

No error.

Output of pulumi about

CLI
Version 3.52.2-dev.0 Go Version go1.19.5 Go Compiler gc

Plugins NAME VERSION aws unknown yaml unknown

Host
OS darwin Version 13.1 Arch x86_64

This project is written in yaml

Current Stack: pulumi-test/some-program/test

TYPE URN pulumi:pulumi:Stack urn:pulumi:test::some-program::pulumi:pulumi:Stack::some-program-test pulumi:providers:aws urn:pulumi:test::some-program::pulumi:providers:aws::default

Found no pending operations associated with test

Backend
Name pulumi.com URL https://app.pulumi.com/iwahbe User iwahbe Organizations iwahbe, atestforme, pulumi-test, pulumi

No dependencies found

Pulumi locates its logs in /var/folders/fg/_1q36r4j6yx0rwz2fbhjd5y40000gn/T/ by default

Additional context

The pulumi engine is not optimized to be a user friendly type checker. We should fix this quickly.

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).