This message was deleted.
# automation-api
s
This message was deleted.
m
I found the solution. It seems it's a race condition in some way, where the secretsProvider tries to resolve before the config is set, meaning it doesn't grab the
aws:profile
from the StackSettings. Adding the following to the
createOrSelectStack
forces the stack to use the right profile:
Copy code
stackSettings: {
   ...
},
envVars: {
    AWS_PROFILE: '{profile-name}'
}