resource "aws_elasticache_user" "default" {
user_id = "defaultUserID"
user_name = "default"
access_string = "on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember"
engine = "REDIS"
passwords = ["abc"]
}
resource "aws_elasticache_user" "test" {
user_id = "testUserID"
user_name = "testuser"
access_string = "on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember"
engine = "REDIS"
passwords = ["abc"]
}
resource "aws_elasticache_user_group" "testgrp" {
engine = "REDIS"
user_group_id = "testgrpGroupId"
user_ids = [aws_elasticache_user.default.user_id,aws_elasticache_user.test.user_id]
lifecycle {
ignore_changes = [user_ids]
}
}
resource "aws_elasticache_user_group_association" "grpAssociation" {
user_group_id = aws_elasticache_user_group.testgrp.user_group_id
user_id = aws_elasticache_user.test.user_id
}
Error:
aws_elasticache_replication_group.redis: Creation complete after 17m53s [id=test-replication-grp]
Error: Provider produced inconsistent final plan
When expanding the plan for aws_elasticache_user_group.testgrp to include
new values learned so far during apply, provider
"registry.terraform.io/hashicorp/aws" produced an invalid new value for
.user_ids: planned set element cty.StringVal("defaultUserID") does not
correlate with any element in actual.
This is a bug in the provider, which should be reported in the provider's
own issue tracker.
Is there a way to fix this issue?