We've 2 aws accounts.Now we trying to migrate our prod environment resources to another aws account. We've set up pipeline in account A which will deploy resources in account B. Our AWS infra stack is already available in account B and while running below cmd from account A we're getting below error:-
cmd:- aws cloudformation describe-stacks --stack-name prod-gateway
Error:- An error occurred (ValidationError) when calling the DescribeStacks operation: Stack with id prod-gateway does not exist
which is a valid error because we're trying to fetch the account B stack info from account A and the stack is not exist in acc A.
So the question is can I describe the stack info of account B from account A ? is there any cross account cmd to achieve this ?