is it possible to launch terraform from a different account in aws? so terraform server in aws acc 123456 and target server where aws ec2 should be provisioned using terraform (aws acc 123456) in another aws acc 456789. my role of my target aws acc is assumed on my terraform account (aws acc 123456)
when executing terraform plan i get the bellow error:
Error configuring Terraform AWS provider" IAM Role (arn:aws:iam:456789:role/xxxxxxx) cannot be assumed
- The credentials used in order to assume the role are invalid
- The credentials do not have appropriate permission to assume role
- The role ARN is not valid
Can some please help me