aws::security-group-rules¶
Add ingress and egress rules to a security group.
Example¶
aws::security-group backend
vpc: $(aws::vpc vpc)
name: "backend"
description: "backend"
end
aws::security-group-rules backend
security-group: $(aws::security-group backend)
ingress
protocol: -1
security-group: $SELF.security-group
end
ingress
protocol: -1
security-group: $(aws::security-group master)
end
end
Attributes¶
Attribute | Description |
---|---|
security-group | The security group to apply rules to. (Required) |
ingress list subresource | A list of ingress rules to block inbound traffic.
|
egress list subresource | A list of egress rules to block outbound traffic.
|
keep-default-egress-rules | When set to true , the default egress rule is kept. |