0

{
    "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]”

4

3 回答 3

1

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

于 2019-05-15T12:19:14.393 回答
1

截至目前,CloudHSM 无法通过 CF 完成。https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudhsmv2.html#CloudHSMV2.Client.create_cluster

可以通过自定义资源完成,这是通过使用 Lambda 完成的。或 CLI。

https://docs.aws.amazon.com/cli/latest/reference/cloudhsmv2/index.html

于 2019-05-15T12:29:48.573 回答
0

CloudFormation 目前不支持 CloudHSM。您可以在此处
找到支持的服务和资源类型的列表。

于 2019-05-15T12:13:38.923 回答