connectionState
Indicates whether the custom key store is connected to its backing key store. For an CloudHSM key store, the ConnectionState
indicates whether it is connected to its CloudHSM cluster. For an external key store, the ConnectionState
indicates whether it is connected to the external key store proxy that communicates with your external key manager.
You can create and use KMS keys in your custom key stores only when its ConnectionState
is CONNECTED
.
The ConnectionState
value is DISCONNECTED
only if the key store has never been connected or you use the DisconnectCustomKeyStore operation to disconnect it. If the value is CONNECTED
but you are having trouble using the custom key store, make sure that the backing key store is reachable and active. For an CloudHSM key store, verify that its associated CloudHSM cluster is active and contains at least one active HSM. For an external key store, verify that the external key store proxy and external key manager are connected and enabled.
A value of FAILED
indicates that an attempt to connect was unsuccessful. The ConnectionErrorCode
field in the response indicates the cause of the failure. For help resolving a connection failure, see Troubleshooting a custom key store in the Key Management Service Developer Guide.