如何解决此错误 - 属性 {/DistributionConfig/Aliases} 的值与类型 {Array} 不匹配
How to resolve this error - Value of property {/DistributionConfig/Aliases} does not match type {Array}
我在创建分发时遇到此错误
error msg
这是我的代码
this is my code
看起来"Aliases"
需要是一个数组,但是你提供了一个对象。尝试将 {
和 }
更改为 [
和 ]
,如下所示:
"Aliases": [
...
]
我们需要将别名保存在数组中
"DefaultRootObject" : "index.html",
"Aliases" : [
"Fn::Join": [
"", [
"fastlanedocs",
{
"Ref": "EnvironmentName"
},
".wm.com"
]
]
],
"DefaultCacheBehavior" : {
我在创建分发时遇到此错误
error msg
这是我的代码
this is my code
看起来"Aliases"
需要是一个数组,但是你提供了一个对象。尝试将 {
和 }
更改为 [
和 ]
,如下所示:
"Aliases": [
...
]
我们需要将别名保存在数组中
"DefaultRootObject" : "index.html",
"Aliases" : [
"Fn::Join": [
"", [
"fastlanedocs",
{
"Ref": "EnvironmentName"
},
".wm.com"
]
]
],
"DefaultCacheBehavior" : {