Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an EC2 instance running, and it belongs to a security group. If I add a new allowed connection to that security group through AWS Management Console, should that change be effective immediately? Or perhaps only after restart of the instance?

In my case, I'm trying to allow access to PostgreSQL's default port (tcp 5432 5432, and I'm not sure if it's the EC2 firewall or PostgreSQL's settings that are refusing the connection.

share|improve this question

2 Answers 2

up vote 25 down vote accepted

Seems like yes (quoting AWS documentation):

You can modify rules for a group at any time. The new rules are automatically enforced for all running instances and instances launched in the future.

A simple test of disallowing access to a certain (previously accessible) port also confirmed this.

share|improve this answer
I tested this and it's true. – Elad May 24 '11 at 10:58

The 'listen_addresses' directive on postgresql.conf defaults to only. It should be changed to listen_addresses = '*' to accept connections from

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.