I figured it out.
Issue is jclouds only read security group ids not security group names when
in a VPC set up. From my code, I was setting security group names.
I think this might be related to the JCLOUDS-242 [1] commits [2, 3].
Glad you were able to figure this out, Nirmal! Do you think an email
describing the impact of the JCLOUDS-242 code change and required
modifications to your code would be helpful?
ap
[1] https://issues.apache.org/jira/browse/JCLOUDS-242
[2]
https://github.com/jclouds/jclouds/commit/f7dd08a2a5b78b0ed9cb2f46efd5b0939b254847
[3]
https://github.com/jclouds/jclouds/commit/eabdfe2d92fd5a9ba91595488f0d9d4189b73481