【发布时间】:2017-07-25 13:09:13
【问题描述】:
我想在我的文件中动态构建一个 ARN,但我需要获取我当前的 AccountId。如何将其作为变量访问?
例如:
example: arn:aws:states:${region}:${accountId}:stateMachine:${self:service}-${self:custom.stage}-example
引用当前region 和accountId 的正确方法是什么?
【问题讨论】:
-
接受的答案现在已经过时了,这个native solution 为我工作
-
我将接受的答案更改为原生解决方案。向下滚动查看!
标签: amazon-web-services serverless-framework