Skip to content

cpu_core_count and cpu_threads_per_core attributes deprecation in favor of the cpu_options block #332

Closed
@schniber

Description

@schniber

Description

Terraform AWS Provider v4.66 deprecates the use of cpu_core_count and cpu_threads_per_core attributes at the aws_instance level which displays deprecation warnings when running the examples delivered with this module.

If your request is for a new feature, please use the Feature request template.

  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version [Required]: v5.0.0

  • Terraform version: v1.4.6

  • Provider version(s): v4.66.1

Reproduction Code [Required]

Run the complete example as per this TF module.

Steps to reproduce the behavior:

Expected behavior

Terraform plan and apply execute without deprecation warnings.

Actual behavior

│ Warning: Argument is deprecated

│ with module.ec2_complete.aws_instance.this[0],
│ on ../../main.tf line 24, in resource "aws_instance" "this":
│ 24: cpu_core_count = var.cpu_core_count

│ use 'cpu_options' argument instead

Terminal Output Screenshot(s)

Additional context

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