Advertisement
eeluve

Untitled

Sep 10th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. getting this:
  2. Error: "replication_group_id": conflicts with subnet_group_name
  3.  
  4. on ../modules/redis/main.tf line 62, in resource "aws_elasticache_cluster" "cluster":
  5. 62: resource "aws_elasticache_cluster" "cluster" {
  6.  
  7. resource "aws_elasticache_cluster" "cluster" {
  8. cluster_id = "redis-test-cluster"
  9. replication_group_id = "${aws_elasticache_replication_group.redis_group.id}"
  10. subnet_group_name = "${aws_elasticache_subnet_group.sub_gr.name}"
  11. }
  12.  
  13. resource "aws_elasticache_subnet_group" "sub_gr" {
  14. name = "${var.environment}"
  15. description = "ElastiCache subnet group for ${var.environment}"
  16. subnet_ids = ["${var.subnet_id}"]
  17. }
  18.  
  19. resource "aws_elasticache_replication_group" "redis_group" {
  20. ILL OMIT alot of stuff here, just for the sake of the group name
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement