Erro getting terraform task 12


I have done the trerraform task 12 correctly but it got the faile please check this snap

Hi @benuka

Is the task name Create Public S3 Bucket Using Terraform in Terraform Level-1?
If you could also share your main.tf. It would have helped.

You can refer to this doc.

Hi @Santosh_KodeKloud please find below my main.tf file

Create the S3 bucket

resource “aws_s3_bucket” “nautilus_bucket” {
bucket = “nautilus-s3-7694”

tags = {
Name = “nautilus-s3-7694”
Environment = “DevOps”
}
}

Set ACL (public read/write)

resource “aws_s3_bucket_acl” “nautilus_bucket_acl” {
bucket = aws_s3_bucket.nautilus_bucket.id
acl = “public-read-write”
}

You would also need the aws_s3_bucket_public_access_block as in the docs:

Ok thank you for your update.