File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,10 +87,16 @@ Connect to your Elasticache service using port forwarding (see [Using SSH](/docs
8787``` shell
8888elasticache_credentials=$( cf service-key my-elasticache my-key | tail -n +3)
8989
90+ # CF CLI v7
9091elasticache_hostname=$( echo " ${elasticache_credentials} " | jq -r ' .hostname' )
9192elasticache_port=$( echo " ${elasticache_credentials} " | jq -r ' .port' )
9293elasticache_password=$( echo " ${elasticache_credentials} " | jq -r ' .password' )
9394
95+ # CF CLI v8
96+ elasticache_hostname=$( echo " ${elasticache_credentials} " | jq -r ' .credentials.hostname' )
97+ elasticache_port=$( echo " ${elasticache_credentials} " | jq -r ' .credentials.port' )
98+ elasticache_password=$( echo " ${elasticache_credentials} " | jq -r ' .credentials.password' )
99+
94100cf ssh my-app -L " 8000:${elasticache_hostname} :${elasticache_port} "
95101```
96102
You can’t perform that action at this time.
0 commit comments