I have a rule for a security group that includes the following code.
ingress {
description = "1984 from xymon client"
from_port = local.xymon_port
to_port = local.xymon_port
protocol = local.tcp_proto
cidr_blocks = var.xymon_clients_cidr
The variable just contains a number of CIDR ranges coded as
“xxx.xxx.xxx.0/24”, “xxx.xxx.xxx.0/24” etc
When I add an extra CIDR range to the variable and run Terraform Plan it comes up with
- No changes. Your infrastructure matches the configuration.
The only way I can apply the change is to manually update it on AWS and then run
terraform apply -refresh-only
Is their a better way I can code this so it will recognise the updates?