I have setup an EC2 instance in the private subnet and assigned it an IAM role with permissions to send messages to my SQS queue. Using AWS CLI I'm able to send messages properly but when I do it through a program(tried node and java) I'm getting "connection timedout" exceptions. As per the AWS docs, SDKs should automatically get credentials when using roles. Any clues where things could be going wrong ?
↧