Closed runtman closed 1 year ago
count = var.create_webserver_sg ? 1 : 0
is causing my issue.
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
I don't think this is a bug, if anything a misunderstanding?
I am following this example here:
https://github.com/terraform-aws-modules/terraform-aws-security-group/blob/master/examples/computed/main.tf
I have two files.
paris.tf
And then I have
webserver.tf
Inside
webserver.tf
Iam trying to usecomputed_ingress_with_source_security_group_id
to reference another security group made in this module.However on
terraform validate
I am faced with:I understand the error, but unsure how I get around it? It appears the example handles it fine, or am I misunderstanding something here?
Versions
Module version [Required]: "v5.1.0"
Terraform version: v1.1.7
Provider version(s): version = "~> 4.59.0"