Difference between revisions of "Aws rds"

From Wasya Wiki
Jump to: navigation, search
(Created page with " <pre> aws rds create-db-instance \ --engine sqlserver-se \ --db-instance-identifier mymsftsqlserver \ --allocated-storage 250 \ --db-instance-class db.t3.larg...")
 
Line 1: Line 1:
 +
 +
* From: https://www.howtoforge.com/how-to-manage-aws-rds-instance-using-aws-cli/
 +
 +
  aws rds describe-db-instances --profile rds_driver_1
 +
  aws rds describe-db-snapshots
 +
  aws rds describe-db-clusters
  
 
<pre>
 
<pre>
Line 11: Line 17:
 
     --manage-master-user-password \
 
     --manage-master-user-password \
 
     --backup-retention-period 3
 
     --backup-retention-period 3
 +
</pre>
 +
 +
<pre>
 +
aws rds create-db-instance --db-instance-identifier test-1 \
 +
  --db-instance-class db.t3.micro \
 +
  --engine mysql \
 +
  --master-username $dbuser \
 +
  --master-user-password $dbpasswd \
 +
  --allocated-storage 5
 
</pre>
 
</pre>

Revision as of 23:11, 28 March 2024

 aws rds describe-db-instances --profile rds_driver_1
 aws rds describe-db-snapshots
 aws rds describe-db-clusters
aws rds create-db-instance \
    --engine sqlserver-se \
    --db-instance-identifier mymsftsqlserver \
    --allocated-storage 250 \
    --db-instance-class db.t3.large \
    --vpc-security-group-ids mysecuritygroup \
    --db-subnet-group mydbsubnetgroup \
    --master-username masterawsuser \
    --manage-master-user-password \
    --backup-retention-period 3
aws rds create-db-instance --db-instance-identifier test-1 \
  --db-instance-class db.t3.micro \
  --engine mysql \
  --master-username $dbuser \
  --master-user-password $dbpasswd \
  --allocated-storage 5