【发布时间】:2021-06-10 18:05:57
【问题描述】:
我正在尝试创建一个创建 DynamoDB 表的 Cloud Formation 堆栈。我只是使用 AWS 提供的示例模板。
response = cf.create_stack(
StackName = stack_name,
TemplateURL = 'https://s3.us-west-2.amazonaws.com/cloudformation-templates-us-west-2/DynamoDB_Table.template',
Parameters=[
{
'ParameterKey': 'AudioFiles',
'ParameterValue': 'string',
},
],
TimeoutInMinutes=123,
ResourceTypes=[
'AWS::DynamoDB::Table',
],
OnFailure='DO_NOTHING',
EnableTerminationProtection=True
)
返回此错误:
调用CreateStack操作时发生错误(ValidationError):参数:[HashKeyElementName]必须有值
我已尝试在参数部分为此参数提供一个值,但这不起作用。
【问题讨论】:
-
您能否展示包含所需参数但它不起作用的示例?你得到不同的错误了吗?
标签: amazon-web-services amazon-cloudformation