在为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]"

AWS::CloudHSM::Cluster不是有效的资源类型。不幸的是,云形式不支持所有服务,或者可能拥有一组不完整的支持资源。

这是当前由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

到目前为止,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

cloudhsm当前不受云形式支持。
您可以在此处找到支持的服务和Ressource类型的列表。

最新更新