Hey, I’m looking to template on accountId for my role and cfnRole (along with other things).
I’ve tried
provider:
role: arn:aws:iam::${AWS::AccountId}:role/execution-role-name
cfnRole: arn:aws:iam::${AWS::AccountId}:role/deploy-role-name
but I’ve been greeted with a:
Serverless: Updating Stack...
Serverless Error ----------------------------------------
Cross-account pass role is not allowed.
and this error doesn’t otherwise happen.
What is going on? Why would this be triggered by using the accountId here? I’m pretty confident that this is being deployed by the same account.
I’ve also tried using the pseudo parameters plugin to do similar and achieved similar issues.