首页 > 解决方案 > 启动 CloudHSM 的 CF 模板时出错

问题描述

{
    "Resources": {
        "Cluster": {
            "Type" : "AWS::CloudHSM::Cluster",
            "Properties":{
            "VpcId": "vpc-50ae0636",
            "SubnetMapping": {
                "us-west-1b": "subnet-49a1bc00",
                "us-west-1c": "subnet-6f950334",
                "us-west-1a": "subnet-fd54af9b"
            },
            "SecurityGroup": "sg-6cb2c216",
            "HsmType": "hsm1.medium",
            "Certificates": {},
            "State": "CREATE_IN_PROGRESS",
            "Hsms": [],
            }
        }
    }
}

我正在尝试使用 CF 模板在 CloudHSM 中启动一个集群。我正面临这个问题。“模板格式错误:无法识别的资源类型:[AWS::HSM::Cluster]”

标签: amazon-web-servicesamazon-cloudformationamazon-cloudhsm

解决方案


AWS::CloudHSM::Cluster不是有效的资源类型。遗憾的是,Cloudformation 不支持所有服务,或者可能支持的资源集不完整。

以下是 CloudFormation 当前支持的有效服务和资源类型的列表:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html

Cloudformation 团队非常频繁地推出对新资源的支持。您可以监控此页面以查看他们何时推出对新功能的支持: https ://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/ReleaseHistory.html


推荐阅读