-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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]: Provider crashes when provisioning or importing IPAM CIDRs #27424
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
terraform-provider-aws/internal/service/ec2/ipam_pool_cidr.go Lines 243 to 255 in d3e0b7e
terraform-provider-aws/internal/service/ec2/ipam_pool_cidr.go Lines 171 to 197 in d3e0b7e
Needs better error handling (via |
Update: Right now the current state of things is:
Feeling kinda stuck here |
@iwt-pjost I think you are correct in your hypothesis that it's a pagination issue. #27051 introduced pagination for the We are aiming to get this fixed for today's Terraform AWS Provider release. |
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.3
AWS Provider Version
4.35.0
Affected Resource(s)
aws_vpc_ipam_pool_cidr
Expected Behavior
I expected the pool to be created without errors
And here I expected the pool to be imported if it exists
terraform import "aws_vpc_ipam_pool_cidr.foo[\"10.10.10/10\"]" "10.10.10./10_ipam-pool-bar"
Actual Behavior
Output when creating the resource
On the good news, Terraform actually created the pool. Everything is fine and as desired. When checking the pool I get a
so I thought I could just import the existing resource but when I try to import it I get the message:
So now I am stuck and will probably have to edit the state json directly so that TF can continue working
Relevant Error/Panic Output Snippet
Terraform Configuration Files
resource "aws_vpc_ipam_pool_cidr" "foo" {
cidr = "10.10.10./10"
ipam_pool_id = ipam-pool-bar
}
Steps to Reproduce
terraform apply
.Other option
terraform import "aws_vpc_ipam_pool_cidr.foo[\"10.10.10./10\"]" 10.10.10./10_ipam-pool-bar
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No response
The text was updated successfully, but these errors were encountered: