Skip to content

Commit

Permalink
Fix postgres default version
Browse files Browse the repository at this point in the history
  • Loading branch information
MD NURE ALAM Nahid committed Feb 8, 2024
1 parent c8bdaf9 commit b36f885
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions provider/aws/formation/resource/postgres.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,15 @@
"DBInstanceClass": { "Ref": "Class" },
"DBInstanceIdentifier": { "Ref": "AWS::StackName" },
"DBName": "app",
"DBParameterGroupName": { "Fn::If": [ "BlankParameterGroupName", { "Fn::If": [ "Version9",
"DBParameterGroupName": { "Fn::If": [ "BlankParameterGroupName", { "Fn::Sub": [ "default.postgres${Base}", {
"Base": { "Fn::If": [ "Version9",
{ "Fn::Join": [ ".", [
{ "Fn::Select": [ 0, { "Fn::Split": [ ".", { "Ref": "Version" } ] } ] },
{ "Fn::Select": [ 1, { "Fn::Split": [ ".", { "Ref": "Version" } ] } ] }
] ] },
{ "Fn::Select": [ 0, { "Fn::Split": [ ".", { "Ref": "Version" } ] } ] }
] },
] }
} ] },
{ "Ref": "ParameterGroupName" } ] },
"DBSubnetGroupName": { "Ref": "SubnetGroup" },
"DeletionProtection": { "Ref": "DeletionProtection" },
Expand Down

0 comments on commit b36f885

Please sign in to comment.