Skip to content

Instantly share code, notes, and snippets.

@idvoretskyi
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save idvoretskyi/7617da53c1f621e25456 to your computer and use it in GitHub Desktop.

Select an option

Save idvoretskyi/7617da53c1f621e25456 to your computer and use it in GitHub Desktop.
def sec_rule(from_port, to_port, ip_protocol, cidr):
data_add = {'security_group_rule':{
'from_port': from_port,
'to_port': to_port,
'ip_protocol': ip_protocol,
'parent_group_id': sec_group_id,
'cidr': cidr,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment