Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 871 Bytes

aws-rds.md

File metadata and controls

47 lines (36 loc) · 871 Bytes

aws rds

db size in mb

SELECT table_schema "restaurantevents",
        ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
FROM information_schema.tables
GROUP BY table_schema;

cloudformation for dbparametergroup

"Parameters": {
  "MaxConnection": {
    "Type": "Number",
    "Description" : "Set max connection limit for the db instance"
  }
}

"Resources": {
  "DBParameterGroup": {
    "Type": "AWS::RDS::DBParameterGroup",
    "Properties": {
      "Description": "Parameter group for Restaurant RDS instances",
      "Family": "aurora5.6",
      "Parameters": {
        "max_connections": { "Ref": "MaxConnection" }
      }
    }
  }
}
---
:parameters:
 :MaxConnection: 100