-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
After changing to the AWS 6.0 provider we encountered errors over the "cpu_threads_per_core", "block_duration_minutes" and cpu_core_count" arguments in the resources "aws_spot_instance_request" and "aws_instance"
If your request is for a new feature, please use the Feature request
template.
- [ x] β I have searched the open/closed issues and my issue is not listed.
β οΈ Note
Before you submit an issue, please perform the following first:
- Remove the local
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
- Re-initialize the project root to pull down modules:
terraform init
- Re-attempt your terraform plan or apply and check if the issue still persists
Versions
-
Module version [Required]: 5.8.0
-
Terraform version:
vscode β .../matillion/vms/terraform/prd (main) $ terraform --version
Terraform v1.12.1
- provider registry.terraform.io/datadog/datadog v3.66.0
- provider registry.terraform.io/gitlabhq/gitlab v18.1.1
- provider registry.terraform.io/hashicorp/archive v2.7.1
- provider registry.terraform.io/hashicorp/aws v6.0.0
- provider registry.terraform.io/hashicorp/azuread v3.4.0
- provider registry.terraform.io/hashicorp/azurerm v4.34.0
- provider registry.terraform.io/hashicorp/null v3.2.4
- provider registry.terraform.io/hashicorp/tfe v0.67.0
- provider registry.terraform.io/hashicorp/time v0.13.1
- provider registry.terraform.io/hashicorp/tls v4.1.0
Reproduction Code [Required]
module "ec2" {
source = "terraform-aws-modules/ec2-instance/aws"
version = "5.8.0"
name = "${var.name}-${var.matillion_ami_version}"
ami = data.aws_ami.snowflake.id
instance_type = var.instance_type
iam_instance_profile = aws_iam_instance_profile.default.name
instance_initiated_shutdown_behavior = var.shutdown_behavior
monitoring = var.monitoring
vpc_security_group_ids = [module.sg.security_group_id]
subnet_id = var.subnet
ignore_ami_changes = var.ignore_ami_change
metadata_options = { "http_endpoint" : "enabled", "http_put_response_hop_limit" : 1, "http_tokens" : "required" }
enable_volume_tags = var.enable_volume_tags
volume_tags = var.volume_tags
tags = {
hostname = "${var.name}-${var.matillion_ami_version}"
}
}
Steps to reproduce the behavior:
upgrade to aws 6.0 provider
Expected behavior
No changes
Actual behavior
Unsupported arguments