Amazon cloudformation 为不需要参数值的模板指定的AWS CloudFormation参数值

Amazon cloudformation 为不需要参数值的模板指定的AWS CloudFormation参数值,amazon-cloudformation,Amazon Cloudformation,我将代码从ruby移植到Python,用于CloudFormation堆栈创建项目。下面是一个堆栈,我一直在获取“为不需要它们的模板指定的参数值” 这真的没告诉我什么 我已经对照模式检查了json,一切正常,并对照原始代码创建的堆栈进行了检查,结果匹配,因此有人可以看到这里的问题,或者至少为我指出了正确的方向 { "AWSTemplateFormatVersion": "2010-09-09", "Description": "EcsStack-5ad0c44afbf508d0b

我将代码从ruby移植到Python,用于CloudFormation堆栈创建项目。下面是一个堆栈,我一直在获取“为不需要它们的模板指定的参数值”

这真的没告诉我什么

我已经对照模式检查了json,一切正常,并对照原始代码创建的堆栈进行了检查,结果匹配,因此有人可以看到这里的问题,或者至少为我指出了正确的方向

{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Description": "EcsStack-5ad0c44afbf508d0b5a158df0da307fca33f5f63",
    "Outputs": {
        "marc1EcsCluster": {
            "Value": {
                "Ref": "marc1EcsCluster"
            }
        },
        "marc1EcsClusterArn": {
            "Value": {
                "Fn::GetAtt": [
                    "marc1EcsCluster",
                    "Arn"
                ]
            }
        }
    },
    "Parameter": {
        "Vpc": {
            "Description": "VPC ID",
            "Type": "String"
        }
    },
    "Resources": {
        "CloudFormationDummyResource": {
            "Metadata": {
                "Comment": "Resource to update stack even if there are no changes",
                "GitCommitHash": "5ad0c44afbf508d0b5a158df0da307fca33f5f63"
            },
            "Type": "AWS::CloudFormation::WaitConditionHandle"
        },
        "marc1EcsCluster": {
            "Type": "AWS::ECS::Cluster"
        }
    },
    "Transform": "AWS::Serverless-2016-10-31"
}

作为更一般的建议,将通过以下消息捕获这些错误:

E1001:顶级项参数无效

template.json:19

没有名为“Parameter”的模板属性。请改用“参数”。Thx。我花了很长时间才看到这个