Terraform level 1 - 9 Create EBS Volume Using Terraform problem

What went wrong here :

Hi @rwobben

I’ve just checked, and it’s working properly on my end. Please try again and use availability_zone = “us-east-1a”.

here it is still not working

Still got the message that ```
Resources have not been created using ‘Terraform’.

with availability_zone = “us-east-1a” is it working

So I think the text in the challenge needs to be adapted because there is stated

availability_zone = “us-east-1”

@rwobben one difference that I see is the value that you’ve passed for the availability_zone field.

Each Region has multiple, isolated locations known as Availability Zones . The code for an Availability Zone is its Region code followed by a letter identifier. For example, us-east-1a .

Have you checked if the ebs volume got created in the first place after running terraform apply?

refer to my repo for solution

Any idea why I am getting this error even though resource is created using terraform.

I thiink your problem is that you’re passing “us-east-1” – which is a region – using a flag that expects an availability zone (e.g., “us-east-1a”, “us-east-1b”, etc.). Try doing that – if you read the thread you just added to, you’ll see this is a recurring problem.

1 Like

Thanks Rob.

I realized the issue after posting this message. If you see the command line it says that apply complete and resource is created.

I see the lab is using 5.91.0 terraform provider, where as the latest is 6.28.0. I suspect this could be a defect in this version. I wonder if resource creation fails when we use the latest provider.

I’m not sure if that’s really a bug, per se: using a region when you’re asked for an availability zone is certain a user error; I’d guess that how terraform’s system respond to this kind of error would be somewhat unpredictable.