cloudtools / cloudtools/troposphere

SecurityGroupRule Validation Enhancement

Open
#641 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Both CidrIp and SourceSecurityGroup cannot be specified within a SecurityGroupRule. Would be a nice enhancement to fail during troposphere when this is detected.

Here is an example that should not pass validation:

```
import troposphere.ec2 as ec2

ec2.SecurityGroupRule(
IpProtocol="tcp",
FromPort="22",
ToPort="22",
CidrIp="0.0.0.0/0",
SourceSecurityGroupId=sg-12345
)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.