Difference between revisions of "Aws rds describe-db-instances"
Jump to navigation
Jump to search
(56 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/describe-db-instances.html | https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/describe-db-instances.html | ||
+ | * <code>aws rds describe-db-instances | egrep -w "DBInstanceIdentifier|[[Address]]|[[PubliclyAccessible]]|[[DBInstanceStatus]]"</code> | ||
+ | * <code>aws rds describe-db-instances | egrep "DBInstanceIdentifier|[[AllocatedStorage]]"</code> | ||
* <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 -iw "[[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 | grep [[MasterUsername]]</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> | ||
* <code>[[aws rds describe-db-instances --output table]]</code> | * <code>[[aws rds describe-db-instances --output table]]</code> | ||
* <code>[[aws rds describe-db-instances --output text --query]] 'DBInstances[*].[DBInstanceArn,Engine,[[DBInstanceIdentifier]],[[DBInstanceStatus]]]'</code> | * <code>[[aws rds describe-db-instances --output text --query]] 'DBInstances[*].[DBInstanceArn,Engine,[[DBInstanceIdentifier]],[[DBInstanceStatus]]]'</code> | ||
+ | * <code>aws rds describe-db-instances | grep [[DBInstanceStatus]]</code> | ||
+ | |||
+ | * <code>aws rds describe-db-instances | [[jq -r]] '.DBInstances[0].Endpoint.Address'</code> | ||
+ | * <code>aws rds describe-db-instances | grep -i [[PreferredMaintenanceWindow]]</code> | ||
+ | * <code>aws rds describe-db-instances | grep -i [[PerformanceInsightsEnabled]]</code> | ||
+ | * <code>aws rds describe-db-instances | grep -i [[StorageEncrypted]]</code> | ||
+ | * <code>aws rds describe-db-instances | grep -i [[AutoMinorVersionUpgrade]]</code> | ||
+ | * <code>aws rds describe-db-instances | grep -i [[PubliclyAccessible]]</code> | ||
+ | * <code>aws rds describe-db-instances | egrep -i "Address|[[VpcId]]"</code> | ||
+ | |||
+ | |||
+ | |||
+ | == [[Replication]] == | ||
+ | * <code>[[aws rds]] describe-db-instances | grep [[ReadReplicaSourceDBInstanceIdentifier]]</code> | ||
+ | * <code>[[aws rds]] describe-db-instances | grep -w Status</code> | ||
+ | * <code>[[aws rds]] describe-db-instances | grep -w StatusType</code> | ||
+ | |||
+ | == [[Storage]] data == | ||
+ | * <code>[[aws rds]] describe-db-instances | egrep "DBInstanceIdentifier|[[AllocatedStorage]]"</code> | ||
+ | |||
+ | * <code>[[StorageType]]</code>: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html | ||
+ | ** Standard: magnetic (also known as standard) | ||
+ | ** [[io1]]: provisioned IOPS [[SSD]] (also known as io1) | ||
+ | ** [[gp2]]: General Purpose SSD (also known as gp2) | ||
+ | * <code>[[StorageEncrypted]], [[MaxAllocatedStorage]]</code> | ||
+ | |||
[[arn]]:aws:rds:eu-central-1:4523523466:db:my_branches_name postgres my_branches_name available | [[arn]]:aws:rds:eu-central-1:4523523466:db:my_branches_name postgres my_branches_name available | ||
+ | [[PostgreSQL version|Version]]: | ||
+ | * <code>aws rds describe-db-instances | egrep -w "[[EngineVersion]]|DBInstanceIdentifier"</code> | ||
− | Output | + | == Example Output == |
<pre> | <pre> | ||
{ | { | ||
Line 33: | Line 65: | ||
* <code>Engine: mysql, postgres</code> | * <code>Engine: mysql, postgres</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
− | * <code>[[ | + | * <code>[[aws rds describe-db-clusters]]</code> |
− | * <code>[[DBInstanceStatus]]</code> | + | * <code>[[DBINSTANCES]]</code>, <code>[[DBInstanceStatus]]</code>, <code>[[DBInstanceIdentifier]]</code>, <code>[[MasterUsername]]</code> |
− | |||
− | |||
* <code>[[aws cloudformation list-stacks --stack-status-filter]] CREATE_COMPLETE</code> | * <code>[[aws cloudformation list-stacks --stack-status-filter]] CREATE_COMPLETE</code> | ||
+ | * [[Connect to database]]: <code>[[psql]], [[mysql]]</code> | ||
+ | * <code>[[aws rds describe-db-proxies]]</code> | ||
+ | * <code>[[aws rds describe-db-log-files]]</code> | ||
* <code>[[aws list all]]</code> | * <code>[[aws list all]]</code> | ||
− | * [[ | + | * <code>[[aws cloudwatch get-metric-statistics]]</code> |
+ | * <code>[[aws redshift describe-clusters]]</code> | ||
+ | * <code>[[InvalidDBSubnetGroupStateFault]]</code> | ||
+ | * <code>[[aws rds describe-db-engine-versions]]</code> | ||
+ | * <code>[[aws rds describe-db-security-groups]]</code> | ||
+ | * <code>[[gcloud sql instances describe]]</code> | ||
== See also == | == See also == | ||
* {{aws rds}} | * {{aws rds}} | ||
+ | * {{Terraform RDS}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 11:29, 28 December 2022
aws rds describe-db-instances
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/describe-db-instances.html
aws rds describe-db-instances | egrep -w "DBInstanceIdentifier|Address|PubliclyAccessible|DBInstanceStatus"
aws rds describe-db-instances | egrep "DBInstanceIdentifier|AllocatedStorage"
aws rds describe-db-instances | grep -w DBInstanceIdentifier
aws rds describe-db-instances | grep Address
aws rds describe-db-instances | egrep -iw "Address|SubnetIdentifier"
aws rds describe-db-instances | grep MultiAZ
aws rds describe-db-instances | grep MasterUsername
aws rds describe-db-instances --db-instance-identifier MY_DB_NAME
aws rds describe-db-instances --output table
aws rds describe-db-instances --output text --query 'DBInstances[*].[DBInstanceArn,Engine,DBInstanceIdentifier,DBInstanceStatus]'
aws rds describe-db-instances | grep DBInstanceStatus
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[edit]
aws rds describe-db-instances | grep ReadReplicaSourceDBInstanceIdentifier
aws rds describe-db-instances | grep -w Status
aws rds describe-db-instances | grep -w StatusType
Storage data[edit]
aws rds describe-db-instances | egrep "DBInstanceIdentifier|AllocatedStorage"
StorageType
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.htmlStorageEncrypted, MaxAllocatedStorage
arn:aws:rds:eu-central-1:4523523466:db:my_branches_name postgres my_branches_name available
aws rds describe-db-instances | egrep -w "EngineVersion|DBInstanceIdentifier"
Example Output[edit]
{ "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[edit]
aws rds describe-db-clusters
DBINSTANCES
,DBInstanceStatus
,DBInstanceIdentifier
,MasterUsername
aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE
- Connect to database:
psql, mysql
aws rds describe-db-proxies
aws rds describe-db-log-files
aws list all
aws cloudwatch get-metric-statistics
aws redshift describe-clusters
InvalidDBSubnetGroupStateFault
aws rds describe-db-engine-versions
aws rds describe-db-security-groups
gcloud sql instances describe
See also[edit]
- AWS RDS:
AWS::RDS
,aws rds
[create-db-instance | create-db-instance-read-replica
|describe-db-instances
|modify-db-instance | modify-db-cluster | create-db-subnet-group
|delete-db-instance
|create-db-snapshot | aws rds create-db-parameter-group
],AllocatedStorage, FreeStorageSpace
- Terraform RDS, Terraform module: rds,
aws_db_instance, aws_rds_cluster
,aws_rds_cluster_instance, aws_db_parameter_group, aws_db_subnet_group
,aws_rds_global_cluster, aws_rds_cluster_parameter_group
Advertising: