AWS RDS COmmands
add-role-to-db-instance - Add Role to a RDS Instance .
aws rds add-role-to-db-instance --db-instance-identifier AWSTEST \
--role-arn arn:aws:iam::111122223333:role/rds-s3-integration-role \
----feature-name S3_INTEGRATION --region -us-west-2
copy-db-snapshot - Copy DB Snapshot from one RDS to other/ Convert Automatic to Manual Snapshot
Copies the specified DB snapshot. The source DB snapshot must be in the available
state. You can copy a snapshot from one AWS Region to
another. In that case, the AWS Region where you call the
CopyDBSnapshot
operation is the destination AWS Region for the DB snapshot copy.
- aws rds copy-db-snapshot --source-db-snapshot-identifier XXXXXXX --target-db-snapshot-identifier XXXXXXXXX -> Convert automatic one to manual
- aws rds copy-db-snapshot --source-db-snapshot-identifier XXXXXXX --target-db-snapshot-identifier XXXXXXXXX --tags XXXX --source-region XXXX --region XXXX
- aws rds describe-db-instances --region XXXXX --query 'DBInstances[*].[DBName,AllocatedStorage]' --output table
- aws rds describe-db-instances --region XXXXX --query 'DBInstances[*].[DBName,DBInstanceStatus,AllocatedStorage,EngineVersion,AvailabilityZone]' --output text/table
- aws rds describe-db-instances --region XXXXX--query 'DBInstances[*].[DBName,DBInstanceStatus,AllocatedStorage,EngineVersion,AvailabilityZone]' --output text|awk '{print $1}'
- aws rds describe-db-instances --region XXXXX --query 'DBInstances[*].[DBName,DBInstanceStatus,AllocatedStorage,EngineVersion,AvailabilityZone]' --output table|cut -d'|' -f2|grep -v '-'|grep -v DB|tr -d ' '
Comments
Post a Comment