I am preparing a script to update security group with myip and static string when ever i am running with different network connection .
sg.authorize_ingress(DryRun=False,IpPermissions=[{'IpProtocol': 'tcp','FromPort': 22,'ToPort': 22,'IpRanges': [{'CidrIp': 192.168.2.3/32}]}])
above authorize is working fine but if i add
sg.authorize_ingress(DryRun=False,IpPermissions=[{'IpProtocol': 'tcp','FromPort': 22,'ToPort': 22,'IpRanges': [{'CidrIp': 192.168.2.3/32,'Description': 'string'}]}])
As per the syntax if i apply description part it throws an error msg . whether it is possible to update each and every entry with description.
syntax:
'IpRanges': [
{
'CidrIp': 'string',
'Description': 'string'
}