Should capture ipv4_ipam_pool_id and ipv4_netmask_length
Actual Behavior
Only captures cidr_blockand vpc_id are captured and after the import the resource is being forced to be replaced based on the code that includes ipv4_ipam_pool_id and ipv4_netmask_length.
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.
Terraform Core Version
1.7.5
AWS Provider Version
5.50.0
Affected Resource(s)
Expected Behavior
Should capture
ipv4_ipam_pool_id
andipv4_netmask_length
Actual Behavior
Only captures
cidr_block
andvpc_id
are captured and after the import the resource is being forced to be replaced based on the code that includesipv4_ipam_pool_id
andipv4_netmask_length
.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform state show
for vpc_ipv4_cidr_block_association to show stateterraform state rm
to remove the vpc_ipv4_cidr_block_association from state fileterraform import aws_vpc_ipv4_cidr_block_association.example vpc-cidr-assoc-xxxxxxxx
to import to stateterraform state show
for vpc_ipv4_cidr_block_association to show stateOutput from step 5 should include missing fields
Debug Output
No response
Panic Output
No response
Important Factoids
I am not familiar enough with the code but I believe the gap to be that the read function does not set these fields. https://github.com/hashicorp/terraform-provider-aws/blob/fa57128f951048f704869c12f0e8ef7289da3860/internal/service/ec2/vpc_ipv4_cidr_block_association.go#L130-L134
References
No response
Would you like to implement a fix?
None