Task failed even though resources were created with Terraform

Hi All,

I completed the task using Terraform, but the validation still fails with the error:
“Resources have not been created using ‘Terraform’”

Here are the steps I followed:

  1. Created main.tf with the required configuration.
  2. Ran terraform init and terraform apply -auto-approve.
  3. Terraform output confirmed the resource was created:
    4.Verified with terraform state list – resource is present.

Screenshot attached for reference. Anyone can help on this?

Hi @irusha95

Can you please share the name or URL of the lab?

Hi @Santosh_KodeKloud

Thank you for your quick response. Please refer to the information provided below.

Module: Level 1 Terraform
Task: Create EBS Volume Using Terraform

/Irusha

Blockquote

The only error I see here is that you are using ‘Region’ to define the availability_zone; the rest is all good.

Yeah, after providing the availability zone works correctly.
Thanks for the support

/Irusha