terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
// Set the path to the Terraform code that will be tested.
TerraformDir: "../../modules/aws-ec2",
// variables are passed to terraform using -var option
Vars: map[string]interface{}{
"subnet-tag": "western-subnet",
},
})
cd test/aws-ec2
go mod init test
go mod tidy
go test
unit test for vault-aws module is in progress