0
我有zookeeper連接爲ip1:port1,ip2:port2,ip3:port3,我想在我的userdata中使用這個我該怎麼做?在userdata中使用cloudformation參數
"ZooKeeperConnect": {
"Type": "String",
"Description": "list of IP or CNAME's for the associated zookeeper ensemble",
"AllowedPattern": "([1-9][0-9]?|[1-2][0-9]{2})(\\.([1-9][0-9]?|[1-2][0-9]{2})){3}(:[1-9][0-9]{1,4})?(,([1-9][0-9]?|[1-2][0-9]{2})(\\.([1-9][0-9]?|[1-2][0-9]{2})){3}(:[1-9][0-9]{1,4})?)*"
}
"UserData": {
"Fn::Base64": {
"Fn::Join": [
"",
[
"#!/bin/bash \n",
"echo Cache proxy vars... \n",
我想用我的用戶數據