在将CloudFront自定义策略用于签名的cookie(非签名的URL)时,是否可以使用多个语句创建策略?
我已经阅读了文档,尽管所有示例都只有一个语句,但是我看不到关于允许的语句数量的明确规则。
如果不可能有多个策略语句,则很难仅使用CloudFront安全性授予特定用户签名的cookie访问权限,例如五个随机文件。任何有关如何做到这一点的技巧将不胜感激。
这个问题交叉发布在这里:https : //forums.aws.amazon.com/thread.jspa?threadID=223440&tstart=0
费耶
我遇到了同样的问题,并与官方的AWS支持团队联系。
Hello, thanks for offering us a great service.
I am an software engineer from Japan.
Can we have multiple custom policies, like below syntax?
{
"Statement": [
{ ... },
{ ... },
{ ... },
]
}
I have searched on the web, and found ones who are trying to
do the same thing and forums/Q&A as well.
However we found no answer from AWS official support teams
nor documents saying about that.
JSON syntax is array, so it seems to work with
multiple statements but do not work.
So, if it does not work, would you add a sentence
about that on the official document?
然后,昨天我得到了答案:
I just heard back this morning.
You're correct, adding more than one statement
to a custom policy is not supported.
I'm updating the documentation now.
因此,我认为几天后文档会更新,您无法为CF自定义Cookie的自定义策略设置多个策略声明。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句