Amazon web services 无效的模板参数属性';数量';云中信息模板
我正在开发一个cloudformation模板,并尝试添加几个SNS订阅。(我在这一点上也有点不明白)有一个参数块对所有这些参数都重复。我试图将其添加到parameters块,但得到的模板参数属性“numRetries”无效。我也在使用YAMLAmazon web services 无效的模板参数属性';数量';云中信息模板,amazon-web-services,yaml,amazon-cloudformation,Amazon Web Services,Yaml,Amazon Cloudformation,我正在开发一个cloudformation模板,并尝试添加几个SNS订阅。(我在这一点上也有点不明白)有一个参数块对所有这些参数都重复。我试图将其添加到parameters块,但得到的模板参数属性“numRetries”无效。我也在使用YAML methodUpdateSubscription: Type: AWS::SNS::Subscription Properties: Endpoint: <my email> Protocol: email
methodUpdateSubscription:
Type: AWS::SNS::Subscription
Properties:
Endpoint: <my email>
Protocol: email
DeliveryPolicy:
healthyRetryPolicy: !Ref 'healthyRetryPolicy'
TopicArn: !Ref 'methodUpdate'
从我所做的其他工作来看,我想我不能只是将该块添加到参数区域并使其工作。当它出现在每个SNS主题中时,它确实起作用
有没有其他方法可以将其作为变量或其他什么添加进去
此外,我没有复制和粘贴,因此,如果有任何拼写或其他类似错误,代码中不会出现这种情况。:) 遗憾的是,您的
healthyRetryPolicy
参数不正确。不存在以下构造:
Parameters:
healthyRetryPolicy:
numRetries: 20
minDelayTarget: 10
maxDelayTarget: 30
numMinDelayRetries: 3
numMaxDelayRetries: 17
numNoDelayRetries: 0
backoffFunction: exponential
它们是字符串
,编号
,列表
和通信限制列表
,以及
您必须单独通过考试,例如:
Parameters:
numRetries:
Type: Number
Default: 20
minDelayTarget:
Type: Number
Default: 10
# and so on for the rest
或者通过混合使用单个定义,
List
或CommaDelimitedList
可以显示您在哪里正确使用healthyRetryPolicy
,它在哪里定义?在本例中,它是参数设置中YAML文件开头的参数之一。
Parameters:
numRetries:
Type: Number
Default: 20
minDelayTarget:
Type: Number
Default: 10
# and so on for the rest