Did anyone manage to get AWS cognito credentials with the aws cli? I feel like
aws cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --client-id PAYLOAD_CLOUD_COGNITO_USER_POOL_CLIENT_ID --auth-parameters "USERNAME=PAYLOAD_CLOUD_PROJECT_ID,PASSWORD=PAYLOAD_CLOUD_COGNITO_PASSWORD" --region us-east-1
should be right but I get
An error occurred (InvalidParameterException) when calling the InitiateAuth operation: USER_PASSWORD_AUTH flow not enabled for this client