You can follow the official documentation for configuring AWS Chatbot with the slack channel using the link https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html
You can use following command to choose before running aws commands via slack.
@aws set default-account <ACCOUNT_ID_1|ACCOUNT_ID_2>