-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
feat: use security-group module instead of resource #119
Conversation
/test all |
/test all |
Please explain why options |
@z0rc you should be able to provide existing security groups using Edit: It appears it worked for @z0rc (see #123 (comment)) |
@SweetOps @nitrocode Can we provide backward compatibility by doing something like locals {
security_groups = compact(concat(var.existing_security_groups, var.security_groups))
security_group_enabled = var.use_existing_security_groups == null ? var.security_group_enabled : ! var.use_existing_security_groups
}
variable "use_existing_security_groups" {
type = bool
description = <<-EOT
DEPRECATED: Use `var.security_group_enabled` instead.
HISTORICAL USAGE: Flag to enable/disable creation of Security Group in the module.
Set to `true` to disable Security Group creation and provide a list of existing security
Group IDs in `existing_security_groups` to place the cluster into"
EOT
default = null
}
variable "existing_security_groups" {
type = list(string)
default = []
description = <<_EOT
DEPRECATED: Use `var.security_groups` and set `var.security_group_enabled = false` instead.
HISTORICAL USAGE: List of existing Security Group IDs to place the cluster into.
Set `use_existing_security_groups` to `true` to enable using `existing_security_groups` as Security Groups for the cluster"
EOT
} |
Breaking changes have been added in the release notes https://github.com/cloudposse/terraform-aws-elasticache-redis/releases/tag/0.40.0 @Nuru , we could do this in a follow up PR, perhaps also update the README a bit more. |
what
why
references