Create a gist now

Instantly share code, notes, and snippets.

@i0rek /consulagent.json Secret
Last active Jun 9, 2016

aws ec2 describe-security-groups --group-names consulagent | jq -c '.SecurityGroups[].IpPermissions[]'
{"ToPort":8300,"IpProtocol":"tcp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8300}
{"ToPort":8301,"IpProtocol":"tcp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8301}
{"ToPort":8302,"IpProtocol":"tcp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8302}
{"ToPort":8400,"IpProtocol":"tcp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8400}
{"ToPort":8500,"IpProtocol":"tcp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8500}
{"ToPort":8600,"IpProtocol":"tcp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8600}
{"ToPort":8301,"IpProtocol":"udp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8301}
{"ToPort":8302,"IpProtocol":"udp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8302}
{"ToPort":8600,"IpProtocol":"udp","IpRanges":[],"UserIdGroupPairs":[{"GroupName":"consulagent","UserId":"XXX","GroupId":"sg-XXX"}],"FromPort":8600}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment