Skip to contents

Modify security group rules

Usage

aws_vpc_sec_group_rules(id, rules, ...)

Arguments

id

(character) security group id

rules

list of rules to add/modify on the security group id

...

named parameters passed on to modify_security_group_rules

Examples

if (FALSE) { # interactive()
aws_vpc_sec_group_rules(
  id = "someid",
  rules = list(
    SecurityGroupRuleId = "sgr-07de36a0521f39c8b",
    SecurityGroupRule = list(
      IpProtocol = "tcp",
      FromPort = 22,
      ToPort = 22,
      CidrIpv4 = "3.3.3.3/32",
      Description = "added ssh port"
    )
  )
)
}