I have a AWS account created under an Organization. Say Account ID : 12345
. It is a parent account. Now i have new Role created, Say Account ID : 67890
. I have switched my role from parent account to the new one. But when i execute the cloud formation template from AWS cli. It is still trying to create env in my parent account (i.e,12345
) instead of the new account.
My question is - How can i execute/create env using CFT from AWS Cli in my new account (ie, 67890
) ? or is there a way to specify Account id in which the env should be created ?