i want to expose my postgres instance to the world. to do that I need to setup a security group but i'm in a catch-22 situation. to create the security group I need the port number from the RDS instance, and to create the RDS instance I need the security group 🤷
b
bored-terabyte-19735
08/07/2020, 10:49 AM
This is maybe not helpful but:
I have my security group created before I create(d) the RDS instance.
In my case it was a permissions thing: The Security group was created by someone with appropirate rights on our aws account so were the subnets. and I just use SecurityGroup.get() to aquire it (even if no rds cluster is existant yet). So I think it is possible but what exactly you need to do I cannot say. 🙈
d
delightful-controller-41497
08/07/2020, 11:15 AM
It think it might! I'm using the postgres module for now but that means I have to make the database public. I'm going to try your solution next.