I am having a weirdest bug ever in pulumi ```async...
# typescript
g
I am having a weirdest bug ever in pulumi
Copy code
async function resolveAccessEntries(args:{isProdEnvironment:boolean}){
 const response = aws.iam.getRoles(  // if this is getRolesOutput then everything works as expected
      {
        nameRegex: "AWSReservedSSO_*",
        pathPrefix: "/aws-reserved/sso.amazonaws.com/",
      },
      opts
    )
}

async function main(args:{exports: any}) {
  args.exports["OutputIsPresent"] = "yes" // this is set
  const accessEntries2 = await resolveAccessEntries({
    isProdEnvironment: lib.env.isProdEnvironment(),
  })
  args.exports["OutputIsNotPresent"] = "nope" // this is not set anymore
}
main({exports}