terraform-aws-modules / terraform-aws-autoscaling

Terraform module to create AWS Auto Scaling resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws
Apache License 2.0
287 stars 552 forks source link

Linting get Error: Unsupported block type "mixed_instances_policy" when used inside resource aws_autoscaling_group #242

Closed DarwinJS closed 10 months ago

DarwinJS commented 10 months ago

Description

Terraform Linting complains with 'Error: Unsupported block type "mixed_instances_policy"' when used inside resource aws_autoscaling_group.

Yet the complete example in this project: https://github.com/terraform-aws-modules/terraform-aws-autoscaling/blob/master/examples/complete/main.tf#L328-L347 and many other sources show it to belong as a block under aws_autoscaling_group

Versions

Reproduction Code [Required]

Steps to reproduce the behavior:

Expected behavior

Actual behavior

Terminal Output Screenshot(s)

Additional context

github-actions[bot] commented 9 months ago

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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.