This message was deleted.
# general
s
This message was deleted.
b
You can specify a provider, so if you want to get the caller identity of a different provider, you could do
Copy code
const myProvider = new aws.Provider('someProvider', {
  region: 'us-east-1',
  assumeRole: {
    roleArn: '...',
    sessionName: 'pulumi',
  },
});
const accountId = aws.getCallerIdentity({provider: myProvider}).accountId
(typescript but same idea for Python)
s
rgr that ty