I am trying to provision the AWS amplify using Terraform and when I do terraform init and terraform plan there is no error but when applying (terraform apply) it is giving me error
Error: creating Amplify App (nextjs_app_amplify): BadRequestException: You should at least provide one valid token with aws_amplify_app.nextjs_app, on main.tf line 7, in resource aws_amplify_app" "nextjs_app": 7: resource "aws_amplify_app" "nextjs_app" {
This is only message is printing
My Main.tf file
provider "aws" {
region = "ap-south-1"
access_key = "xxxxx"
secret_key = "xxxxx"
}
resource "aws_amplify_app" "nextjs_app" {
name = "nextjs_app_amplify"
platform = "WEB"
repository = "https://github.com/xxx/nectjs-example.git"
}
Note:- My repo is Public repo.