Introduction
Terraform Enterprise doesn't support Redis Cluster and Redis Sentinel at this point in time. Please see our official documentation here. This may change in a future version of Terraform Enterprise.
Expected Outcome
This article describes how to verify if Redis Cluster or Redis Sentinel is enabled.
Procedure
-
Connect to you Terraform Enterprise container
Docker:
docker exec -it terraform-enterprise bash
Kubernetes:
kubectl -n terraform-enterprise <pod_name> -- bash
-
Verify which Redis environment you are using
env | grep REDIS
TFE_REDIS_HOST=tfe39-redis-tfe.zdjghv.0001.eun1.cache.amazonaws.com:6380
-
Connect to the Redis environment
redis-cli -h tfe39-redis-tfe.zdjghv.0001.eun1.cache.amazonaws.com -p 6380
-
Execute the command
cluster info
. The output should show it is disabled.
tfe39-redis-tfe.zdjghv.0001.eun1.cache.amazonaws.com:6380> cluster info
ERR This instance has cluster support disabled
-
Execute the command
sentinel masters
. The sentinel command should error
tfe39-redis-tfe.zdjghv.0001.eun1.cache.amazonaws.com:6380> SENTINEL masters
(error) ERR unknown command `SENTINEL`, with args beginning with: `masters`,
- If a different value is show then please contact your internal team to discuss on how to change this.
Additional Information
-
Redis requirements for Terraform Enterprise can be found here