-
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]: The launch template created by Terraform defaults to the "EC2-Classic" setting #30295
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Relates #29480. |
Ok so I understood that 'security_group_names' parameter is deprecated and no longer supported. Also we have observed that 'availability_zone' parameter from placement group leads launch template to EC2 classic setting even when we don't specify 'security_group_names'. If we don't specify 'availability_zone' then it works normally and gets created without any error. So we think that 'availability_zone' parameter should be removed from terraform documentation along with 'security_group_names'. |
This functionality has been released in v5.0.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
0.12.31
AWS Provider Version
3.70.0
Affected Resource(s)
aws_launch_template
Expected Behavior
aws_launch_template should add vpc_security_group_ids under the vpc section and not in EC2 classic settings
Actual Behavior
For aws_launch template in Provider v3.70.0 there are two parameters availability_zone (Placement block) and security_group_names.
If we specify them in terraform, on AWS Console it defaults to EC2-Classic setting which is now deprecated. And on AWS Console it shows an error, but terraform doesn't have any validation for it.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply
Debug Output
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: