Skip to content

Upgrade terraform-aws-iam module to version 6.0+ when stable #64

@Gezi-lzq

Description

@Gezi-lzq

Background

Currently, the terraform-aws-modules/terraform-aws-iam module is pinned to version 5.60.0 to avoid breaking changes introduced in version 6.0.

The breaking changes in version 6.0 include:

  • Module iam-role-for-service-accounts-eks was renamed (related to PR #585)
  • Other module name changes that could affect existing Terraform state

Goal

Upgrade to terraform-aws-modules/terraform-aws-iam version 6.0+ when it becomes stable and we can ensure a smooth migration path.

Current Status

Prerequisites for Upgrade

  • Version 6.0+ becomes stable with community feedback
  • Identify all modules affected by the name changes
  • Create migration guide for Terraform state changes
  • Test the upgrade in a development environment
  • Document any required state migration commands

Affected Files

  • kubernetes/aws/terraform/eks-addons/irsa.tf - Contains 3 modules using the IAM module:
    • Load Balancer Controller Role
    • EBS CSI Driver Role
    • Cluster Autoscaler Role

Migration Considerations

When upgrading, we may need to:

  1. Update module source references to new module names
  2. Potentially run terraform state mv commands to update state references
  3. Update documentation and examples
  4. Ensure backward compatibility or provide clear migration steps

Acceptance Criteria

  • Successful upgrade to IAM module version 6.0+
  • All existing configurations continue to work
  • Migration path is documented
  • No breaking changes for end users
  • All tests pass with the new version

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions