Open pendyalal opened 4 years ago
you need to use group id not group name in the self referential. names are for non vpc attached groups (classic) which aren't supported.
policies:
- name: default-sgs
resource: aws.security-group
filters:
- type: value
key: GroupName
value: default
op: eq
- type: ingress
IpProtocol: "-1"
IpRanges:
- CidrIp: "0.0.0.0/0"
actions:
- type: set-permissions
#remove-ingress: matched
add-ingress:
- IpPermissions:
-
FromPort: -1
IpProtocol: "-1"
ToPort: -1
UserIdGroupPairs:
** - GroupId: '{ GroupId }' **
@kapilt , sgId found in the filter can we use that Id dynamically in actions?
Describe the bug For default Security Groups while adding self Reference, throwing errors
To Reproduce policies:
Expected behavior
All traffic | All | All | sg-1111111 (default)
Background (please complete the following information):