Difference between revisions of "Aws rds describe-db-instances"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
* <code>aws rds describe-db-instances | [[grep -w]] [[DBInstanceIdentifier]]</code>
 
* <code>aws rds describe-db-instances | [[grep -w]] [[DBInstanceIdentifier]]</code>
 
* <code>aws rds describe-db-instances | grep [[Address]]</code>
 
* <code>aws rds describe-db-instances | grep [[Address]]</code>
* <code>aws rds describe-db-instances | egrep -i "[[Address]]|[[SubnetId]]"</code>  
+
* <code>aws rds describe-db-instances | egrep -i "[[Address]]|[[SubnetIdentifier]]"</code>  
 
* <code>aws rds describe-db-instances | grep [[MultiAZ]]</code>
 
* <code>aws rds describe-db-instances | grep [[MultiAZ]]</code>
 
* <code>[[aws rds describe-db-instances --db-instance-identifier MY_DB_NAME]]</code>
 
* <code>[[aws rds describe-db-instances --db-instance-identifier MY_DB_NAME]]</code>

Revision as of 18:50, 29 September 2022

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/describe-db-instances.html

  • aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address'


aws rds describe-db-instances | grep -i PreferredMaintenanceWindow
aws rds describe-db-instances | grep -i PerformanceInsightsEnabled
aws rds describe-db-instances | grep -i StorageEncrypted
aws rds describe-db-instances | grep -i AutoMinorVersionUpgrade
aws rds describe-db-instances | grep -i PubliclyAccessible
aws rds describe-db-instances | egrep -i "Address|VpcId"


Replication

Storage data

arn:aws:rds:eu-central-1:4523523466:db:my_branches_name	postgres  my_branches_name	available

Version:

  • aws rds describe-db-instances | egrep -w "EngineVersion|DBInstanceIdentifier"

Example Output

{
    "DBInstances": [
        {
            "DBInstanceIdentifier": "mydbinstancecf",
            "DBInstanceClass": "db.t3.small",
            "Engine": "mysql",
            "DBInstanceStatus": "available",
            "MasterUsername": "masterawsuser",
            "Endpoint": {
                "Address": "mydbinstancecf.abcexample.us-east-1.rds.amazonaws.com",
                "Port": 3306,
                "HostedZoneId": "Z2R2ITUGPM61AM"
            },
            ...some output truncated...
        }
    ]
}
  • Engine: mysql, postgres

Related terms

See also

Advertising: