Hello,
I am having a weird issue with relative path and using a terraform module. I am currently running my terraform from Stg path. When running this local via visual code I do not have any issue.
In tf file I am using the source to pull the module.
As I said before this all works fine on my Windows local. I am able to initialize plan and apply the terraform code.
When I try to run this in a linux box I am seeing issues. It basically is saying that the argument is not expected.
╷
│ Error: Unsupported argument
│
│ on ../../modules/emr/emr.tf line 5, in module "emr":
│ 5: create_iam_instance_profile = false
│
│ An argument named "create_iam_instance_profile" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│ on ../../modules/emr/emr.tf line 7, in module "emr":
│ 7: name = var.cluster_name
│
│ An argument named "name" is not expected here.
╵
If I change the relative path of the source and put the absolute path it works fine on the linux machine. Is there a way to fix this? Is there some sort of weird bug?
In our cicd pipeline we really can use absolute pathing.
Any help would be appreciated.