TCS0288E: IAM role associated with the instance or temporary security credentials could not be retrieved (Is it an EC2 instance? Was an IAM role assigned to the instance?)
If the process is running on an EC2 instance, AWS credentials do not need to be stored on the instance. Instead, an IAM role can be assigned to the instance and temporary security credentials are dynamically requested from IAM service in the background. The permission policies of the role control access to the Kinesis stream. If you do not specify the CredentialFile parameter, the process assumes it must request temporary security credentials from the instance's IAM role.
Make sure that you are running the process on an EC2 instance and that you assigned a properly configured IAM role to it. Alternatively you can store your long-term AWS credentials in a file and set the CredentialFile parameter.