Skip to content

Commit 07fc819

Browse files
authored
Merge pull request #177 from cloud-gov/redis-cf-v8
Update redis instruction for cf cli v8
2 parents ff687ed + f5d6e21 commit 07fc819

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

content/docs/services/aws-elasticache.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,16 @@ Connect to your Elasticache service using port forwarding (see [Using SSH](/docs
8787
```shell
8888
elasticache_credentials=$(cf service-key my-elasticache my-key | tail -n +3)
8989

90+
# CF CLI v7
9091
elasticache_hostname=$(echo "${elasticache_credentials}" | jq -r '.hostname')
9192
elasticache_port=$(echo "${elasticache_credentials}" | jq -r '.port')
9293
elasticache_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+
94100
cf ssh my-app -L "8000:${elasticache_hostname}:${elasticache_port}"
95101
```
96102

0 commit comments

Comments
 (0)