I want to create an Azure Redis Cache and want to give options to select from different SKUs. The allowed values argument is not supported and hence i cannot mention different SKUs. Is there any way to mention it?
I want to create an Azure Redis Cache and want to give options to select from different SKUs. The allowed values argument is not supported and hence i cannot mention different SKUs. Is there any way to mention it?
2
Answers
As you have known, the allowed values argument is not supported in terraform till now.
If you want to mention allowed values when you input the variable, you could use a variable description like this,
Or, as a workaround from this issue in Github. You could use a local map and key lookup and add a value checker.
Hope this could help you.
This will be available in Terraform 0.13. For your specific use case, this would look as below: