terraform-aws-autoscaling icon indicating copy to clipboard operation
terraform-aws-autoscaling copied to clipboard

v6.0.0 of the AWS terraform provider removed `elastic_gpu_specifications` for `aws_launch_template`

Open charles-ferguson opened this issue 5 months ago β€’ 7 comments

Description

The latest release (v6.0.0) of the AWS terraform provider removed the elastic_gpu_specifications and elastic_inference_accelerator from aws_launch_template resource as the API deprecated by AWS. Therefore, using the 6.0.0 provider with this module causes the following error.

β•·
β”‚ Error: Unsupported block type
β”‚
β”‚   on .terraform/modules/autoscaling/main.tf line 102, in resource "aws_launch_template" "this":
β”‚  102:   dynamic "elastic_gpu_specifications" {
β”‚
β”‚ Blocks of type "elastic_gpu_specifications" are not expected here.
β•΅
β•·
β”‚ Error: Unsupported block type
β”‚
β”‚   on .terraform/modules/autoscaling/main.tf line 109, in resource "aws_launch_template" "this":
β”‚  109:   dynamic "elastic_inference_accelerator" {
β”‚
β”‚ Blocks of type "elastic_inference_accelerator" are not expected here.

Versions

  • Module version [Required]: v8.3.0

  • Terraform version: Terraform v1.5.6

  • Provider version(s): registry.terraform.io/hashicorp/aws v6.0.0

Reproduction Code [Required]

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 6.0"
    }
  }
}

provider "aws" {
  region = "us-west-2"
}

module "autoscaling" {
  source = "terraform-aws-modules/autoscaling/aws"
  version = "~> 8.3"

  name = "example-autoscaling-group"
}

Steps to reproduce the behavior:

  • Run terraform init
  • Run terraform plan

Expected behavior

Expect terraform to produce a plan without error

Actual behavior

Terraform code errors mentioning the two no longer supported block types

Terminal Output Screenshot(s)

β•·
β”‚ Error: Unsupported block type
β”‚
β”‚   on .terraform/modules/autoscaling/main.tf line 102, in resource "aws_launch_template" "this":
β”‚  102:   dynamic "elastic_gpu_specifications" {
β”‚
β”‚ Blocks of type "elastic_gpu_specifications" are not expected here.
β•΅
β•·
β”‚ Error: Unsupported block type
β”‚
β”‚   on .terraform/modules/autoscaling/main.tf line 109, in resource "aws_launch_template" "this":
β”‚  109:   dynamic "elastic_inference_accelerator" {
β”‚
β”‚ Blocks of type "elastic_inference_accelerator" are not expected here.
β•΅

Additional context

charles-ferguson avatar Jun 18 '25 22:06 charles-ferguson