AWS ec2: Fix quoting of --ip-permissions in revoke-security-group-egress example
Summary
Wraps the ip-permissions value in single quotes and removes the stray bracket in the revoke-security-group-egress CLI example.
Security assessment
Shell-quoting/syntax fix for a security group rule revocation example; it improves example correctness but does not change any security posture or document a vulnerability.
Evidence
+ --ip-permissions 'IpProtocol=tcp,FromPort=80,ToPort=80,IpRanges=[{CidrIp=10.0.0.0/16}]'
Diff
diff --git a/ec2/latest/devguide/example_ec2_RevokeSecurityGroupEgress_section.md b/ec2/latest/devguide/example_ec2_RevokeSecurityGroupEgress_section.md index bfab46c..f7b9e12 100644 --- a//ec2/latest/devguide/example_ec2_RevokeSecurityGroupEgress_section.md +++ b//ec2/latest/devguide/example_ec2_RevokeSecurityGroupEgress_section.md @@ -31 +31 @@ The following `revoke-security-group-egress` example command removes the rule th - --ip-permissions [{IpProtocol=tcp,FromPort=80,ToPort=80,IpRanges=[{CidrIp=10.0.0.0/16}] + --ip-permissions 'IpProtocol=tcp,FromPort=80,ToPort=80,IpRanges=[{CidrIp=10.0.0.0/16}]'