Skip to content

Commit 7fb9b16

Browse files
authored
remove deprecated variables
1 parent 5b17f94 commit 7fb9b16

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,8 @@ No modules.
199199
| <a name="input_associate_public_ip_address"></a> [associate\_public\_ip\_address](#input\_associate\_public\_ip\_address) | Whether to associate a public IP address with an instance in a VPC | `bool` | `null` | no |
200200
| <a name="input_availability_zone"></a> [availability\_zone](#input\_availability\_zone) | AZ to start the instance in | `string` | `null` | no |
201201
| <a name="input_capacity_reservation_specification"></a> [capacity\_reservation\_specification](#input\_capacity\_reservation\_specification) | Describes an instance's Capacity Reservation targeting option | `any` | `{}` | no |
202-
| <a name="input_cpu_core_count"></a> [cpu\_core\_count](#input\_cpu\_core\_count) | Sets the number of CPU cores for an instance | `number` | `null` | no |
203202
| <a name="input_cpu_credits"></a> [cpu\_credits](#input\_cpu\_credits) | The credit option for CPU usage (unlimited or standard) | `string` | `null` | no |
204203
| <a name="input_cpu_options"></a> [cpu\_options](#input\_cpu\_options) | Defines CPU options to apply to the instance at launch time. | `any` | `{}` | no |
205-
| <a name="input_cpu_threads_per_core"></a> [cpu\_threads\_per\_core](#input\_cpu\_threads\_per\_core) | Sets the number of CPU threads per core for an instance (has no effect unless cpu\_core\_count is also set) | `number` | `null` | no |
206204
| <a name="input_create"></a> [create](#input\_create) | Whether to create an instance | `bool` | `true` | no |
207205
| <a name="input_create_eip"></a> [create\_eip](#input\_create\_eip) | Determines whether a public EIP will be created and associated with the instance. | `bool` | `false` | no |
208206
| <a name="input_create_iam_instance_profile"></a> [create\_iam\_instance\_profile](#input\_create\_iam\_instance\_profile) | Determines whether an IAM instance profile is created or to use an existing IAM instance profile | `bool` | `false` | no |

main.tf

-6
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
@@ -201,8 +199,6 @@ resource "aws_instance" "ignore_ami" {
201199

202200
ami = local.ami
203201
instance_type = var.instance_type
204-
cpu_core_count = var.cpu_core_count
205-
cpu_threads_per_core = var.cpu_threads_per_core
206202
hibernation = var.hibernation
207203

208204
user_data = var.user_data
@@ -385,8 +381,6 @@ resource "aws_spot_instance_request" "this" {
385381

386382
ami = local.ami
387383
instance_type = var.instance_type
388-
cpu_core_count = var.cpu_core_count
389-
cpu_threads_per_core = var.cpu_threads_per_core
390384
hibernation = var.hibernation
391385

392386
user_data = var.user_data

variables.tf

-12
Original file line numberDiff line numberDiff line change
@@ -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"

wrappers/main.tf

-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ module "wrapper" {
88
associate_public_ip_address = try(each.value.associate_public_ip_address, var.defaults.associate_public_ip_address, null)
99
availability_zone = try(each.value.availability_zone, var.defaults.availability_zone, null)
1010
capacity_reservation_specification = try(each.value.capacity_reservation_specification, var.defaults.capacity_reservation_specification, {})
11-
cpu_core_count = try(each.value.cpu_core_count, var.defaults.cpu_core_count, null)
1211
cpu_credits = try(each.value.cpu_credits, var.defaults.cpu_credits, null)
1312
cpu_options = try(each.value.cpu_options, var.defaults.cpu_options, {})
14-
cpu_threads_per_core = try(each.value.cpu_threads_per_core, var.defaults.cpu_threads_per_core, null)
1513
create = try(each.value.create, var.defaults.create, true)
1614
create_eip = try(each.value.create_eip, var.defaults.create_eip, false)
1715
create_iam_instance_profile = try(each.value.create_iam_instance_profile, var.defaults.create_iam_instance_profile, false)

0 commit comments

Comments
 (0)