Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_elasticache_replication_group is broken for Redis in cluster mode #9596

Closed
d10i opened this issue Oct 25, 2016 · 2 comments
Closed

aws_elasticache_replication_group is broken for Redis in cluster mode #9596

d10i opened this issue Oct 25, 2016 · 2 comments

Comments

@d10i
Copy link

d10i commented Oct 25, 2016

The aws_elasticache_replication_group resource seems to be broken as terraform panics when running apply or import.

Terraform Version

0.7.5, 0.7.7 and 0.7.8-dev

Affected Resource(s)

  • aws_elasticache_replication_group

Terraform Configuration Files

resource "aws_elasticache_replication_group" "test" {
  replication_group_id = "test"
  replication_group_description = "Replication group for test"
  engine_version = "3.2.4"
  maintenance_window = "thu:03:00-thu:04:00"
  node_type = "cache.t2.micro"
  number_cache_clusters = "2"
  parameter_group_name = "default.redis3.2.cluster.on"
  automatic_failover_enabled = true
  port = 6379

  subnet_group_name = "my-subnet-group-name"
  security_group_ids = ["sg-7e7eb519"]

  snapshot_window = "02:00-03:00"
  snapshot_retention_limit = 7

  apply_immediately = true
  availability_zones = ["eu-west-1a", "eu-west-1b"]
}

Debug Output

https://gist.github.com/dario-simonetti/7b39f42a7f37643ef8b3d1de52d6c843

Panic Output

https://gist.github.com/dario-simonetti/7503f38754e30b4751902bd9462691e7

Expected Behavior

It should create an Amazon ElastiCache cluster and add the resource to the terraform.tfstate file.

Actual Behavior

It creates the Amazon ElastiCache cluster but it panics just after creation and the resource is never added to the terraform.tfstate file.

Steps to Reproduce

  1. terraform apply

Same happens with terraform import aws_elasticache_replication_group.test test when the resource already exists on AWS.

stack72 pushed a commit that referenced this issue Oct 25, 2016
…ter mode (#9601)

This is a fix for issue #9596.

Changes:
 - Adds new output attribute `configuration_endpoint_address`. Only
   used in Redis when in cluster mode.
 - Read the `snapshot_window` and `snapshot_retention_limit` from
   the
   replication group description instead of the cache cluster
   description.
 - Adds acceptance test and modifies an existing acceptance test to
   make sure that everything is still good in non-cluster mode
 - Updates docs to describe new output attribute
@stack72
Copy link
Contributor

stack72 commented Oct 25, 2016

Closed via #9601

@stack72 stack72 closed this as completed Oct 25, 2016
mathieuherbert pushed a commit to mathieuherbert/terraform that referenced this issue Oct 30, 2016
…ter mode (hashicorp#9601)

This is a fix for issue hashicorp#9596.

Changes:
 - Adds new output attribute `configuration_endpoint_address`. Only
   used in Redis when in cluster mode.
 - Read the `snapshot_window` and `snapshot_retention_limit` from
   the
   replication group description instead of the cache cluster
   description.
 - Adds acceptance test and modifies an existing acceptance test to
   make sure that everything is still good in non-cluster mode
 - Updates docs to describe new output attribute
grubernaut pushed a commit to hashicorp/terraform-provider-aws that referenced this issue Jun 9, 2017
…ter mode (#9601)

This is a fix for issue hashicorp/terraform#9596.

Changes:
 - Adds new output attribute `configuration_endpoint_address`. Only
   used in Redis when in cluster mode.
 - Read the `snapshot_window` and `snapshot_retention_limit` from
   the
   replication group description instead of the cache cluster
   description.
 - Adds acceptance test and modifies an existing acceptance test to
   make sure that everything is still good in non-cluster mode
 - Updates docs to describe new output attribute
@ghost
Copy link

ghost commented Apr 21, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants