-
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
Import of aws_vpc_dhcp_options_association fails in v3.73.0 #22716
Comments
@kanor1306 Thanks for raising this issue. The bug is here: terraform-provider-aws/internal/service/ec2/vpc_dhcp_options_association.go Lines 157 to 162 in 6ff11f8
If the DHCP Options ID is
This is a regression and I will fix it ASAP. |
Great! Thanks for the quick action @ewbankkit |
This functionality has been released in v3.74.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! |
@ewbankkit I am experiencing this bug on 3.75.1 during an upgrade from If I pin the provider to 3.72.0, it passes a plan fine. On everything higher, it fails:
|
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
aws_provider: v3.73.0
terraform: v1.1.4
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
The actual issue is while importing resources:
terraform import module.vpc.aws_vpc_dhcp_options_association.dns_resolver <vpc-id>
Below manifest could create the needed resources for this import.
Debug Output
Panic Output
Expected Behavior
After executing
terraform import module.vpc.aws_vpc_dhcp_options_association.dns_resolver <vpc-id>
the resource should be imported.Actual Behavior
After executing
terraform import module.vpc.aws_vpc_dhcp_options_association.dns_resolver <vpc-id>
this error is received:Error: unexpected format for ID (default-vpc-0466d39c84de5c49b), expected DHCPOptionsID-VPCID
Verified that it does work in v3.72.0 of the provider
The text was updated successfully, but these errors were encountered: