-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provider crash on EFS data search - index out of range [0] with length 0 #21642
Comments
terraform-provider-aws/internal/service/efs/file_system_data_source.go Lines 119 to 145 in 3345e46
|
I've just tried to use an |
@edmundcraske-bjss The plugin should display : data source return nothing instead of a "Error: rpc error: code = Unavailable desc = transport is closing" |
Ah yes, I was indeed passing the wrong tag values, so it wasn't finding anything. Thankfully once I fixed my mistake it is working! It really shouldn't crash though if it doesn't find anything?! |
Just encounter the same issue. It doesn't have to crash if data doesn't return anything |
This is weird, data crashes even when the tag keys and values are correct in the case of target file system ID is "short" eg., fs-95138ead. However the same thing is able to pull the file system id is long eg., "fs-0c9826306472877b6". Is someone able to replicate this behaviour? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Hi,
I've got some code that queries for an existing efs filesystem with:
data "aws_efs_file_system" "saas" {
tags = {
Name = "scp-${var.env_name}-efs"
}
}
It previously worked just fine but when I re-ran yesterday I got a provider crash:
I've tried downgrading the provider version and am seeing the same issue with 3.63 and 3.62.
The data dump from the sdk response (with some attempt at removing sensitive data):
The text was updated successfully, but these errors were encountered: