we use Terraform and Terragrunt to manage AWS infrastructure. when I run the terraform locally it seems fine, with no issues in deploying infrastructure but it errors out while deploying through Jenkins as no AWS creds were found and it only happens to one particular service efs-file systems in some folders only rest all other services in other folders deploys successfully including efs in other folders and those deployed without issues. Not sure what went wrong any suggestions pls?
Previously we used to save .terraform.lock.hcl in SCM along with terragrunt.hcl now we’ve removed .terraform.lock.hcl in folders. is it causing issues?
* Error finding AWS credentials (did you set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables?): NoCredentialProviders: no valid providers in chain. Deprecated.