我尝试创建一个图像调整器 lambda 函数,为此我使用 S3 存储桶进行存储,但是当我尝试在 S3 属性下添加重定向规则时,它不允许我保存它。它一直给我错误
(Unknown Error
An unexpected error occurred.
API response
Expected params.WebsiteConfiguration.RoutingRules to be an Array)
Run Code Online (Sandbox Code Playgroud)
这是我尝试添加的重定向规则
<RoutingRules>
<RoutingRule>
<Condition>
<KeyPrefixEquals/>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<Protocol>https</Protocol>
<HostName>API-endpoint</HostName>
<ReplaceKeyPrefixWith>prod/resize?key=</ReplaceKeyPrefixWith>
<HttpRedirectCode>307</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>
Run Code Online (Sandbox Code Playgroud)