·
2 commits
to main
since this release
fix: allow auth_token_update_strategy=DELETE to migrate AUTH to RBAC/ACL Luis Miranda (@LuisMiranda10) (#274)
## what- Updated the ElastiCache replication group resource to allow
auth_token_update_strategy = "DELETE"whenauth_tokenis set tonull. - Fixed the migration path from AUTH token authentication to RBAC/ACL (
user_group_ids) by correctly forwarding theDELETEstrategy to AWS. - Preserved existing behavior for resources using
SETorROTATE, as well as resources without an authentication token.
why
- During migrations from AUTH to RBAC/ACL, AWS requires
auth_token_update_strategy = "DELETE"to remove an existing authentication token. - The module previously set
auth_token_update_strategytonullwheneverauth_tokenwasnull, preventing the provider from sending the requiredDELETEoperation. - As a result, the authentication token was never removed and Terraform applies failed, blocking the migration to RBAC/ACL.
- This change ensures that the
DELETEstrategy is passed through when explicitly requested, allowing successful token removal and completion of the migration process. - The change is backward compatible and does not alter behavior for existing configurations using the default strategy or an active
auth_token.
references
- Related to ElastiCache AUTH → RBAC/ACL migration support.
- Terraform validation (
terraform validate) and formatting (terraform fmt) completed successfully.