-
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]: aws_instance fails with subnet and launch template having security group #32614
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
This functionality has been released in v5.12.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.6
AWS Provider Version
5.8.0
Affected Resource(s)
aws_instance
Expected Behavior
One should be able to launch an EC2 instance with a launch template(having security group) in a subnet without configuring network interface block.
Actual Behavior
Terraform failed to create an EC2 instance with an AWS message that network interfaces and an instance-level security groups may not be specified together.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Replace name in aws_subnet data source and apply above configuration code to get error.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: