Terraform module to provision an ElastiCache Redis Cluster
Support AWS Provider V5 Linter fixes
Maintenance
https://github.com/hashicorp/terraform-provider-aws/releases/tag/v5.0.0
Fix lint/format before workflows rollout
… with auth_token
auth_token
- Terraform plan will fail because it interprets user_group_ids = []
as specified valueBefore 0.46.0 I can do next:
module "redis" {
source = "cloudposse/elasticache-redis/aws"
version = "0.45.0"
auth_token = join("", random_password.auth_token[*].result)
}
After upgrade I need to do next, which I don't like:
module "redis" {
source = "cloudposse/elasticache-redis/aws"
version = "0.48.0"
# Confilicting parameters. Could be set only one of them
auth_token = join("", random_password.auth_token[*].result)
user_group_ids = null
}
So I just return previous logic
module "redis" {
source = "git::https://github.com/MaxymVlasov/terraform-aws-elasticache-redis?ref=83f0142d97123157482d05c62eaaeecbacfb71e1"
auth_token = join("", random_password.auth_token[*].result)
}
var.data_tiering_enabled
and plumb it through to the aws providerdata_tiering_enabled
true to provision our desired node type
Error: error creating ElastiCache Replication Group (bidder-redis-cluster-production): InvalidParameterCombination: When using the cache.r6gd.xlarge node type, you must enable data tiering.
status code: 400, request id: REDACTED
data_tiering_enabled
doesn't currently exist in the terraform-aws-elasticache-redis
moduleauto_minor_version_upgrade
parameterThis PR is to make sure description of replication group is configurable.
module "this"
as per example in README.md is not defined in localcloses #169
, if this PR closes a GitHub issue #169
log_delivery_configuration
aws_elasticache_replication_group
Test this out in your infrastructure
module "cloudwatch_logs" {
source = "cloudposse/cloudwatch-logs/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
context = module.this.context
}
module "redis" {
# source = "cloudposse/elasticache-redis/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=log_delivery"
log_delivery_configuration = [
{
destination = module.cloudwatch_logs.log_group_name
destination_type = "cloudwatch-logs"
log_format = "json"
log_type = "engine-log"
}
]
context = module.this.context
}