Hi
I am new to terraform and have tried to config a s3 bucket as a backend repository by setting the following in backend.tf:
Terraform {
Backend “s3” {
bucket = “bucketname/”
region = “eu-west-1”
key = “demo4”
}
}
When I run terraform init I get the following error message:
Initializing the backend…
Error: Unknown root level key: Terraform
I have checked the bucket policy and from what I can see the permissions are fine, I have connected to the bucket using AWS CLI and can upload files , retrieve files lists etc so don’t think its permissions related.
Can you help please?