Hello
After completing all the required files for Terraform and saved them I get a bunch of these very curious error messages after the Terraform init :
Initializing the backend…
Successfully configured the backend “s3”! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing modules…
╷
│ Error: Unsupported argument
*│ *
│ on modules/bastion_host/variables.tf line 27, in variable “None”:
│ 27: None = None
*│ *
│ An argument named “None” is not expected here.
I check the entire file there is not a single “None” left. Same thing for all the other files that are supposed to be impacted.
It seems Terraform can’t have access to my bucket which is well defined in S3.
I suspect something is missing regarding IAM / Security Group Policy not from my configuration but by default when creating the environment.
Previously today the Terraform init worked properly, I get some errors but that were proper errors not like the “None” error.
Now I am pretty sure that my files are correct but I can’t get through these “None” errors where Terraform can’t even have access to my edited (and saved) files.
I tested by generating the solution, I get exactly the same error with the “None” !
I went through the lab by submitting in this state as the lab seems to just check if the files are completed correctly not if you go through the Terraform init plan and apply…
I would like to pass this practice lab by getting the Terraform proper result !
Please let me know if you also encountered this problem or this is only coming from me ?
Your help would be greatly apprciated !
Thanks