Skip to content

[Attribute Deprecation]: deprecate block_duration_minutes from aws_spot_instance_request resource #37613

Closed
@DanielRieske

Description

@DanielRieske

Description

The test TestAccEC2SpotInstanceRequest_withBlockDuration mentioned in #35747 is failing because the block_duration_minutes argument in RequestSpotInstancesInput has been deprecated.

You cannot set this argument anymore, if you do you get the following API respone:

api error InvalidParameterValue: BlockDurationMinutes is not a valid parameter.

After the SDKv2 migration of this resource here, I will create a PR for the removal of the argument so we can release it with the next major version.

This issue is purely for visibility for the argument at hand but we might need to review this resource altogether.
It's currently strongly discouraged to use RequestSpotInstances action within it.

Affected Resource(s) and/or Data Source(s)

aws_spot_instance_request

Potential Terraform Configuration

No response

References

No response

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

Labels

enhancementRequests to existing resources that expand the functionality or scope.service/ec2Issues and PRs that pertain to the ec2 service.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions