Skip to content

fix: Remove deprecated variables #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

globart
Copy link

@globart globart commented Apr 23, 2025

Description

Removed mentions of deprecated cpu_core_count, cpu_threads_per_core and block_duration_minutes variables

Motivation and Context

Breaking Changes

No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@globart globart changed the title Remove deprecated variables fix: remove deprecated variables Apr 23, 2025
@globart globart changed the title fix: remove deprecated variables fix: Remove deprecated variables Apr 23, 2025
@eternityduck
Copy link

Nice

Copy link

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label May 25, 2025
@ait-artem-stankov
Copy link

@antonbabenko please check

@github-actions github-actions bot removed the stale label May 26, 2025
@bryantbiggs
Copy link
Member

we'll proceed once AWS provider v6 arrives - this was originally meant to arrive in April but seems to be taking a bit longer

@gurpreetatwal
Copy link

gurpreetatwal commented Jun 18, 2025

@bryantbiggs looks like the provider was just released today :D

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-6-upgrade

I'd recommend either merging this PR and any other updates for v6 or temporarily updating versions.tf to cap the provider at < 6

I got the misfortune of following a tutorial a few hours after the publish and running into errors 😅

@andrealiz-saildrone
Copy link

Any ETA on when this can be merged? Currently hitting this error when I try to do a plan against the module:

An argument named "cpu_core_count" is not expected here.

@bryantbiggs
Copy link
Member

Pin your required_providers, we'll deal with breaking changes when we can

@aristosvo
Copy link

aristosvo commented Jun 19, 2025

ℹ️ block_duration_minutes on aws_spot_instance_request seems also not longer supported

╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/ec2_module.ec2/main.tf line 418, in resource "aws_spot_instance_request" "this":
│  418:   block_duration_minutes         = var.spot_block_duration_minutes
│ 
│ An argument named "block_duration_minutes" is not expected here.
╵

Copy link

@mcksatish mcksatish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to remove block_duration_minutes and the variable spot_block_duration_minutes as well becuase these are also removed from the latest AWS provider update.

https://github.com/hashicorp/terraform-provider-aws/releases/tag/v6.0.0

resource/aws_ec2_spot_instance_request: Remove block_duration_minutes attribute (hashicorp/terraform-provider-aws#42060)

@mcksatish
Copy link

Pin your required_providers, we'll deal with breaking changes when we can

Terraform provider version used - 5.26.0
Facing these errors; I would appreciate if this PR can be merged sooner:


  on .terraform/main.tf line 145, in resource "aws_spot_instance_request" "this":
 145:   cpu_core_count       = var.cpu_core_count

An argument named "cpu_core_count" is not expected here.


Error: Unsupported argument

  on .terraform/main.tf line 146, in resource "aws_spot_instance_request" "this":
 146:   cpu_threads_per_core = var.cpu_threads_per_core

An argument named "cpu_threads_per_core" is not expected here.


Error: Unsupported argument

  on .terraform/main.tf line 173, in resource "aws_spot_instance_request" "this":
 173:   block_duration_minutes         = var.spot_block_duration_minutes

An argument named "block_duration_minutes" is not expected here.

@githubtlvmc
Copy link

githubtlvmc commented Jun 23, 2025

Facing same errors; I would appreciate if this PR can be merged sooner:

@bryantbiggs
Copy link
Member

we aren't merging this PR as it stands - we are working on making changes that are necessary with a breaking change - hopefully that lands today or tomorrow

@githubtlvmc
Copy link

githubtlvmc commented Jun 23, 2025

we aren't merging this PR as it stands - we are working on making changes that are necessary with a breaking change - hopefully that lands today or tomorrow

thanks!!!

@antonbabenko
Copy link
Member

This issue has been resolved in version 6.0.0 🎉

Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.