Terraform AWS provider getting an issue

error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
status code: 403, request id: 2d673535-75eb-4080-aee0-16240de46a0b
on main.tf line 1, in provider “aws”:
1: provider “aws” {

AWS credentials are working and I’m able to see those in .aws/credentails file also

AWS CLI is working with same credentials but terraform plan and apply having an issue.