You can use AWS CLI command aws sts get-caller-identity to test your credentials from the terminal as shown below.
## Test your AWS credentials
aws sts get-caller-identity
The output will contain your AWS username and account details. If you are not getting an output or getting an error that means your AWS credentials are not working. You can use the below links to install and configure AWS CLI.