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]: AuthenticationMode for ElastiCache User #28471

Closed darkwizard242 closed 1 year ago

darkwizard242 commented 1 year ago

Description

AWS ElastiCache now provides the capability for IAM based authentication. An ElastiCache user can be created with AuthenticationMode type set to iam.

This may require a new attribute (something like authentication_mode in the aws_elasticache_user resource).

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

aws_elasticache_user

Potential Terraform Configuration

resource "aws_elasticache_user" "test" {
  user_id             = "testUserId"
  user_name           = "testUserName"
  access_string       = "on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember"
  authentication_mode = "iam"
  engine              = "REDIS"
  passwords           = ["password123456789"]
}

References

Announcement: https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-elasticache-supports-iam-authentication-redis-clusters/

Docs: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth-iam.html https://aws.amazon.com/blogs/database/simplify-managing-access-to-amazon-elasticache-for-redis-clusters-with-iam/

API reference: https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_CreateUser.html https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_AuthenticationMode.html

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

Wobbley commented 1 year ago

Related to: https://github.com/hashicorp/terraform-provider-aws/issues/28471 ?

github-actions[bot] commented 1 year 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.