Difference between revisions of "Aws rds describe-db-instances"
Jump to navigation
Jump to search
(4 intermediate revisions by 2 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]]"</code> | + | * <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 | egrep "DBInstanceIdentifier|[[AllocatedStorage]]"</code> | ||
* <code>aws rds describe-db-instances | [[grep -w]] [[DBInstanceIdentifier]]</code> | * <code>aws rds describe-db-instances | [[grep -w]] [[DBInstanceIdentifier]]</code> | ||
Line 9: | Line 9: | ||
* <code>aws rds describe-db-instances | egrep -iw "[[Address]]|[[SubnetIdentifier]]"</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> | ||
Line 15: | Line 16: | ||
* <code>aws rds describe-db-instances | [[jq -r]] '.DBInstances[0].Endpoint.Address'</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> | |
− | |||
− | |||
Line 80: | Line 79: | ||
* <code>[[aws rds describe-db-engine-versions]]</code> | * <code>[[aws rds describe-db-engine-versions]]</code> | ||
* <code>[[aws rds describe-db-security-groups]]</code> | * <code>[[aws rds describe-db-security-groups]]</code> | ||
+ | * <code>[[gcloud sql instances describe]]</code> | ||
== See also == | == See also == |
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: