great-sunset-355
04/25/2025, 5:23 PMasync 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}