AWS101 - Failed to Authorize a Security Group Rule
Uploading...Agent error code #AWS101 indicates that the call adding a rule to the security group failed for a reason the agent could not attribute to a more specific cause. This is the operation that grants a user access.
More specific causes report their own codes: rejected credentials report #AWS001, a missing permission reports #AWS002, a missing group reports #AWS050, a rejected value reports #AWS051 and a rate limit reports #AWS003. Seeing this code means none of those applied.
Common causes include:
Steps to Resolve
Check the Rule Count Against the Quota
Reproduce the Call by Hand
From the agent host, with the values from the failed grant:
sudo -u knocknoc aws ec2 authorize-security-group-ingress \
--group-id <group-id> --protocol tcp --port <port> \
--cidr 192.0.2.1/32 --region <region>
The error this returns is the one the agent received.
Confirm Connectivity
The agent needs outbound HTTPS to ec2.<region>.amazonaws.com. If the host uses a proxy, confirm the agent's service environment carries the proxy variables.
Check the Agent Log
The full AWS response is written to the agent log and never to this message. Inspect the log entry recorded with the failed grant.