I am trying to centrally manage the lambda function for the custom config rule which is running in the child account. The lambda function will assume role which is passed to the config rule as a parameter.
I am following How to Centrally Manage AWS Config Rules across Multiple AWS Accounts | AWS DevOps Blog.
It is mentioned doing this:
// Assume the role passed from the managed-account
aws.config.credentials = new aws.TemporaryCredentials({RoleArn: ruleParameters.executionRole});
let config = new aws.ConfigService({});
How to do in Python?