[英]Error while launching CF Template for CloudHSM
{ "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": [], } } } }
I am trying to launch a cluster in CloudHSM using CF Template. 我正在尝试使用CF模板在CloudHSM中启动集群。 I am facing this issue.
我正面临这个问题。 "Template format error: Unrecognized resource types: [AWS::HSM::Cluster]"
“模板格式错误:无法识别的资源类型:[AWS :: HSM :: Cluster]”
AWS::CloudHSM::Cluster
is not a valid resource type. AWS::CloudHSM::Cluster
不是有效的资源类型。 Unfortunately, Cloudformation does not support all services or may have an incomplete set of supported resources. 遗憾的是,Cloudformation不支持所有服务,也可能拥有一组不完整的受支持资源。
Here is a list of valid services and resource types currently supported by CloudFormation: 以下是CloudFormation当前支持的有效服务和资源类型列表:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html
The Cloudformation team is pushing out support for new resources very frequently. Cloudformation团队正在频繁地推动对新资源的支持。 You can monitor this page to see when they push out support for new features: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/ReleaseHistory.html
您可以监控此页面,了解他们何时推出对新功能的支持: https : //docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/ReleaseHistory.html
As of now, CloudHSM cant be done via CF. 截至目前,CloudHSM无法通过CF完成。 https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudhsmv2.html#CloudHSMV2.Client.create_cluster .
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudhsmv2.html#CloudHSMV2.Client.create_cluster 。
Can be done via custom resource, that's done by using Lambda. 可以通过自定义资源完成,这是通过使用Lambda完成的。 Or CLI.
或CLI。
https://docs.aws.amazon.com/cli/latest/reference/cloudhsmv2/index.html https://docs.aws.amazon.com/cli/latest/reference/cloudhsmv2/index.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.