Error

Planning failed. Terraform encountered an error while generating this plan. ╷ │ Error: error creating EC2 Metadata session: CredentialRequiresARNError: credential type web_identity_token_file requires role_arn, profile default │ │ with provider["registry.terraform.io/hashicorp/aws"], │ on variables.tf line 18, in provider "aws": │ 18: provider "aws" { │ ╵

Solution

required_providers { aws = { source = "hashicorp/aws" version = "~> 3.0" } }