事象
cqlsh から Amazon KeySpaces に接続しようとすると "Can't authenticate without a region name" と怒られる
Connection error: ('Unable to connect to any servers', {'172.31.4.223:9142': ValueError("Can't authenticate without a region name"), '172.31.20.37:9142': ValueError("Can't authenticate without a region name")})
解決策
$ aws configure AWS Secret Access Key [None]: Default region name [None]: ap-northeast-1 Default output format [None]:
- 接続に成功する
$ cqlsh cassandra.ap-northeast-1.amazonaws.com 9142 --ssl Connected to Amazon Keyspaces at cassandra.ap-northeast-1.amazonaws.com:9142 [cqlsh 6.1.0 | Cassandra 3.11.2 | CQL spec 3.4.4 | Native protocol v4] Use HELP for help. cqlsh>