I have created DBProxy with CFT. When I am trying to create the DB proxy its getting timed out error.
DB proxy CFT
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Template fot standard SQS",
"Resources": {
"DBProxy": {
"Type" : "AWS::RDS::DBProxy",
"Properties" : {
"Auth" : [ {
"ClientPasswordAuthType" : "POSTGRES_SCRAM_SHA_256",
"Description" : "DB proxy",
"IAMAuth" : "DISABLED",
"SecretArn" : "arn:aws:secretsmanager:us-west-2:......"
}
],
"DBProxyName" : "test",
"DebugLogging" : "true",
"EngineFamily" : "POSTGRESQL",
"IdleClientTimeout" : 1800,
"RoleArn" : "arn:aws:iam::.....",
"VpcSecurityGroupIds" : [ "sg-0" ],
"VpcSubnetIds" : [ "subnet-0f", "subnet-06" ]
}
}
},
"Outputs": {
"DBProxy": {
"Description": "DBProxy",
"Value": {
"Ref": "DBProxy"
}
}
}
}
DBProxyTargetGroup
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Template fot standard SQS",
"Resources": {
"DBProxyTargetGroup": {
"Type": "AWS::RDS::DBProxyTargetGroup",
"Properties": {
"DBClusterIdentifiers": [
"clustername"
],
"DBProxyName": "test",
"TargetGroupName": "default"
}
}
},
"Outputs": {
"DBProxyTargetGroup": {
"Description": "DBProxyTargetGroup",
"Value": {
"Ref": "DBProxyTargetGroup"
}
}
}
}
I am trying to connect my cluster but its giving timed out error.