Skip to content

capacity_type introduced on aws_eks_node_group is forcing recreation in v3.19.0 #16547

@samcday

Description

@samcday

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider

Terraform 0.12.x
AWS provider v3.19.0

Affected Resource(s)

  • aws_eks_node_group

Terraform Configuration Files

https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/modules/node_groups/node_groups.tf#L1

Plan Output

  # module.eks.module.node_groups.aws_eks_node_group.workers["node-group-3"] must be replaced
+/- resource "aws_eks_node_group" "workers" {
      ~ ami_type        = "AL2_x86_64" -> (known after apply)
      ~ arn             = "<REDACTED>" -> (known after apply)
      + capacity_type   = "ON_DEMAND" # forces replacement
        cluster_name    = "<REDACTED>"
        disk_size       = 120
        <SNIP>
    }

Expected Behavior

Upgrading to terraform-provider-aws v3.19.0, which is a minor semver change, should not cause existing aws_eks_node_group should not cause existing resources to be replaced.

Actual Behavior

Existing node groups are being forced to recreate.

Steps to Reproduce

  1. Deploy an aws_eks_node_group with terraform-provider-aws v3.18.0
  2. Update terraform-provider-aws to v3.19.0
  3. terraform plan

References

v3.18.0...v3.19.0#diff-fbadf1462da63413e1e824058fc520a1711c7a8c0ec3a27266fc51adb96e94c4R50

Metadata

Metadata

Assignees

No one assigned

    Labels

    service/eksIssues and PRs that pertain to the eks service.upstreamAddresses functionality related to the cloud provider.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions