From 10228869a79955590e9277cc79f3a8f64a515e97 Mon Sep 17 00:00:00 2001 From: "qinyangming.qym" Date: Fri, 31 May 2024 18:02:08 +0800 Subject: [PATCH] Optimized templates ElasticSearch Instance and mns. --- resources/elasticsearch/instance.yml | 6 ++++++ transform/serverless/mns.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/elasticsearch/instance.yml b/resources/elasticsearch/instance.yml index fc7ef19d..609d68ee 100644 --- a/resources/elasticsearch/instance.yml +++ b/resources/elasticsearch/instance.yml @@ -4,6 +4,10 @@ Parameters: DataNode: Type: Json Description: The Elasticsearch cluster's data node setting. + KibanaNode: + Type: Json + Description: The Elasticsearch cluster's kibana node setting. + Default: Null InstanceChargeType: Type: String Description: Valid values are PrePaid, PostPaid, Default to PostPaid. @@ -35,6 +39,8 @@ Resources: Ref: VSwitchId DataNode: Ref: DataNode + KibanaNode: + Ref: KibanaNode InstanceChargeType: Ref: InstanceChargeType Version: diff --git a/transform/serverless/mns.yml b/transform/serverless/mns.yml index 9e802be4..a696550a 100644 --- a/transform/serverless/mns.yml +++ b/transform/serverless/mns.yml @@ -15,7 +15,7 @@ Resources: Type: Aliyun::Serverless::Function Properties: Handler: index.handler - Runtime: python2.7 + Runtime: python3.10 CodeUri: oss://test-transform/image-crawler.zip Events: MyTrigger: