For example, I have a main company AWS account one with security group-xxxxx. Now I have my personal aws with security group-yyyyy. The accounts are not related at all. Can I add accept group-yyyyy into the group-xxxxx thereby allowing my personal instances to access the companies instances?
18
votes
4 Answers
47
votes
14
votes
3
votes
I know this is quite old, but I found an even older AWS Developer Forums topic which discusses this and it seems possible with the EC2 API tools by using the ec2-authorize command (e.g., ec2-authorize your-account-security-group-id -P tcp -p 10050 -u other-aws-account-id -o other-account-security-group-id
). I've not yet tested it, but I will and then post my results here.