Adding a Port to the Default Security Group

If you want all virtual machine instances that you create to have a specific port open by default, you can add that port to the default security group. The default security group is used if no other group is specified at launch time.

To specify a port to open by default, use the following command:

ec2-authorize default -p 80

The example above allows connections to port 80 on any virtual machine instance you launch, not just Traffic Manager instances. Allowing these connections may have unintended consequences for the security of your other virtual machines. For this reason, add the ports you need to task-specific security groups, and only apply those groups to the instances that need them.