Closed joulaud closed 1 year ago
You can change the rules to process by setting them to an empty list like this:
module "ssh_security_group" {
source = "terraform-aws-modules/security-group/aws//modules/ssh"
version = "4.17.1"
description = "Allow ssh traffic to this instance"
name = "ssh"
vpc_id = (sensitive)
ingress_cidr_blocks = [
"0.0.0.0/0"
]
egress_rules = [] # <- leave this empty
}
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
Simple usage of your modules whitelist by default "all-all" as egress. This makes it complicated to use for composition of Security Group.
In my opinion all egress_rules on rules.tf should be empty.
Versions
Reproduction Code [Required]
Expected behavior
Only allow ingress ssh trafic when using this Security Group.
Actual behavior
Also allow all egress trafic.
Terminal Output Screenshot(s)
extract from
terraform state show
Additional context
I want to use your modules to compose easily several security-groups on some instances.