powerful-furniture-83753
04/21/2021, 12:12 PMconst vpc = new awsx.ec2.Vpc(`vpc`, {});
const rdsSecurityGroup = new aws.ec2.SecurityGroup(`sg`, {
vpcId: vpc.id,
ingress: [
{
protocol: "tcp",
fromPort: 5432,
toPort: 5432,
cidrBlocks: [vpc.vpc.cidrBlock],
},
],
});
const dbSubnets = new aws.rds.SubnetGroup(`rds-subnet`, {
subnetIds: vpc.privateSubnetIds,
});
const db = new aws.rds.Cluster(`db`, {
engineMode: "serverless",
dbSubnetGroupName: dbSubnets.id,
vpcSecurityGroupIds: [rdsSecurityGroup.id],
engine: "aurora-postgresql",
// .... password/name/db etc
});
And I have manually added an extra inbound rule in AWS on the security group in this code to the created security group to allow access from my IP. What am i missing?telnet <cluster> 5432
. Nothing seems to work. Doesn't even attempt to wake up the paused cluster.brave-planet-10645
04/21/2021, 12:31 PMpowerful-furniture-83753
04/21/2021, 12:42 PMsubnetIds: pulumi.all([vpc.publicSubnetIds, vpc.privateSubnetIds]).apply(([publicSubnetIds, privateSubnetIds]) => [...publicSubnetIds, ...privateSubnetIds]),
Still doesn't seem to work. I keep getting the impression the traffic is being blocked before it goes anywhere near the RDS instance.
I'll run through those docs and post back if i bump into anything.broad-dog-22463
04/21/2021, 2:08 PMpowerful-furniture-83753
04/21/2021, 2:23 PMbrave-planet-10645
04/21/2021, 3:11 PMbroad-dog-22463
04/21/2021, 3:11 PMpowerful-furniture-83753
04/21/2021, 3:12 PM