Skip to content

Commit e5cd88a

Browse files
committed
feat: added the required changes for the AWS 6.0 provider.
1 parent 5b17f94 commit e5cd88a

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

main.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ resource "aws_instance" "this" {
2323

2424
ami = local.ami
2525
instance_type = var.instance_type
26-
cpu_core_count = var.cpu_core_count
27-
cpu_threads_per_core = var.cpu_threads_per_core
2826
hibernation = var.hibernation
2927

3028
user_data = var.user_data
@@ -385,8 +383,6 @@ resource "aws_spot_instance_request" "this" {
385383

386384
ami = local.ami
387385
instance_type = var.instance_type
388-
cpu_core_count = var.cpu_core_count
389-
cpu_threads_per_core = var.cpu_threads_per_core
390386
hibernation = var.hibernation
391387

392388
user_data = var.user_data
@@ -415,7 +411,6 @@ resource "aws_spot_instance_request" "this" {
415411
wait_for_fulfillment = var.spot_wait_for_fulfillment
416412
spot_type = var.spot_type
417413
launch_group = var.spot_launch_group
418-
block_duration_minutes = var.spot_block_duration_minutes
419414
instance_interruption_behavior = var.spot_instance_interruption_behavior
420415
valid_until = var.spot_valid_until
421416
valid_from = var.spot_valid_from

variables.tf

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ variable "tenancy" {
231231
}
232232

233233
variable "user_data" {
234-
description = "The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead"
234+
description = "The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. This value is stored in plain-text, do not store sensitive information use user_data_base64 instead."
235235
type = string
236236
default = null
237237
}
@@ -278,18 +278,6 @@ variable "cpu_options" {
278278
default = {}
279279
}
280280

281-
variable "cpu_core_count" {
282-
description = "Sets the number of CPU cores for an instance" # This option is only supported on creation of instance type that support CPU Options https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html#cpu-options-supported-instances-values
283-
type = number
284-
default = null
285-
}
286-
287-
variable "cpu_threads_per_core" {
288-
description = "Sets the number of CPU threads per core for an instance (has no effect unless cpu_core_count is also set)"
289-
type = number
290-
default = null
291-
}
292-
293281
# Spot instance request
294282
variable "create_spot_instance" {
295283
description = "Depicts if the instance is a spot instance"
@@ -321,12 +309,6 @@ variable "spot_launch_group" {
321309
default = null
322310
}
323311

324-
variable "spot_block_duration_minutes" {
325-
description = "The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360)"
326-
type = number
327-
default = null
328-
}
329-
330312
variable "spot_instance_interruption_behavior" {
331313
description = "Indicates Spot instance behavior when it is interrupted. Valid values are `terminate`, `stop`, or `hibernate`"
332314
type = string

0 commit comments

Comments
 (0)