-
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
[Bug]: Error: Plugin did not respond fatal error: out of memory during ReadDataSource #31570
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @albadrnasution 👋 Thank you for taking the time to raise this! I imagine that reading 8000 instances would use quite a bit of memory -- are you able to monitor the system's memory to verify whether this might be a case where the memory is actually being exhausted by the run? |
Hi @justinretzolk Thanks for the reply. I tried 2 times in different system. One inside our terraform container (kubernetes) and one on my Windows laptop. Both has ample memory. No discernable memory lacking during the run. The container has 2 GB memory request/limit and my laptop has 32GB RAM (some giga available during run). In windows, I can see that terraform-provider-aws_v4.67.0_x5.exe consume 694 MB before it failed with OOM. For comparison, I tried aws cli describe-instance command and it works as expected, even with 8000 ec2 instances. |
Hey @albadrnasution 👋 Thank you for getting back to me with that information! I'm going to get this marked as a bug so that the team can take a look into this when possible. Interestingly, I happened to see another issue raised that I would otherwise consider entirely unrelated, save for the fact that both of you are running |
This functionality has been released in v5.1.0 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! |
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. |
Terraform Core Version
1.3.2,1.4.6
AWS Provider Version
4.67.0_x5
Affected Resource(s)
data.aws_instance
Expected Behavior
AWS has 8000 instances of EC2 with the filter. Data should have been read.
Actual Behavior
Terraform failed with Error: Plugin did not respond
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform plan
terraform apply -auto-approve
Debug Output
No response
Panic Output
No response
Important Factoids
The aws_instance count to be read are quite big: 8000 instances.
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: