i am trying to create a outbound rule for a security group using aws cli. i used the following command
aws ec2 authorize-security-group-egress --cli-input-json http://ift.tt/1HH7hv8
which gave me error:
A client error (UnknownParameter) occurred when calling the AuthorizeSecurityGroupEgress operation: The parameter CidrIp is not recognized
The input json file auth_sec_grp_egress1.json is
{
"DryRun": false,
"GroupId": "sg-99b2f2fd",
"IpProtocol": "tcp",
"FromPort": 123,
"ToPort": 123,
"CidrIp": "172.24.102.126/32"
}
i looked at AWS documetation for the error code UnknownParameter , which says
An unknown or unrecognized parameter was supplied. Requests that could cause this error include supplying a misspelled parameter or a parameter that is not supported for the specified API version.
but the json i am supplying as input is generated by the command
aws ec2 authorize-security-group-egress --generate-cli-skeleton > auth_sec_grp_egress1.json
i am working with aws cli version - aws-cli/1.7.22 Python/2.7.9 Windows/7
Aucun commentaire:
Enregistrer un commentaire