AWS050 - AWS Security Group Not Found
Uploading...Agent error code #AWS050 indicates that AWS could not find the security group configured on the knoc. AWS returns InvalidGroup.NotFound or InvalidGroupId.Malformed in this situation.
Common causes include:
Steps to Resolve
Confirm the Security Group ID
sg- value, not the group name
Paste it into the Security Group ID field of the Knocknoc backend configuration
Confirm the Region
Security group IDs are unique per region, so the same ID does not resolve from a different one.
Confirm the Account
Run the following from the agent host to see which account the credentials belong to:
sudo -u knocknoc aws sts get-caller-identity --region <region>
If the account differs from the one holding the security group, the credentials or the group is the wrong one.
Verify the Group Directly
sudo -u knocknoc aws ec2 describe-security-groups --group-ids sg-0123456789abcdef0 --region <region>
A successful call returns the group. InvalidGroup.NotFound confirms it is absent from that account and region.