Skip to content
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

Auto scaling instance refresh fails with validation errors #2740

Closed
1 task done
alexoughton opened this issue Sep 11, 2023 · 3 comments
Closed
1 task done

Auto scaling instance refresh fails with validation errors #2740

alexoughton opened this issue Sep 11, 2023 · 3 comments

Comments

@alexoughton
Copy link

Hello,

A change in the AWS provider requires that "scale_in_protected_instances" be added to the "preferences" block of the instance_refresh. Please see this upstream issue:

hashicorp/terraform-provider-aws#33377

  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version 19.16.0

  • Terraform version: 1.3.4

  • Provider version(s):

  • provider registry.terraform.io/gavinbunney/kubectl v1.14.0
  • provider registry.terraform.io/hashicorp/aws v5.16.1
  • provider registry.terraform.io/hashicorp/cloudinit v2.3.2
  • provider registry.terraform.io/hashicorp/helm v2.11.0
  • provider registry.terraform.io/hashicorp/kubernetes v2.23.0
  • provider registry.terraform.io/hashicorp/local v2.4.0
  • provider registry.terraform.io/hashicorp/null v3.2.1
  • provider registry.terraform.io/hashicorp/template v2.2.0
  • provider registry.terraform.io/hashicorp/time v0.9.1
  • provider registry.terraform.io/hashicorp/tls v4.0.4
  • provider registry.terraform.io/terraform-aws-modules/http v2.4.1

Reproduction Code [Required]

Any code using a self_managed node group.

Steps to reproduce the behavior:

Any change which would trigger an instance refresh. The use of a specific "dynamic" in the module does not seem to permit the end-user to apply this value ourselves.

Expected behavior

The terraform will apply and the instances will refresh.

Actual behavior

╷
│ Error: starting Auto Scaling Group (qa-shared-linux-cluster-qa-shared-linux-cluster-additionalnode) instance refresh: ValidationError: 2 validation errors detected: Value '' at 'preferences.scaleInProtectedInstances' failed to satisfy constraint: Member must satisfy enum value set: [Ignore, Wait, Refresh]; Value '' at 'preferences.standbyInstances' failed to satisfy constraint: Member must satisfy enum value set: [Terminate, Ignore, Wait]
│ 	status code: 400, request id: dea79dce-77a5-40ff-a561-469c83389021
│
│   with module.smp-eks.module.eks_blueprints.module.aws_eks.module.self_managed_node_group["additionalnode"].aws_autoscaling_group.this[0],
│   on .terraform/modules/smp-eks.eks_blueprints.aws_eks/modules/self-managed-node-group/main.tf line 412, in resource "aws_autoscaling_group" "this":
│  412: resource "aws_autoscaling_group" "this" {
@bryantbiggs
Copy link
Member

this is due to the upstream bug hashicorp/terraform-provider-aws#33377

@bryantbiggs
Copy link
Member

@github-actions
Copy link

I'm going to lock this issue 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 similar to this, 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 Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants