Error in redis module
- Dominant language
- HCL
- Stars
- 925
- Forks
- 930
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 5
Description
In the terraform module, [redis](https://registry.terraform.io/modules/rahulkhengare/redis/azurerm/0.0.1) referenced from issue
https://github.com/Azure/terraform/issues/16 there seems to be an issue related to the upgrade of terraform 0.11.14 to 0.12.
The following error message is received from the following input in 0.12 and not in 0.11.14
**Error**
```
on .terraform\modules\redis\rahulkhengare-terraform-azurerm-redis-ff49cbd\main.tf line 24, in resource "azurerm_redis_cache" "redis":
24: redis_configuration = {}
An argument named "redis_configuration" is not expected here. Did you mean to
define a block of type "redis_configuration"?
```
**Input**
```
module "redis" {
source = "rahulkhengare/redis/azurerm"
name = "jeremygraytestredis"
resource_group_name = "${var.az_rg_name}"
location = "${var.az_region_default}"
}
```
Found [this ](https://github.com/terraform-providers/terraform-provider-azurerm/commit/9738a21e588a4a220003e12fb2e72ea19f1138fe)and [this](https://github.com/terraform-providers/terraform-provider-azurerm/pull/3210), which seem related but I'm not quite sure.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the redis module referenced in the issue, especially main.tf line 24, and reproduce the error using Terraform 0.12 rather than 0.11.14. Read the linked Azure provider commit and pull request to understand the related change; done means the module accepts the shown input without the redis_configuration error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, redis, terraform
- Domain
- cloud, database, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100