Skip to content
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

[Bug]: The efs_file_system data source resource does not follow pagination #26863

Closed
avaines opened this issue Sep 19, 2022 · 3 comments · Fixed by #33336
Closed

[Bug]: The efs_file_system data source resource does not follow pagination #26863

avaines opened this issue Sep 19, 2022 · 3 comments · Fixed by #33336
Labels
bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/efs Issues and PRs that pertain to the efs service.
Milestone

Comments

@avaines
Copy link

avaines commented Sep 19, 2022

Terraform Core Version

latest

AWS Provider Version

latest

Affected Resource(s)

data.aws_efs_file_system

Expected Behavior

When an AWS account has more than 101 EFS resources defined you should be able to source the 101st resource based on its tags.

Actual Behavior

The AWS EFS Describe File Systems endpoint does not support filtering and this provider does so post-response. The endpoint is returning a paginated response which is not being followed.

Relevant Error/Panic Output Snippet

Error: Search returned 0 results, please revise so only one is returned
│
│   with data.aws_efs_file_system.myfiles,
│   on data_efs_file_system_myfiles.tf line 1, in data "aws_efs_file_system" "myfiles":
│    1: data "aws_efs_file_system" "myfiles" {

Terraform Configuration Files

data "aws_efs_file_system" "replica_myfiles" {
   tags = {
     Description       = "myfiles"
     Environment     = var.environment
     Application       = var.application_name
     ReplicState       = "next"
   }
}

Steps to Reproduce

Have 101 or more EFS resources in the AWS account and reference the oldest resource based on its tags.

Debug Output

No response

Panic Output

No response

Important Factoids

I am fairly certain this is a result of this resource not following pagination provided in the AWS endpoint response

References

This seems to have been similar issues for other services, for example
#4531

Would you like to implement a fix?

No

@avaines avaines added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Sep 19, 2022
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/efs Issues and PRs that pertain to the efs service. and removed bug Addresses a defect in current functionality. labels Sep 19, 2022
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. and removed needs-triage Waiting for first response or review from a maintainer. labels Oct 27, 2022
@github-actions github-actions bot added this to the v5.17.0 milestone Sep 8, 2023
@ewbankkit ewbankkit modified the milestones: v5.17.0, v5.16.1 Sep 8, 2023
@github-actions
Copy link

This functionality has been released in v5.16.1 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/efs Issues and PRs that pertain to the efs service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants