Closed iwahbe closed 1 year ago
The main problem with the following is that options
needs to be indented to be under my-bucket
:
name: test2
runtime: yaml
description: A minimal AWS Pulumi YAML program
outputs:
bucketName: ${my-bucket.id}
resources:
my-bucket:
type: aws:s3:Bucket
options: <-- should be indented one more level to be under `my-bucket`
version: v6.0.0-alpha.5
If left this way, the program is specifying two resources:
my-bucket
options
but options
does not have a type specified, which leads to a panic
https://github.com/pulumi/pulumi-yaml/pull/468 fixes this not to panic, and provides a more useful error message when a resource is missing a type field:
Error: Required field 'type' is missing on resource "options"
on Pulumi.yaml line 10:
10: version: v6.0.0-alpha.5
What happened?
I ran
pulumi up
on the following program:I got:
Expected Behavior
I expect that invalid input will lead to a useful error.
Steps to reproduce
Run
pulumi up
on the provided program.Output of
pulumi about
Additional context
No response
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).