Keycloak vs Cognito : Identity Provider Integration

Scenario: When create user in keycloak at the same time user is creating in cognito as well through attribute mapping. But cognito user ID has to be updated in keycloak Identity Provider Link. currently it is a manual process, is their any option to automate the process.