$ terraform version
Terraform v0.11.8
+ provider.vault v1.1.3
provider "vault" {
version = "~> 1.0"
address = "https://localhost:8200"
}
resource "vault_aws_auth_backend_role" "my_role" {
role = "my-role"
auth_type = "ec2"
bound_account_id = "123456789012"
bound_region = "us-west-2"
bound_vpc_id = "vpc-xxxxxxxx"
bound_iam_instance_profile_arn = "arn:aws:iam::123456789012:instance-profile/my-instance-profile"
ttl = 60
max_ttl = 120
policies = ["default", "my-policy"]
}
The issue appears to be related to versioning, I'm not sure debug output is necessary here.
There was no panic.
Terraform plan & apply should still work
This issue appears where we have existing resources written to use the String type, where the new version of the plugin expects these to be a List type. We would expect that the old configurations still work when using the ~> 1.0 version specification for the vault provider.
$ terraform plan

Error: vault_aws_auth_backend_role.my_role: bound_account_id: should be a list
Error: vault_aws_auth_backend_role.my_role: bound_iam_instance_profile_arn: should be a list
Error: vault_aws_auth_backend_role.my_role: bound_region: should be a list
Error: vault_aws_auth_backend_role.my_role: bound_vpc_id: should be a list
With the terraform listed above:
terraform initterraform planNothing comes to mind.
It looks like the issue appeared from this commit: https://github.com/terraform-providers/terraform-provider-vault/commit/768c03ba2fa3868fc3915f655884d5bdde68f1e5#diff-a97ccbd83928090a41b6c44716cd9f18L45
See the conversation here: https://github.com/terraform-providers/terraform-provider-vault/pull/153#issuecomment-422641809
The breaking change PR was reverted and a patch version released! This should be fixed on the latest patch version.
I've re-added the original PR and I'm currently working on some compatibility code. Will cut a minor release when that's in.
From our perspective, this was fixed by #185 🎉
Thansk @tyrannosaurus-becks!
@idubinskiy @dhild could you two take a look at https://github.com/terraform-providers/terraform-provider-vault/pull/189 and comment upon whether that's what you had in mind?
Most helpful comment
The breaking change PR was reverted and a patch version released! This should be fixed on the latest patch version.
I've re-added the original PR and I'm currently working on some compatibility code. Will cut a minor release when that's in.