-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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]: Terraform state is not reflected correctly using cross-account ARN in aws_ec2_network_insights_path. #31123
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Is terraform having support for cross account ec2 network insight path resource for latest aws provider version, because I have the cross account setup done but its not working via terraform. The same thing works through console. The network path is taking same account id as source and destination even if the instances are in different account. |
This functionality has been released in v5.14.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
AWS Provider Version
4.46
Affected Resource(s)
aws_ec2_network_insights_path
aws_ec2_network_insights_analysis
Expected Behavior
Run terramform apply with the cross account ENI as source and destination (resource ARN)
The terraform state is populated correctly with correct values and mappings.
Re-run terraform apply will not replace the existing paths.
Actual Behavior
When uses cross account
aws_ec2_network_insights_path
features, the source/destination can reference the ARN instead.ie. "arn:aws:ec2:ap-southeast-2:account-id:network-interface/eni-id".
However, once the resource is created, the terraform state does not reference the ARN and fallback to the source account source and destination. This causes the Terraform state to become unsynchronized, at the next subsequent terraform apply, will cause re-creating those path with new resources using the provided cross-account ARN.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: