Skip to content

terraform-aws-ecs Error: Unsupported block type. Line: dynamic "inference_accelerator" #299

@martinmarchisio-darwoft

Description

@martinmarchisio-darwoft

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 plan

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions