-
-
Notifications
You must be signed in to change notification settings - Fork 631
Description
Description
This file modules/service/main.tf
has a Unsupported block type, please find below the error:
Versions
-
Module version [Required]:
-
Terraform version:
Terraform version:
Terraform v1.12.2
on linux_amd64
provider registry.terraform.io/hashicorp/aws v6.0.0
terraform providers
Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/aws] >= 6.0.0
├── provider[terraform.io/builtin/terraform]
└── module.ecs_cluster
├── provider[registry.terraform.io/hashicorp/aws] >= 4.66.1
├── module.service
│ ├── provider[registry.terraform.io/hashicorp/aws] >= 4.66.1
│ └── module.container_definition
│ └── provider[registry.terraform.io/hashicorp/aws] >= 4.66.1
└── module.cluster
└── provider[registry.terraform.io/hashicorp/aws] >= 4.66.1
Steps to reproduce the behavior:
no no terraform init and terraform planError: Unsupported block type
│
│ on .terraform/modules/ecs_cluster/modules/service/main.tf line 635, in resource "aws_ecs_task_definition" "this":
│ 635: dynamic "inference_accelerator" {
│
│ Blocks of type "inference_accelerator" are not expected here.
Expected behavior
No Errors that stop the deploy.
Actual behavior
Error: Unsupported block type
│
│ on .terraform/modules/ecs_cluster/modules/service/main.tf line 635, in resource "aws_ecs_task_definition" "this":
│ 635: dynamic "inference_accelerator" {
│
│ Blocks of type "inference_accelerator" are not expected here.
Terminal Output Screenshot(s)
Error: Unsupported block type
│
│ on .terraform/modules/ecs_cluster/modules/service/main.tf line 635, in resource "aws_ecs_task_definition" "this":
│ 635: dynamic "inference_accelerator" {
│
│ Blocks of type "inference_accelerator" are not expected here.
Additional context
Is it possible for you to fix it or comment such "inference_accelerator" lines in the code?
so that it can solve the problem