When I go to do this, I'm getting an error from ha...
# general
w
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'.