hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.81k stars 9.16k forks source link

[Enhancement]: aws_elasticache_replication_group auth_strategy #31710

Closed as-herzog closed 11 months ago

as-herzog commented 1 year ago

Description

Attempting to migrate from Redis AUTH to RBAC by removing auth_token and adding user_group_ids. This is resulting in an error:

Error: updating ElastiCache Replication Group <group>: InvalidParameterCombination: User group can't be associated with auth token enabled. Pass AuthStrategy delete to proceed.

Being able to pass an auth_token_auth_strategy of DELETE instead of hardcoding ROTATE would seemingly open up the ability for this switch. Could default to rotate and no-op if auth_token not set?

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_elasticache_replication_group" "default" {
   engine_version = "6.x"
   replication_group_id = "some_id"
   auth_token_auth_stragey = "delete"
   user_group_ids = ["some_id"]
}

References

https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html#Migrate-From-RBAC-to-Auth

https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/elasticache/replication_group.go#LL825C51-L825C51

Would you like to implement a fix?

No

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 11 months ago

This functionality has been released in v5.27.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 10 months ago

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.