https://pulumi.com logo
#general
Title
# general
w

white-animal-66401

01/13/2024, 12:09 AM
When I go to do this, I'm getting an error from having a promise. This is my first time touching Typescript, I'm normally a Ruby/Elixir developer.
Copy code
Diagnostics:
  pulumi:pulumi:Stack (exampleapp-dev):
    error: Running program '/Users/ben/Repos/exampleapp/pulumi/index.ts' failed with an unhandled exception:
    TSError: ⨯ Unable to compile TypeScript:
    infrastructure/ec2.ts(18,7): error TS2322: Type 'Promise<Output<string>[]>' is not assignable to type 'Input<string>'.
      Type 'Promise<Output<string>[]>' is not assignable to type 'Promise<string>'.
        Type 'Output<string>[]' is not assignable to type 'string'.