Happy to take this to the #CRH5ENVDX channel if that's a better place for it.
b
brave-angle-33257
01/28/2020, 3:26 AM
Sounds like the issue is the "hard limit" of the 1 hour situation. I'd work to get that fixed first, but past that, theres no way for pulumi to check your session and send a request to some outside system asking for a refresh? Wont happen.. so, what you should try is see what happens if you manually update the role variables during execution of pulumi. My guess is that you'll want to use some type of side process that is checking the creds and refreshing them as needed. Or maybe, you use a script to get temp creds, write them to a file, and update that file. Something like that. Pulumi uses the terraform providers, and those make a bunch of individual calls so your question about a single asynchronous call is not likely to happen, unfortunately.
brave-angle-33257
01/28/2020, 3:27 AM
Of course it's possible for them to change their program to handle something like this, but seems like it's out of scope. Maybe check for a program that will refresh creds automatically? Maybe one is out there.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.