Getting handle "accountId" in serverless config

Well lots of thanks for your help. Don’t think I’d have gotten there myself. For now I’ll wildcard the accountId as I have the stage and region available locally in the serverless.yml and that’s pretty good resolution. I’ve tested and this seems to work:

Resource: 
    - "arn:aws:lambda:${self:custom.region}:*:function:serverless-event-${self:custom.stage}-*"
4 Likes