Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- data/lib/python3.10/site-packages/awscli/examples/rds/apply-pending-maintenance-action.rst +26 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/authorize-db-security-group-ingress.rst +27 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/backtrack-db-cluster.rst +7 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/copy-db-cluster-parameter-group.rst +21 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/copy-db-snapshot.rst +42 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/copy-option-group.rst +24 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-cluster-parameter-group.rst +21 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-cluster-snapshot.rst +39 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-cluster.rst +118 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-instance.rst +106 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-proxy-endpoint.rst +34 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-proxy.rst +47 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-snapshot.rst +39 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/create-db-subnet-group.rst +45 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/delete-blue-green-deployment.rst +137 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-cluster-endpoint.rst +27 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-cluster-snapshot.rst +38 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-cluster.rst +54 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-instance-automated-backup.rst +36 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-subnet-group.rst +9 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-account-attributes.rst +87 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-blue-green-deployments.rst +333 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-certificates.rst +52 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-backtracks.rst +31 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-endpoints.rst +58 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-parameter-groups.rst +44 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-parameters.rst +141 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-snapshot-attributes.rst +24 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-snapshots.rst +65 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-clusters.rst +141 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-instances.rst +26 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-log-files.rst +43 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-recommendations.rst +302 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-security-groups.rst +31 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-shard-groups.rst +34 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-event-categories.rst +67 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-events.rst +34 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-export-tasks.rst +40 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-global-clusters.rst +25 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-option-group-options.rst +61 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-orderable-db-instance-options.rst +46 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-source-regions.rst +141 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/describe-valid-db-instance-modifications.rst +95 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/generate-db-auth-token.rst +15 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/list-tags-for-resource.rst +23 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/modify-certificates.rst +23 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-cluster-endpoint.rst +28 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-cluster-parameter-group.rst +16 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-instance.rst +102 -0
- data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-parameter-group.rst +16 -0
data/lib/python3.10/site-packages/awscli/examples/rds/apply-pending-maintenance-action.rst
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To apply pending maintenance actions**
|
| 2 |
+
|
| 3 |
+
The following ``apply-pending-maintenance-action`` example applies the pending maintenance actions for a DB cluster. ::
|
| 4 |
+
|
| 5 |
+
aws rds apply-pending-maintenance-action \
|
| 6 |
+
--resource-identifier arn:aws:rds:us-east-1:123456789012:cluster:my-db-cluster \
|
| 7 |
+
--apply-action system-update \
|
| 8 |
+
--opt-in-type immediate
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"ResourcePendingMaintenanceActions": {
|
| 14 |
+
"ResourceIdentifier": "arn:aws:rds:us-east-1:123456789012:cluster:my-db-cluster",
|
| 15 |
+
"PendingMaintenanceActionDetails": [
|
| 16 |
+
{
|
| 17 |
+
"Action": "system-update",
|
| 18 |
+
"OptInStatus": "immediate",
|
| 19 |
+
"CurrentApplyDate": "2021-01-23T01:07:36.100Z",
|
| 20 |
+
"Description": "Upgrade to Aurora PostgreSQL 3.3.2"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
For more information, see `Maintaining a DB instance <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html>`__ in the *Amazon RDS User Guide* and `Maintaining an Amazon Aurora DB cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/authorize-db-security-group-ingress.rst
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To associate an AWS Identity and Access Management (IAM) role with a DB instance**
|
| 2 |
+
|
| 3 |
+
The following ``authorize-db-security-group-ingress`` example configures the default security group with an ingress rule for the CIDR IP range 192.0.2.0/24. ::
|
| 4 |
+
|
| 5 |
+
aws rds authorize-db-security-group-ingress \
|
| 6 |
+
--db-security-group-name default \
|
| 7 |
+
--cidrip 192.0.2.0/24
|
| 8 |
+
|
| 9 |
+
Output::
|
| 10 |
+
|
| 11 |
+
{
|
| 12 |
+
"DBSecurityGroup": {
|
| 13 |
+
"OwnerId": "123456789012",
|
| 14 |
+
"DBSecurityGroupName": "default",
|
| 15 |
+
"DBSecurityGroupDescription": "default",
|
| 16 |
+
"EC2SecurityGroups": [],
|
| 17 |
+
"IPRanges": [
|
| 18 |
+
{
|
| 19 |
+
"Status": "authorizing",
|
| 20 |
+
"CIDRIP": "192.0.2.0/24"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"DBSecurityGroupArn": "arn:aws:rds:us-east-1:111122223333:secgrp:default"
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
For more information, see `Authorizing Network Access to a DB Security Group from an IP Range <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithSecurityGroups.html#USER_WorkingWithSecurityGroups.Authorizing>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/backtrack-db-cluster.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To backtrack an Aurora DB cluster**
|
| 2 |
+
|
| 3 |
+
The following ``backtrack-db-cluster`` example backtracks the specified DB cluster sample-cluster to March 19, 2018, at 10 a.m. ::
|
| 4 |
+
|
| 5 |
+
aws rds backtrack-db-cluster --db-cluster-identifier sample-cluster --backtrack-to 2018-03-19T10:00:00+00:00
|
| 6 |
+
|
| 7 |
+
This command outputs a JSON block that acknowledges the change to the RDS resource.
|
data/lib/python3.10/site-packages/awscli/examples/rds/copy-db-cluster-parameter-group.rst
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To copy a DB cluster parameter group**
|
| 2 |
+
|
| 3 |
+
The following ``copy-db-cluster-parameter-group`` example makes a copy of a DB cluster parameter group. ::
|
| 4 |
+
|
| 5 |
+
aws rds copy-db-cluster-parameter-group \
|
| 6 |
+
--source-db-cluster-parameter-group-identifier mydbclusterpg \
|
| 7 |
+
--target-db-cluster-parameter-group-identifier mydbclusterpgcopy \
|
| 8 |
+
--target-db-cluster-parameter-group-description "Copy of mydbclusterpg parameter group"
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"DBClusterParameterGroup": {
|
| 14 |
+
"DBClusterParameterGroupName": "mydbclusterpgcopy",
|
| 15 |
+
"DBClusterParameterGroupArn": "arn:aws:rds:us-east-1:123456789012:cluster-pg:mydbclusterpgcopy",
|
| 16 |
+
"DBParameterGroupFamily": "aurora-mysql5.7",
|
| 17 |
+
"Description": "Copy of mydbclusterpg parameter group"
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
For more information, see `Copying a DB Cluster Parameter Group <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html#USER_WorkingWithParamGroups.CopyingCluster>`__ in the *Amazon Aurora Users Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/copy-db-snapshot.rst
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To copy a DB snapshot**
|
| 2 |
+
|
| 3 |
+
The following ``copy-db-snapshot`` example creates a copy of a DB snapshot. ::
|
| 4 |
+
|
| 5 |
+
aws rds copy-db-snapshot \
|
| 6 |
+
--source-db-snapshot-identifier rds:database-mysql-2019-06-06-08-38
|
| 7 |
+
--target-db-snapshot-identifier mydbsnapshotcopy
|
| 8 |
+
|
| 9 |
+
Output::
|
| 10 |
+
|
| 11 |
+
{
|
| 12 |
+
"DBSnapshot": {
|
| 13 |
+
"VpcId": "vpc-6594f31c",
|
| 14 |
+
"Status": "creating",
|
| 15 |
+
"Encrypted": true,
|
| 16 |
+
"SourceDBSnapshotIdentifier": "arn:aws:rds:us-east-1:123456789012:snapshot:rds:database-mysql-2019-06-06-08-38",
|
| 17 |
+
"MasterUsername": "admin",
|
| 18 |
+
"Iops": 1000,
|
| 19 |
+
"Port": 3306,
|
| 20 |
+
"LicenseModel": "general-public-license",
|
| 21 |
+
"DBSnapshotArn": "arn:aws:rds:us-east-1:123456789012:snapshot:mydbsnapshotcopy",
|
| 22 |
+
"EngineVersion": "5.6.40",
|
| 23 |
+
"OptionGroupName": "default:mysql-5-6",
|
| 24 |
+
"ProcessorFeatures": [],
|
| 25 |
+
"Engine": "mysql",
|
| 26 |
+
"StorageType": "io1",
|
| 27 |
+
"DbiResourceId": "db-ZI7UJ5BLKMBYFGX7FDENCKADC4",
|
| 28 |
+
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE",
|
| 29 |
+
"SnapshotType": "manual",
|
| 30 |
+
"IAMDatabaseAuthenticationEnabled": false,
|
| 31 |
+
"SourceRegion": "us-east-1",
|
| 32 |
+
"DBInstanceIdentifier": "database-mysql",
|
| 33 |
+
"InstanceCreateTime": "2019-04-30T15:45:53.663Z",
|
| 34 |
+
"AvailabilityZone": "us-east-1f",
|
| 35 |
+
"PercentProgress": 0,
|
| 36 |
+
"AllocatedStorage": 100,
|
| 37 |
+
"DBSnapshotIdentifier": "mydbsnapshotcopy"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
For more information, see `Copying a Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/copy-option-group.rst
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To copy an option group**
|
| 2 |
+
|
| 3 |
+
The following ``copy-option-group`` example makes a copy of an option group. ::
|
| 4 |
+
|
| 5 |
+
aws rds copy-option-group \
|
| 6 |
+
--source-option-group-identifier myoptiongroup \
|
| 7 |
+
--target-option-group-identifier new-option-group \
|
| 8 |
+
--target-option-group-description "My option group copy"
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"OptionGroup": {
|
| 14 |
+
"Options": [],
|
| 15 |
+
"OptionGroupName": "new-option-group",
|
| 16 |
+
"MajorEngineVersion": "11.2",
|
| 17 |
+
"OptionGroupDescription": "My option group copy",
|
| 18 |
+
"AllowsVpcAndNonVpcInstanceMemberships": true,
|
| 19 |
+
"EngineName": "oracle-ee",
|
| 20 |
+
"OptionGroupArn": "arn:aws:rds:us-east-1:123456789012:og:new-option-group"
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
For more information, see `Making a Copy of an Option Group <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithOptionGroups.html#USER_WorkingWithOptionGroups.Copy>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-cluster-parameter-group.rst
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To create a DB cluster parameter group**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-cluster-parameter-group`` example creates a DB cluster parameter group. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-cluster-parameter-group \
|
| 6 |
+
--db-cluster-parameter-group-name mydbclusterparametergroup \
|
| 7 |
+
--db-parameter-group-family aurora5.6 \
|
| 8 |
+
--description "My new cluster parameter group"
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"DBClusterParameterGroup": {
|
| 14 |
+
"DBClusterParameterGroupName": "mydbclusterparametergroup",
|
| 15 |
+
"DBParameterGroupFamily": "aurora5.6",
|
| 16 |
+
"Description": "My new cluster parameter group",
|
| 17 |
+
"DBClusterParameterGroupArn": "arn:aws:rds:us-east-1:123456789012:cluster-pg:mydbclusterparametergroup"
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
For more information, see `Creating a DB Cluster Parameter Group <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html#USER_WorkingWithParamGroups.CreatingCluster>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-cluster-snapshot.rst
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To create a DB cluster snapshot**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-cluster-snapshot`` example creates a DB cluster snapshot. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-cluster-snapshot \
|
| 6 |
+
--db-cluster-identifier mydbcluster \
|
| 7 |
+
--db-cluster-snapshot-identifier mydbclustersnapshot
|
| 8 |
+
|
| 9 |
+
Output::
|
| 10 |
+
|
| 11 |
+
{
|
| 12 |
+
"DBClusterSnapshot": {
|
| 13 |
+
"AvailabilityZones": [
|
| 14 |
+
"us-east-1a",
|
| 15 |
+
"us-east-1b",
|
| 16 |
+
"us-east-1e"
|
| 17 |
+
],
|
| 18 |
+
"DBClusterSnapshotIdentifier": "mydbclustersnapshot",
|
| 19 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 20 |
+
"SnapshotCreateTime": "2019-06-18T21:21:00.469Z",
|
| 21 |
+
"Engine": "aurora-mysql",
|
| 22 |
+
"AllocatedStorage": 1,
|
| 23 |
+
"Status": "creating",
|
| 24 |
+
"Port": 0,
|
| 25 |
+
"VpcId": "vpc-6594f31c",
|
| 26 |
+
"ClusterCreateTime": "2019-04-15T14:18:42.785Z",
|
| 27 |
+
"MasterUsername": "myadmin",
|
| 28 |
+
"EngineVersion": "5.7.mysql_aurora.2.04.2",
|
| 29 |
+
"LicenseModel": "aurora-mysql",
|
| 30 |
+
"SnapshotType": "manual",
|
| 31 |
+
"PercentProgress": 0,
|
| 32 |
+
"StorageEncrypted": true,
|
| 33 |
+
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE",
|
| 34 |
+
"DBClusterSnapshotArn": "arn:aws:rds:us-east-1:123456789012:cluster-snapshot:mydbclustersnapshot",
|
| 35 |
+
"IAMDatabaseAuthenticationEnabled": false
|
| 36 |
+
}
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
For more information, see `Creating a DB Cluster Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CreateSnapshotCluster.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-cluster.rst
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To create a MySQL 5.7--compatible DB cluster**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-cluster`` example creates a MySQL 5.7-compatible DB cluster using the default engine version. Replace the sample password ``secret99`` with a secure password. When you use the console to create a DB cluster, Amazon RDS automatically creates the writer DB instance for your DB cluster. However, when you use the AWS CLI to create a DB cluster, you must explicitly create the writer DB instance for your DB cluster using the ``create-db-instance`` AWS CLI command. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-cluster \
|
| 6 |
+
--db-cluster-identifier sample-cluster \
|
| 7 |
+
--engine aurora-mysql \
|
| 8 |
+
--engine-version 5.7 \
|
| 9 |
+
--master-username admin \
|
| 10 |
+
--master-user-password secret99 \
|
| 11 |
+
--db-subnet-group-name default \
|
| 12 |
+
--vpc-security-group-ids sg-0b9130572daf3dc16
|
| 13 |
+
|
| 14 |
+
Output::
|
| 15 |
+
|
| 16 |
+
{
|
| 17 |
+
"DBCluster": {
|
| 18 |
+
"DBSubnetGroup": "default",
|
| 19 |
+
"VpcSecurityGroups": [
|
| 20 |
+
{
|
| 21 |
+
"VpcSecurityGroupId": "sg-0b9130572daf3dc16",
|
| 22 |
+
"Status": "active"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"AllocatedStorage": 1,
|
| 26 |
+
"AssociatedRoles": [],
|
| 27 |
+
"PreferredBackupWindow": "09:12-09:42",
|
| 28 |
+
"ClusterCreateTime": "2023-02-27T23:21:33.048Z",
|
| 29 |
+
"DeletionProtection": false,
|
| 30 |
+
"IAMDatabaseAuthenticationEnabled": false,
|
| 31 |
+
"ReadReplicaIdentifiers": [],
|
| 32 |
+
"EngineMode": "provisioned",
|
| 33 |
+
"Engine": "aurora-mysql",
|
| 34 |
+
"StorageEncrypted": false,
|
| 35 |
+
"MultiAZ": false,
|
| 36 |
+
"PreferredMaintenanceWindow": "mon:04:31-mon:05:01",
|
| 37 |
+
"HttpEndpointEnabled": false,
|
| 38 |
+
"BackupRetentionPeriod": 1,
|
| 39 |
+
"DbClusterResourceId": "cluster-ANPAJ4AE5446DAEXAMPLE",
|
| 40 |
+
"DBClusterIdentifier": "sample-cluster",
|
| 41 |
+
"AvailabilityZones": [
|
| 42 |
+
"us-east-1a",
|
| 43 |
+
"us-east-1b",
|
| 44 |
+
"us-east-1e"
|
| 45 |
+
],
|
| 46 |
+
"MasterUsername": "master",
|
| 47 |
+
"EngineVersion": "5.7.mysql_aurora.2.11.1",
|
| 48 |
+
"DBClusterArn": "arn:aws:rds:us-east-1:123456789012:cluster:sample-cluster",
|
| 49 |
+
"DBClusterMembers": [],
|
| 50 |
+
"Port": 3306,
|
| 51 |
+
"Status": "creating",
|
| 52 |
+
"Endpoint": "sample-cluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 53 |
+
"DBClusterParameterGroup": "default.aurora-mysql5.7",
|
| 54 |
+
"HostedZoneId": "Z2R2ITUGPM61AM",
|
| 55 |
+
"ReaderEndpoint": "sample-cluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 56 |
+
"CopyTagsToSnapshot": false
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
**Example 2: To create a PostgreSQL--compatible DB cluster**
|
| 61 |
+
|
| 62 |
+
The following ``create-db-cluster`` example creates a PostgreSQL-compatible DB cluster using the default engine version. Replace the example password ``secret99`` with a secure password. When you use the console to create a DB cluster, Amazon RDS automatically creates the writer DB instance for your DB cluster. However, when you use the AWS CLI to create a DB cluster, you must explicitly create the writer DB instance for your DB cluster using the ``create-db-instance`` AWS CLI command. ::
|
| 63 |
+
|
| 64 |
+
aws rds create-db-cluster \
|
| 65 |
+
--db-cluster-identifier sample-pg-cluster \
|
| 66 |
+
--engine aurora-postgresql \
|
| 67 |
+
--master-username master \
|
| 68 |
+
--master-user-password secret99 \
|
| 69 |
+
--db-subnet-group-name default \
|
| 70 |
+
--vpc-security-group-ids sg-0b9130572daf3dc16
|
| 71 |
+
|
| 72 |
+
Output::
|
| 73 |
+
|
| 74 |
+
{
|
| 75 |
+
"DBCluster": {
|
| 76 |
+
"Endpoint": "sample-pg-cluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 77 |
+
"HttpEndpointEnabled": false,
|
| 78 |
+
"DBClusterMembers": [],
|
| 79 |
+
"EngineMode": "provisioned",
|
| 80 |
+
"CopyTagsToSnapshot": false,
|
| 81 |
+
"HostedZoneId": "Z2R2ITUGPM61AM",
|
| 82 |
+
"IAMDatabaseAuthenticationEnabled": false,
|
| 83 |
+
"AllocatedStorage": 1,
|
| 84 |
+
"VpcSecurityGroups": [
|
| 85 |
+
{
|
| 86 |
+
"VpcSecurityGroupId": "sg-0b9130572daf3dc16",
|
| 87 |
+
"Status": "active"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"DeletionProtection": false,
|
| 91 |
+
"StorageEncrypted": false,
|
| 92 |
+
"BackupRetentionPeriod": 1,
|
| 93 |
+
"PreferredBackupWindow": "09:56-10:26",
|
| 94 |
+
"ClusterCreateTime": "2023-02-27T23:26:08.371Z",
|
| 95 |
+
"DBClusterParameterGroup": "default.aurora-postgresql13",
|
| 96 |
+
"EngineVersion": "13.7",
|
| 97 |
+
"Engine": "aurora-postgresql",
|
| 98 |
+
"Status": "creating",
|
| 99 |
+
"DBClusterIdentifier": "sample-pg-cluster",
|
| 100 |
+
"MultiAZ": false,
|
| 101 |
+
"Port": 5432,
|
| 102 |
+
"DBClusterArn": "arn:aws:rds:us-east-1:123456789012:cluster:sample-pg-cluster",
|
| 103 |
+
"AssociatedRoles": [],
|
| 104 |
+
"DbClusterResourceId": "cluster-ANPAJ4AE5446DAEXAMPLE",
|
| 105 |
+
"PreferredMaintenanceWindow": "wed:03:33-wed:04:03",
|
| 106 |
+
"ReaderEndpoint": "sample-pg-cluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 107 |
+
"MasterUsername": "master",
|
| 108 |
+
"AvailabilityZones": [
|
| 109 |
+
"us-east-1a",
|
| 110 |
+
"us-east-1b",
|
| 111 |
+
"us-east-1c"
|
| 112 |
+
],
|
| 113 |
+
"ReadReplicaIdentifiers": [],
|
| 114 |
+
"DBSubnetGroup": "default"
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
For more information, see `Creating an Amazon Aurora DB cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.CreateInstance.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-instance.rst
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To create a DB instance**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-instance`` example uses the required options to launch a new DB instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-instance \
|
| 6 |
+
--db-instance-identifier test-mysql-instance \
|
| 7 |
+
--db-instance-class db.t3.micro \
|
| 8 |
+
--engine mysql \
|
| 9 |
+
--master-username admin \
|
| 10 |
+
--master-user-password secret99 \
|
| 11 |
+
--allocated-storage 20
|
| 12 |
+
|
| 13 |
+
Output::
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
"DBInstance": {
|
| 17 |
+
"DBInstanceIdentifier": "test-mysql-instance",
|
| 18 |
+
"DBInstanceClass": "db.t3.micro",
|
| 19 |
+
"Engine": "mysql",
|
| 20 |
+
"DBInstanceStatus": "creating",
|
| 21 |
+
"MasterUsername": "admin",
|
| 22 |
+
"AllocatedStorage": 20,
|
| 23 |
+
"PreferredBackupWindow": "12:55-13:25",
|
| 24 |
+
"BackupRetentionPeriod": 1,
|
| 25 |
+
"DBSecurityGroups": [],
|
| 26 |
+
"VpcSecurityGroups": [
|
| 27 |
+
{
|
| 28 |
+
"VpcSecurityGroupId": "sg-12345abc",
|
| 29 |
+
"Status": "active"
|
| 30 |
+
}
|
| 31 |
+
],
|
| 32 |
+
"DBParameterGroups": [
|
| 33 |
+
{
|
| 34 |
+
"DBParameterGroupName": "default.mysql5.7",
|
| 35 |
+
"ParameterApplyStatus": "in-sync"
|
| 36 |
+
}
|
| 37 |
+
],
|
| 38 |
+
"DBSubnetGroup": {
|
| 39 |
+
"DBSubnetGroupName": "default",
|
| 40 |
+
"DBSubnetGroupDescription": "default",
|
| 41 |
+
"VpcId": "vpc-2ff2ff2f",
|
| 42 |
+
"SubnetGroupStatus": "Complete",
|
| 43 |
+
"Subnets": [
|
| 44 |
+
{
|
| 45 |
+
"SubnetIdentifier": "subnet-########",
|
| 46 |
+
"SubnetAvailabilityZone": {
|
| 47 |
+
"Name": "us-west-2c"
|
| 48 |
+
},
|
| 49 |
+
"SubnetStatus": "Active"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"SubnetIdentifier": "subnet-########",
|
| 53 |
+
"SubnetAvailabilityZone": {
|
| 54 |
+
"Name": "us-west-2d"
|
| 55 |
+
},
|
| 56 |
+
"SubnetStatus": "Active"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"SubnetIdentifier": "subnet-########",
|
| 60 |
+
"SubnetAvailabilityZone": {
|
| 61 |
+
"Name": "us-west-2a"
|
| 62 |
+
},
|
| 63 |
+
"SubnetStatus": "Active"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"SubnetIdentifier": "subnet-########",
|
| 67 |
+
"SubnetAvailabilityZone": {
|
| 68 |
+
"Name": "us-west-2b"
|
| 69 |
+
},
|
| 70 |
+
"SubnetStatus": "Active"
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
"PreferredMaintenanceWindow": "sun:08:07-sun:08:37",
|
| 75 |
+
"PendingModifiedValues": {
|
| 76 |
+
"MasterUserPassword": "****"
|
| 77 |
+
},
|
| 78 |
+
"MultiAZ": false,
|
| 79 |
+
"EngineVersion": "5.7.22",
|
| 80 |
+
"AutoMinorVersionUpgrade": true,
|
| 81 |
+
"ReadReplicaDBInstanceIdentifiers": [],
|
| 82 |
+
"LicenseModel": "general-public-license",
|
| 83 |
+
"OptionGroupMemberships": [
|
| 84 |
+
{
|
| 85 |
+
"OptionGroupName": "default:mysql-5-7",
|
| 86 |
+
"Status": "in-sync"
|
| 87 |
+
}
|
| 88 |
+
],
|
| 89 |
+
"PubliclyAccessible": true,
|
| 90 |
+
"StorageType": "gp2",
|
| 91 |
+
"DbInstancePort": 0,
|
| 92 |
+
"StorageEncrypted": false,
|
| 93 |
+
"DbiResourceId": "db-5555EXAMPLE44444444EXAMPLE",
|
| 94 |
+
"CACertificateIdentifier": "rds-ca-2019",
|
| 95 |
+
"DomainMemberships": [],
|
| 96 |
+
"CopyTagsToSnapshot": false,
|
| 97 |
+
"MonitoringInterval": 0,
|
| 98 |
+
"DBInstanceArn": "arn:aws:rds:us-west-2:123456789012:db:test-mysql-instance",
|
| 99 |
+
"IAMDatabaseAuthenticationEnabled": false,
|
| 100 |
+
"PerformanceInsightsEnabled": false,
|
| 101 |
+
"DeletionProtection": false,
|
| 102 |
+
"AssociatedRoles": []
|
| 103 |
+
}
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
For more information, see `Creating an Amazon RDS DB Instance <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateDBInstance.html>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-proxy-endpoint.rst
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To create a DB proxy endpoint for an RDS database**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-proxy-endpoint`` example creates a DB proxy endpoint. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-proxy-endpoint \
|
| 6 |
+
--db-proxy-name proxyExample \
|
| 7 |
+
--db-proxy-endpoint-name "proxyep1" \
|
| 8 |
+
--vpc-subnet-ids subnetgroup1 subnetgroup2
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"DBProxyEndpoint": {
|
| 14 |
+
"DBProxyEndpointName": "proxyep1",
|
| 15 |
+
"DBProxyEndpointArn": "arn:aws:rds:us-east-1:123456789012:db-proxy-endpoint:prx-endpoint-0123a01b12345c0ab",
|
| 16 |
+
"DBProxyName": "proxyExample",
|
| 17 |
+
"Status": "creating",
|
| 18 |
+
"VpcId": "vpc-1234567",
|
| 19 |
+
"VpcSecurityGroupIds": [
|
| 20 |
+
"sg-1234",
|
| 21 |
+
"sg-5678"
|
| 22 |
+
],
|
| 23 |
+
"VpcSubnetIds": [
|
| 24 |
+
"subnetgroup1",
|
| 25 |
+
"subnetgroup2"
|
| 26 |
+
],
|
| 27 |
+
"Endpoint": "proxyep1.endpoint.proxy-ab0cd1efghij.us-east-1.rds.amazonaws.com",
|
| 28 |
+
"CreatedDate": "2023-04-05T16:09:33.452000+00:00",
|
| 29 |
+
"TargetRole": "READ_WRITE",
|
| 30 |
+
"IsDefault": false
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
For more information, see `Creating a proxy endpoint <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy-endpoints.html#rds-proxy-endpoints.CreatingEndpoint>`__ in the *Amazon RDS User Guide* and `Creating a proxy endpoint <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-proxy-endpoints.html#rds-proxy-endpoints.CreatingEndpoint>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-proxy.rst
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To create a DB proxy for an RDS database**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-proxy`` example creates a DB proxy. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-proxy \
|
| 6 |
+
--db-proxy-name proxyExample \
|
| 7 |
+
--engine-family MYSQL \
|
| 8 |
+
--auth Description="proxydescription1",AuthScheme="SECRETS",SecretArn="arn:aws:secretsmanager:us-west-2:123456789123:secret:secretName-1234f",IAMAuth="DISABLED",ClientPasswordAuthType="MYSQL_NATIVE_PASSWORD" \
|
| 9 |
+
--role-arn arn:aws:iam::123456789123:role/ProxyRole \
|
| 10 |
+
--vpc-subnet-ids subnetgroup1 subnetgroup2
|
| 11 |
+
|
| 12 |
+
Output::
|
| 13 |
+
|
| 14 |
+
{
|
| 15 |
+
"DBProxy": {
|
| 16 |
+
"DBProxyName": "proxyExample",
|
| 17 |
+
"DBProxyArn": "arn:aws:rds:us-east-1:123456789012:db-proxy:prx-0123a01b12345c0ab",
|
| 18 |
+
"EngineFamily": "MYSQL",
|
| 19 |
+
"VpcId": "vpc-1234567",
|
| 20 |
+
"VpcSecuritytGroupIds": [
|
| 21 |
+
"sg-1234",
|
| 22 |
+
"sg-5678",
|
| 23 |
+
"sg-9101"
|
| 24 |
+
],
|
| 25 |
+
"VpcSubnetIds": [
|
| 26 |
+
"subnetgroup1",
|
| 27 |
+
"subnetgroup2"
|
| 28 |
+
],
|
| 29 |
+
"Auth": "[
|
| 30 |
+
{
|
| 31 |
+
"Description": "proxydescription1",
|
| 32 |
+
"AuthScheme": "SECRETS",
|
| 33 |
+
"SecretArn": "arn:aws:secretsmanager:us-west-2:123456789123:secret:proxysecret1-Abcd1e",
|
| 34 |
+
"IAMAuth": "DISABLED"
|
| 35 |
+
}
|
| 36 |
+
]",
|
| 37 |
+
"RoleArn": "arn:aws:iam::12345678912:role/ProxyRole",
|
| 38 |
+
"Endpoint": "proxyExample.proxy-ab0cd1efghij.us-east-1.rds.amazonaws.com",
|
| 39 |
+
"RequireTLS": false,
|
| 40 |
+
"IdleClientTimeout": 1800,
|
| 41 |
+
"DebuggingLogging": false,
|
| 42 |
+
"CreatedDate": "2023-04-05T16:09:33.452000+00:00",
|
| 43 |
+
"UpdatedDate": "2023-04-13T01:49:38.568000+00:00"
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
For more information, see `Creating an RDS Proxy <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy-setup.html#rds-proxy-creating>`__ in the *Amazon RDS User Guide* and `Creating an RDS Proxy <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-proxy-setup.html#rds-proxy-creating>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-snapshot.rst
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To create a DB snapshot**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-snapshot`` example creates a DB snapshot. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-snapshot \
|
| 6 |
+
--db-instance-identifier database-mysql \
|
| 7 |
+
--db-snapshot-identifier mydbsnapshot
|
| 8 |
+
|
| 9 |
+
Output::
|
| 10 |
+
|
| 11 |
+
{
|
| 12 |
+
"DBSnapshot": {
|
| 13 |
+
"DBSnapshotIdentifier": "mydbsnapshot",
|
| 14 |
+
"DBInstanceIdentifier": "database-mysql",
|
| 15 |
+
"Engine": "mysql",
|
| 16 |
+
"AllocatedStorage": 100,
|
| 17 |
+
"Status": "creating",
|
| 18 |
+
"Port": 3306,
|
| 19 |
+
"AvailabilityZone": "us-east-1b",
|
| 20 |
+
"VpcId": "vpc-6594f31c",
|
| 21 |
+
"InstanceCreateTime": "2019-04-30T15:45:53.663Z",
|
| 22 |
+
"MasterUsername": "admin",
|
| 23 |
+
"EngineVersion": "5.6.40",
|
| 24 |
+
"LicenseModel": "general-public-license",
|
| 25 |
+
"SnapshotType": "manual",
|
| 26 |
+
"Iops": 1000,
|
| 27 |
+
"OptionGroupName": "default:mysql-5-6",
|
| 28 |
+
"PercentProgress": 0,
|
| 29 |
+
"StorageType": "io1",
|
| 30 |
+
"Encrypted": true,
|
| 31 |
+
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE",
|
| 32 |
+
"DBSnapshotArn": "arn:aws:rds:us-east-1:123456789012:snapshot:mydbsnapshot",
|
| 33 |
+
"IAMDatabaseAuthenticationEnabled": false,
|
| 34 |
+
"ProcessorFeatures": [],
|
| 35 |
+
"DbiResourceId": "db-AKIAIOSFODNN7EXAMPLE"
|
| 36 |
+
}
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
For more information, see `Creating a DB Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateSnapshot.html>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/create-db-subnet-group.rst
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To create a DB subnet group**
|
| 2 |
+
|
| 3 |
+
The following ``create-db-subnet-group`` example creates a DB subnet group called ``mysubnetgroup`` using existing subnets. ::
|
| 4 |
+
|
| 5 |
+
aws rds create-db-subnet-group \
|
| 6 |
+
--db-subnet-group-name mysubnetgroup \
|
| 7 |
+
--db-subnet-group-description "test DB subnet group" \
|
| 8 |
+
--subnet-ids '["subnet-0a1dc4e1a6f123456","subnet-070dd7ecb3aaaaaaa","subnet-00f5b198bc0abcdef"]'
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"DBSubnetGroup": {
|
| 14 |
+
"DBSubnetGroupName": "mysubnetgroup",
|
| 15 |
+
"DBSubnetGroupDescription": "test DB subnet group",
|
| 16 |
+
"VpcId": "vpc-0f08e7610a1b2c3d4",
|
| 17 |
+
"SubnetGroupStatus": "Complete",
|
| 18 |
+
"Subnets": [
|
| 19 |
+
{
|
| 20 |
+
"SubnetIdentifier": "subnet-070dd7ecb3aaaaaaa",
|
| 21 |
+
"SubnetAvailabilityZone": {
|
| 22 |
+
"Name": "us-west-2b"
|
| 23 |
+
},
|
| 24 |
+
"SubnetStatus": "Active"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"SubnetIdentifier": "subnet-00f5b198bc0abcdef",
|
| 28 |
+
"SubnetAvailabilityZone": {
|
| 29 |
+
"Name": "us-west-2d"
|
| 30 |
+
},
|
| 31 |
+
"SubnetStatus": "Active"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"SubnetIdentifier": "subnet-0a1dc4e1a6f123456",
|
| 35 |
+
"SubnetAvailabilityZone": {
|
| 36 |
+
"Name": "us-west-2b"
|
| 37 |
+
},
|
| 38 |
+
"SubnetStatus": "Active"
|
| 39 |
+
}
|
| 40 |
+
],
|
| 41 |
+
"DBSubnetGroupArn": "arn:aws:rds:us-west-2:0123456789012:subgrp:mysubnetgroup"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
For more information, see `Creating a DB Instance in a VPC <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.InstanceInVPC>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/delete-blue-green-deployment.rst
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To delete resources in green environment for an RDS for MySQL DB instance**
|
| 2 |
+
|
| 3 |
+
The following ``delete-blue-green-deployment`` example deletes the resources in a green environment for an RDS for MySQL DB instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds delete-blue-green-deployment \
|
| 6 |
+
--blue-green-deployment-identifier bgd-v53303651eexfake \
|
| 7 |
+
--delete-target
|
| 8 |
+
|
| 9 |
+
Output::
|
| 10 |
+
|
| 11 |
+
{
|
| 12 |
+
"BlueGreenDeployment": {
|
| 13 |
+
"BlueGreenDeploymentIdentifier": "bgd-v53303651eexfake",
|
| 14 |
+
"BlueGreenDeploymentName": "bgd-cli-test-instance",
|
| 15 |
+
"Source": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance",
|
| 16 |
+
"Target": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-green-rkfbpe",
|
| 17 |
+
"SwitchoverDetails": [
|
| 18 |
+
{
|
| 19 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance",
|
| 20 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-green-rkfbpe",
|
| 21 |
+
"Status": "AVAILABLE"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1",
|
| 25 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1-green-j382ha",
|
| 26 |
+
"Status": "AVAILABLE"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2",
|
| 30 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2-green-ejv4ao",
|
| 31 |
+
"Status": "AVAILABLE"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3",
|
| 35 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3-green-vlpz3t",
|
| 36 |
+
"Status": "AVAILABLE"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"Tasks": [
|
| 40 |
+
{
|
| 41 |
+
"Name": "CREATING_READ_REPLICA_OF_SOURCE",
|
| 42 |
+
"Status": "COMPLETED"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"Name": "DB_ENGINE_VERSION_UPGRADE",
|
| 46 |
+
"Status": "COMPLETED"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"Name": "CONFIGURE_BACKUPS",
|
| 50 |
+
"Status": "COMPLETED"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"Name": "CREATING_TOPOLOGY_OF_SOURCE",
|
| 54 |
+
"Status": "COMPLETED"
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"Status": "DELETING",
|
| 58 |
+
"CreateTime": "2022-02-25T21:18:51.183000+00:00",
|
| 59 |
+
"DeleteTime": "2022-02-25T22:25:31.331000+00:00"
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
For more information, see `Deleting a blue/green deployment <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments-deleting.html>`__ in the *Amazon RDS User Guide*.
|
| 64 |
+
|
| 65 |
+
**Example 2: To delete resources in green environment for an Aurora MySQL DB cluster**
|
| 66 |
+
|
| 67 |
+
The following ``delete-blue-green-deployment`` example deletes the resources in a green environment for an Aurora MySQL DB cluster. ::
|
| 68 |
+
|
| 69 |
+
aws rds delete-blue-green-deployment \
|
| 70 |
+
--blue-green-deployment-identifier bgd-wi89nwzglccsfake \
|
| 71 |
+
--delete-target
|
| 72 |
+
|
| 73 |
+
Output::
|
| 74 |
+
|
| 75 |
+
{
|
| 76 |
+
"BlueGreenDeployment": {
|
| 77 |
+
"BlueGreenDeploymentIdentifier": "bgd-wi89nwzglccsfake",
|
| 78 |
+
"BlueGreenDeploymentName": "my-blue-green-deployment",
|
| 79 |
+
"Source": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 80 |
+
"Target": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl",
|
| 81 |
+
"SwitchoverDetails": [
|
| 82 |
+
{
|
| 83 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 84 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl",
|
| 85 |
+
"Status": "AVAILABLE"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1",
|
| 89 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1-green-gpmaxf",
|
| 90 |
+
"Status": "AVAILABLE"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2",
|
| 94 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2-green-j2oajq",
|
| 95 |
+
"Status": "AVAILABLE"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3",
|
| 99 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3-green-mkxies",
|
| 100 |
+
"Status": "AVAILABLE"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint",
|
| 104 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint-green-4sqjrq",
|
| 105 |
+
"Status": "AVAILABLE"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint",
|
| 109 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint-green-gwwzlg",
|
| 110 |
+
"Status": "AVAILABLE"
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"Tasks": [
|
| 114 |
+
{
|
| 115 |
+
"Name": "CREATING_READ_REPLICA_OF_SOURCE",
|
| 116 |
+
"Status": "COMPLETED"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"Name": "DB_ENGINE_VERSION_UPGRADE",
|
| 120 |
+
"Status": "COMPLETED"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"Name": "CREATE_DB_INSTANCES_FOR_CLUSTER",
|
| 124 |
+
"Status": "COMPLETED"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"Name": "CREATE_CUSTOM_ENDPOINTS",
|
| 128 |
+
"Status": "COMPLETED"
|
| 129 |
+
}
|
| 130 |
+
],
|
| 131 |
+
"Status": "DELETING",
|
| 132 |
+
"CreateTime": "2022-02-25T21:12:00.288000+00:00",
|
| 133 |
+
"DeleteTime": "2022-02-25T22:29:11.336000+00:00"
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
For more information, see `Deleting a blue/green deployment <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments-deleting.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-cluster-endpoint.rst
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To delete a custom DB cluster endpoint**
|
| 2 |
+
|
| 3 |
+
The following ``delete-db-cluster-endpoint`` example deletes the specified custom DB cluster endpoint. ::
|
| 4 |
+
|
| 5 |
+
aws rds delete-db-cluster-endpoint \
|
| 6 |
+
--db-cluster-endpoint-identifier mycustomendpoint
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBClusterEndpointIdentifier": "mycustomendpoint",
|
| 12 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 13 |
+
"DBClusterEndpointResourceIdentifier": "cluster-endpoint-ANPAJ4AE5446DAEXAMPLE",
|
| 14 |
+
"Endpoint": "mycustomendpoint.cluster-custom-cnpexample.us-east-1.rds.amazonaws.com",
|
| 15 |
+
"Status": "deleting",
|
| 16 |
+
"EndpointType": "CUSTOM",
|
| 17 |
+
"CustomEndpointType": "READER",
|
| 18 |
+
"StaticMembers": [
|
| 19 |
+
"dbinstance1",
|
| 20 |
+
"dbinstance2",
|
| 21 |
+
"dbinstance3"
|
| 22 |
+
],
|
| 23 |
+
"ExcludedMembers": [],
|
| 24 |
+
"DBClusterEndpointArn": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:mycustomendpoint"
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
For more information, see `Amazon Aurora Connection Management <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.Endpoints.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-cluster-snapshot.rst
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To delete a DB cluster snapshot**
|
| 2 |
+
|
| 3 |
+
The following ``delete-db-cluster-snapshot`` example deletes the specified DB cluster snapshot. ::
|
| 4 |
+
|
| 5 |
+
aws rds delete-db-cluster-snapshot \
|
| 6 |
+
--db-cluster-snapshot-identifier mydbclustersnapshot
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBClusterSnapshot": {
|
| 12 |
+
"AvailabilityZones": [
|
| 13 |
+
"us-east-1a",
|
| 14 |
+
"us-east-1b",
|
| 15 |
+
"us-east-1e"
|
| 16 |
+
],
|
| 17 |
+
"DBClusterSnapshotIdentifier": "mydbclustersnapshot",
|
| 18 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 19 |
+
"SnapshotCreateTime": "2019-06-18T21:21:00.469Z",
|
| 20 |
+
"Engine": "aurora-mysql",
|
| 21 |
+
"AllocatedStorage": 0,
|
| 22 |
+
"Status": "available",
|
| 23 |
+
"Port": 0,
|
| 24 |
+
"VpcId": "vpc-6594f31c",
|
| 25 |
+
"ClusterCreateTime": "2019-04-15T14:18:42.785Z",
|
| 26 |
+
"MasterUsername": "myadmin",
|
| 27 |
+
"EngineVersion": "5.7.mysql_aurora.2.04.2",
|
| 28 |
+
"LicenseModel": "aurora-mysql",
|
| 29 |
+
"SnapshotType": "manual",
|
| 30 |
+
"PercentProgress": 100,
|
| 31 |
+
"StorageEncrypted": true,
|
| 32 |
+
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE",
|
| 33 |
+
"DBClusterSnapshotArn": "arn:aws:rds:us-east-1:123456789012:cluster-snapshot:mydbclustersnapshot",
|
| 34 |
+
"IAMDatabaseAuthenticationEnabled": false
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
For more information, see `Deleting a Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_DeleteSnapshot.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-cluster.rst
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To delete a DB instance in a DB cluster**
|
| 2 |
+
|
| 3 |
+
The following ``delete-db-instance`` example deletes the final DB instance in a DB cluster. You can't delete a DB cluster if it contains DB instances that aren't in the **deleting** state. You can't take a final snapshot when deleting a DB instance in a DB cluster. ::
|
| 4 |
+
|
| 5 |
+
aws rds delete-db-instance \
|
| 6 |
+
--db-instance-identifier database-3
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBInstance": {
|
| 12 |
+
"DBInstanceIdentifier": "database-3",
|
| 13 |
+
"DBInstanceClass": "db.r4.large",
|
| 14 |
+
"Engine": "aurora-postgresql",
|
| 15 |
+
"DBInstanceStatus": "deleting",
|
| 16 |
+
|
| 17 |
+
...output omitted...
|
| 18 |
+
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
For more information, see `Deleting a DB Instance in an Aurora DB Cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_DeleteInstance.html>`__ in the *Amazon Aurora User Guide*.
|
| 23 |
+
|
| 24 |
+
**Example 2: To delete a DB cluster**
|
| 25 |
+
|
| 26 |
+
The following ``delete-db-cluster`` example deletes the DB cluster named ``mycluster`` and takes a final snapshot named ``mycluster-final-snapshot``. The status of the DB cluster is **available** while the snapshot is being taken. To follow the progress of the deletion, use the ``describe-db-clusters`` CLI command. ::
|
| 27 |
+
|
| 28 |
+
aws rds delete-db-cluster \
|
| 29 |
+
--db-cluster-identifier mycluster \
|
| 30 |
+
--no-skip-final-snapshot \
|
| 31 |
+
--final-db-snapshot-identifier mycluster-final-snapshot
|
| 32 |
+
|
| 33 |
+
Output::
|
| 34 |
+
|
| 35 |
+
{
|
| 36 |
+
"DBCluster": {
|
| 37 |
+
"AllocatedStorage": 20,
|
| 38 |
+
"AvailabilityZones": [
|
| 39 |
+
"eu-central-1b",
|
| 40 |
+
"eu-central-1c",
|
| 41 |
+
"eu-central-1a"
|
| 42 |
+
],
|
| 43 |
+
"BackupRetentionPeriod": 7,
|
| 44 |
+
"DBClusterIdentifier": "mycluster",
|
| 45 |
+
"DBClusterParameterGroup": "default.aurora-postgresql10",
|
| 46 |
+
"DBSubnetGroup": "default-vpc-aa11bb22",
|
| 47 |
+
"Status": "available",
|
| 48 |
+
|
| 49 |
+
...output omitted...
|
| 50 |
+
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
For more information, see `Aurora Clusters with a Single DB Instance <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_DeleteInstance.html#USER_DeleteInstance.LastInstance>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-instance-automated-backup.rst
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To delete a replicated automated backup from a Region**
|
| 2 |
+
|
| 3 |
+
The following ``delete-db-instance-automated-backup`` example deletes the automated backup with the specified Amazon Resource Name (ARN). ::
|
| 4 |
+
|
| 5 |
+
aws rds delete-db-instance-automated-backup \
|
| 6 |
+
--db-instance-automated-backups-arn "arn:aws:rds:us-west-2:123456789012:auto-backup:ab-jkib2gfq5rv7replzadausbrktni2bn4example"
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBInstanceAutomatedBackup": {
|
| 12 |
+
"DBInstanceArn": "arn:aws:rds:us-east-1:123456789012:db:new-orcl-db",
|
| 13 |
+
"DbiResourceId": "db-JKIB2GFQ5RV7REPLZA4EXAMPLE",
|
| 14 |
+
"Region": "us-east-1",
|
| 15 |
+
"DBInstanceIdentifier": "new-orcl-db",
|
| 16 |
+
"RestoreWindow": {},
|
| 17 |
+
"AllocatedStorage": 20,
|
| 18 |
+
"Status": "deleting",
|
| 19 |
+
"Port": 1521,
|
| 20 |
+
"AvailabilityZone": "us-east-1b",
|
| 21 |
+
"VpcId": "vpc-########",
|
| 22 |
+
"InstanceCreateTime": "2020-12-04T15:28:31Z",
|
| 23 |
+
"MasterUsername": "admin",
|
| 24 |
+
"Engine": "oracle-se2",
|
| 25 |
+
"EngineVersion": "12.1.0.2.v21",
|
| 26 |
+
"LicenseModel": "bring-your-own-license",
|
| 27 |
+
"OptionGroupName": "default:oracle-se2-12-1",
|
| 28 |
+
"Encrypted": false,
|
| 29 |
+
"StorageType": "gp2",
|
| 30 |
+
"IAMDatabaseAuthenticationEnabled": false,
|
| 31 |
+
"BackupRetentionPeriod": 7,
|
| 32 |
+
"DBInstanceAutomatedBackupsArn": "arn:aws:rds:us-west-2:123456789012:auto-backup:ab-jkib2gfq5rv7replzadausbrktni2bn4example"
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
For more information, see `Deleting replicated backups <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html#AutomatedBackups.Delete>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/delete-db-subnet-group.rst
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To delete a DB subnet group**
|
| 2 |
+
|
| 3 |
+
The following ``delete-db-subnet-group`` example deletes the DB subnet group called ``mysubnetgroup``. ::
|
| 4 |
+
|
| 5 |
+
aws rds delete-db-subnet-group --db-subnet-group-name mysubnetgroup
|
| 6 |
+
|
| 7 |
+
This command produces no output.
|
| 8 |
+
|
| 9 |
+
For more information, see `Working with a DB Instance in a VPC <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-account-attributes.rst
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe account attributes**
|
| 2 |
+
|
| 3 |
+
The following ``describe-account-attributes`` example retrieves the attributes for the current AWS account. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-account-attributes
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"AccountQuotas": [
|
| 11 |
+
{
|
| 12 |
+
"Max": 40,
|
| 13 |
+
"Used": 4,
|
| 14 |
+
"AccountQuotaName": "DBInstances"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"Max": 40,
|
| 18 |
+
"Used": 0,
|
| 19 |
+
"AccountQuotaName": "ReservedDBInstances"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"Max": 100000,
|
| 23 |
+
"Used": 40,
|
| 24 |
+
"AccountQuotaName": "AllocatedStorage"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"Max": 25,
|
| 28 |
+
"Used": 0,
|
| 29 |
+
"AccountQuotaName": "DBSecurityGroups"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"Max": 20,
|
| 33 |
+
"Used": 0,
|
| 34 |
+
"AccountQuotaName": "AuthorizationsPerDBSecurityGroup"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"Max": 50,
|
| 38 |
+
"Used": 1,
|
| 39 |
+
"AccountQuotaName": "DBParameterGroups"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"Max": 100,
|
| 43 |
+
"Used": 3,
|
| 44 |
+
"AccountQuotaName": "ManualSnapshots"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"Max": 20,
|
| 48 |
+
"Used": 0,
|
| 49 |
+
"AccountQuotaName": "EventSubscriptions"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"Max": 50,
|
| 53 |
+
"Used": 1,
|
| 54 |
+
"AccountQuotaName": "DBSubnetGroups"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"Max": 20,
|
| 58 |
+
"Used": 1,
|
| 59 |
+
"AccountQuotaName": "OptionGroups"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"Max": 20,
|
| 63 |
+
"Used": 6,
|
| 64 |
+
"AccountQuotaName": "SubnetsPerDBSubnetGroup"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"Max": 5,
|
| 68 |
+
"Used": 0,
|
| 69 |
+
"AccountQuotaName": "ReadReplicasPerMaster"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"Max": 40,
|
| 73 |
+
"Used": 1,
|
| 74 |
+
"AccountQuotaName": "DBClusters"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"Max": 50,
|
| 78 |
+
"Used": 0,
|
| 79 |
+
"AccountQuotaName": "DBClusterParameterGroups"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"Max": 5,
|
| 83 |
+
"Used": 0,
|
| 84 |
+
"AccountQuotaName": "DBClusterRoles"
|
| 85 |
+
}
|
| 86 |
+
]
|
| 87 |
+
}
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-blue-green-deployments.rst
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To describe a blue/green deployment of an RDS DB instance after creation completes**
|
| 2 |
+
|
| 3 |
+
The following ``describe-blue-green-deployment`` example retrieves the details of a blue/green deployment after creation completes. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-blue-green-deployments \
|
| 6 |
+
--blue-green-deployment-identifier bgd-v53303651eexfake
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"BlueGreenDeployments": [
|
| 12 |
+
{
|
| 13 |
+
"BlueGreenDeploymentIdentifier": "bgd-v53303651eexfake",
|
| 14 |
+
"BlueGreenDeploymentName": "bgd-cli-test-instance",
|
| 15 |
+
"Source": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance",
|
| 16 |
+
"Target": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-green-rkfbpe",
|
| 17 |
+
"SwitchoverDetails": [
|
| 18 |
+
{
|
| 19 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance",
|
| 20 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-green-rkfbpe",
|
| 21 |
+
"Status": "AVAILABLE"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1",
|
| 25 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1-green-j382ha",
|
| 26 |
+
"Status": "AVAILABLE"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2",
|
| 30 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2-green-ejv4ao",
|
| 31 |
+
"Status": "AVAILABLE"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3",
|
| 35 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3-green-vlpz3t",
|
| 36 |
+
"Status": "AVAILABLE"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"Tasks": [
|
| 40 |
+
{
|
| 41 |
+
"Name": "CREATING_READ_REPLICA_OF_SOURCE",
|
| 42 |
+
"Status": "COMPLETED"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"Name": "DB_ENGINE_VERSION_UPGRADE",
|
| 46 |
+
"Status": "COMPLETED"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"Name": "CONFIGURE_BACKUPS",
|
| 50 |
+
"Status": "COMPLETED"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"Name": "CREATING_TOPOLOGY_OF_SOURCE",
|
| 54 |
+
"Status": "COMPLETED"
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"Status": "AVAILABLE",
|
| 58 |
+
"CreateTime": "2022-02-25T21:18:51.183000+00:00"
|
| 59 |
+
}
|
| 60 |
+
]
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
For more information, see `Viewing a blue/green deployment <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments-viewing.html>`__ in the *Amazon RDS User Guide*.
|
| 64 |
+
|
| 65 |
+
**Example 2: To describe a blue/green deployment for an Aurora MySQL DB cluster**
|
| 66 |
+
|
| 67 |
+
The following ``describe-blue-green-deployment`` example retrieves the details of a blue/green deployment. ::
|
| 68 |
+
|
| 69 |
+
aws rds describe-blue-green-deployments \
|
| 70 |
+
--blue-green-deployment-identifier bgd-wi89nwzglccsfake
|
| 71 |
+
|
| 72 |
+
Output::
|
| 73 |
+
|
| 74 |
+
{
|
| 75 |
+
"BlueGreenDeployments": [
|
| 76 |
+
{
|
| 77 |
+
"BlueGreenDeploymentIdentifier": "bgd-wi89nwzglccsfake",
|
| 78 |
+
"BlueGreenDeploymentName": "my-blue-green-deployment",
|
| 79 |
+
"Source": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 80 |
+
"Target": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl",
|
| 81 |
+
"SwitchoverDetails": [
|
| 82 |
+
{
|
| 83 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 84 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl",
|
| 85 |
+
"Status": "AVAILABLE"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1",
|
| 89 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1-green-gpmaxf",
|
| 90 |
+
"Status": "AVAILABLE"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2",
|
| 94 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2-green-j2oajq",
|
| 95 |
+
"Status": "AVAILABLE"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3",
|
| 99 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3-green-mkxies",
|
| 100 |
+
"Status": "AVAILABLE"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint",
|
| 104 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint-green-4sqjrq",
|
| 105 |
+
"Status": "AVAILABLE"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint",
|
| 109 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint-green-gwwzlg",
|
| 110 |
+
"Status": "AVAILABLE"
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"Tasks": [
|
| 114 |
+
{
|
| 115 |
+
"Name": "CREATING_READ_REPLICA_OF_SOURCE",
|
| 116 |
+
"Status": "COMPLETED"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"Name": "DB_ENGINE_VERSION_UPGRADE",
|
| 120 |
+
"Status": "COMPLETED"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"Name": "CREATE_DB_INSTANCES_FOR_CLUSTER",
|
| 124 |
+
"Status": "COMPLETED"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"Name": "CREATE_CUSTOM_ENDPOINTS",
|
| 128 |
+
"Status": "COMPLETED"
|
| 129 |
+
}
|
| 130 |
+
],
|
| 131 |
+
"Status": "AVAILABLE",
|
| 132 |
+
"CreateTime": "2022-02-25T21:12:00.288000+00:00"
|
| 133 |
+
}
|
| 134 |
+
]
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
For more information, see `Viewing a blue/green deployment <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments-viewing.html>`__ in the *Amazon Aurora User Guide*.
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
**Example 3: To describe a blue/green deployment for an Aurora MySQL cluster after switchover**
|
| 141 |
+
|
| 142 |
+
The following ``describe-blue-green-deployment`` example retrieves the details about a blue/green deployment after the green environment is promoted to be the production environment. ::
|
| 143 |
+
|
| 144 |
+
aws rds describe-blue-green-deployments \
|
| 145 |
+
--blue-green-deployment-identifier bgd-wi89nwzglccsfake
|
| 146 |
+
|
| 147 |
+
Output::
|
| 148 |
+
|
| 149 |
+
{
|
| 150 |
+
"BlueGreenDeployments": [
|
| 151 |
+
{
|
| 152 |
+
"BlueGreenDeploymentIdentifier": "bgd-wi89nwzglccsfake",
|
| 153 |
+
"BlueGreenDeploymentName": "my-blue-green-deployment",
|
| 154 |
+
"Source": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-old1",
|
| 155 |
+
"Target": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 156 |
+
"SwitchoverDetails": [
|
| 157 |
+
{
|
| 158 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-old1",
|
| 159 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 160 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1-old1",
|
| 164 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1",
|
| 165 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2-old1",
|
| 169 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2",
|
| 170 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3-old1",
|
| 174 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3",
|
| 175 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint-old1",
|
| 179 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint",
|
| 180 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint-old1",
|
| 184 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint",
|
| 185 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 186 |
+
}
|
| 187 |
+
],
|
| 188 |
+
"Tasks": [
|
| 189 |
+
{
|
| 190 |
+
"Name": "CREATING_READ_REPLICA_OF_SOURCE",
|
| 191 |
+
"Status": "COMPLETED"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"Name": "DB_ENGINE_VERSION_UPGRADE",
|
| 195 |
+
"Status": "COMPLETED"
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"Name": "CREATE_DB_INSTANCES_FOR_CLUSTER",
|
| 199 |
+
"Status": "COMPLETED"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"Name": "CREATE_CUSTOM_ENDPOINTS",
|
| 203 |
+
"Status": "COMPLETED"
|
| 204 |
+
}
|
| 205 |
+
],
|
| 206 |
+
"Status": "SWITCHOVER_COMPLETED",
|
| 207 |
+
"CreateTime": "2022-02-25T22:38:49.522000+00:00"
|
| 208 |
+
}
|
| 209 |
+
]
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
For more information, see `Viewing a blue/green deployment <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments-viewing.html>`__ in the *Amazon Aurora User Guide*.
|
| 213 |
+
|
| 214 |
+
**Example 4: To describe a combined blue/green deployment**
|
| 215 |
+
|
| 216 |
+
The following ``describe-blue-green-deployment`` example retrieves the details of a combined blue/green deployment. ::
|
| 217 |
+
|
| 218 |
+
aws rds describe-blue-green-deployments
|
| 219 |
+
|
| 220 |
+
Output::
|
| 221 |
+
|
| 222 |
+
{
|
| 223 |
+
"BlueGreenDeployments": [
|
| 224 |
+
{
|
| 225 |
+
"BlueGreenDeploymentIdentifier": "bgd-wi89nwzgfakelccs",
|
| 226 |
+
"BlueGreenDeploymentName": "my-blue-green-deployment",
|
| 227 |
+
"Source": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 228 |
+
"Target": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl",
|
| 229 |
+
"SwitchoverDetails": [
|
| 230 |
+
{
|
| 231 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster",
|
| 232 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl",
|
| 233 |
+
"Status": "AVAILABLE"
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1",
|
| 237 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1-green-gpmaxf",
|
| 238 |
+
"Status": "AVAILABLE"
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2",
|
| 242 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2-green-j2oajq",
|
| 243 |
+
"Status": "AVAILABLE"
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3",
|
| 247 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3-green-mkxies",
|
| 248 |
+
"Status": "AVAILABLE"
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint",
|
| 252 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint-green-4sqjrq",
|
| 253 |
+
"Status": "AVAILABLE"
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint",
|
| 257 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint-green-gwwzlg",
|
| 258 |
+
"Status": "AVAILABLE"
|
| 259 |
+
}
|
| 260 |
+
],
|
| 261 |
+
"Tasks": [
|
| 262 |
+
{
|
| 263 |
+
"Name": "CREATING_READ_REPLICA_OF_SOURCE",
|
| 264 |
+
"Status": "COMPLETED"
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"Name": "DB_ENGINE_VERSION_UPGRADE",
|
| 268 |
+
"Status": "COMPLETED"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"Name": "CREATE_DB_INSTANCES_FOR_CLUSTER",
|
| 272 |
+
"Status": "COMPLETED"
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"Name": "CREATE_CUSTOM_ENDPOINTS",
|
| 276 |
+
"Status": "COMPLETED"
|
| 277 |
+
}
|
| 278 |
+
],
|
| 279 |
+
"Status": "AVAILABLE",
|
| 280 |
+
"CreateTime": "2022-02-25T21:12:00.288000+00:00"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"BlueGreenDeploymentIdentifier": "bgd-v5330365fake1eex",
|
| 284 |
+
"BlueGreenDeploymentName": "bgd-cli-test-instance",
|
| 285 |
+
"Source": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-old1",
|
| 286 |
+
"Target": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance",
|
| 287 |
+
"SwitchoverDetails": [
|
| 288 |
+
{
|
| 289 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-old1",
|
| 290 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance",
|
| 291 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1-old1",
|
| 295 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1",
|
| 296 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2-old1",
|
| 300 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2",
|
| 301 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"SourceMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3-old1",
|
| 305 |
+
"TargetMember": "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3",
|
| 306 |
+
"Status": "SWITCHOVER_COMPLETED"
|
| 307 |
+
}
|
| 308 |
+
],
|
| 309 |
+
"Tasks": [
|
| 310 |
+
{
|
| 311 |
+
"Name": "CREATING_READ_REPLICA_OF_SOURCE",
|
| 312 |
+
"Status": "COMPLETED"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"Name": "DB_ENGINE_VERSION_UPGRADE",
|
| 316 |
+
"Status": "COMPLETED"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"Name": "CONFIGURE_BACKUPS",
|
| 320 |
+
"Status": "COMPLETED"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"Name": "CREATING_TOPOLOGY_OF_SOURCE",
|
| 324 |
+
"Status": "COMPLETED"
|
| 325 |
+
}
|
| 326 |
+
],
|
| 327 |
+
"Status": "SWITCHOVER_COMPLETED",
|
| 328 |
+
"CreateTime": "2022-02-25T22:33:22.225000+00:00"
|
| 329 |
+
}
|
| 330 |
+
]
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
For more information, see `Viewing a blue/green deployment <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments-viewing.html>`__ in the *Amazon RDS User Guide* and `Viewing a blue/green deployment <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments-viewing.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-certificates.rst
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe certificates**
|
| 2 |
+
|
| 3 |
+
The following ``describe-certificates`` example retrieves the details of the certificate associated with the user's default region. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-certificates
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"Certificates": [
|
| 11 |
+
{
|
| 12 |
+
"CertificateIdentifier": "rds-ca-ecc384-g1",
|
| 13 |
+
"CertificateType": "CA",
|
| 14 |
+
"Thumbprint": "2ee3dcc06e50192559b13929e73484354f23387d",
|
| 15 |
+
"ValidFrom": "2021-05-24T22:06:59+00:00",
|
| 16 |
+
"ValidTill": "2121-05-24T23:06:59+00:00",
|
| 17 |
+
"CertificateArn": "arn:aws:rds:us-west-2::cert:rds-ca-ecc384-g1",
|
| 18 |
+
"CustomerOverride": false
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"CertificateIdentifier": "rds-ca-rsa4096-g1",
|
| 22 |
+
"CertificateType": "CA",
|
| 23 |
+
"Thumbprint": "19da4f2af579a8ae1f6a0fa77aa5befd874b4cab",
|
| 24 |
+
"ValidFrom": "2021-05-24T22:03:20+00:00",
|
| 25 |
+
"ValidTill": "2121-05-24T23:03:20+00:00",
|
| 26 |
+
"CertificateArn": "arn:aws:rds:us-west-2::cert:rds-ca-rsa4096-g1",
|
| 27 |
+
"CustomerOverride": false
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"CertificateIdentifier": "rds-ca-rsa2048-g1",
|
| 31 |
+
"CertificateType": "CA",
|
| 32 |
+
"Thumbprint": "7c40cb42714b6fdb2b296f9bbd0e8bb364436a76",
|
| 33 |
+
"ValidFrom": "2021-05-24T21:59:00+00:00",
|
| 34 |
+
"ValidTill": "2061-05-24T22:59:00+00:00",
|
| 35 |
+
"CertificateArn": "arn:aws:rds:us-west-2::cert:rds-ca-rsa2048-g1",
|
| 36 |
+
"CustomerOverride": true,
|
| 37 |
+
"CustomerOverrideValidTill": "2061-05-24T22:59:00+00:00"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"CertificateIdentifier": "rds-ca-2019",
|
| 41 |
+
"CertificateType": "CA",
|
| 42 |
+
"Thumbprint": "d40ddb29e3750dffa671c3140bbf5f478d1c8096",
|
| 43 |
+
"ValidFrom": "2019-08-22T17:08:50+00:00",
|
| 44 |
+
"ValidTill": "2024-08-22T17:08:50+00:00",
|
| 45 |
+
"CertificateArn": "arn:aws:rds:us-west-2::cert:rds-ca-2019",
|
| 46 |
+
"CustomerOverride": false
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"DefaultCertificateForNewLaunches": "rds-ca-rsa2048-g1"
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
For more information, see `Using SSL/TLS to encrypt a connection to a DB instance <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html>`__ in the *Amazon RDS User Guide* and `Using SSL/TLS to encrypt a connection to a DB cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-backtracks.rst
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe backtracks for a DB cluster**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-cluster-backtracks`` example retrieves details about the specified DB cluster. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-cluster-backtracks \
|
| 6 |
+
--db-cluster-identifier mydbcluster
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBClusterBacktracks": [
|
| 12 |
+
{
|
| 13 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 14 |
+
"BacktrackIdentifier": "2f5f5294-0dd2-44c9-9f50-EXAMPLE",
|
| 15 |
+
"BacktrackTo": "2021-02-12T04:59:22Z",
|
| 16 |
+
"BacktrackedFrom": "2021-02-12T14:37:31.640Z",
|
| 17 |
+
"BacktrackRequestCreationTime": "2021-02-12T14:36:18.819Z",
|
| 18 |
+
"Status": "COMPLETED"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 22 |
+
"BacktrackIdentifier": "3c7a6421-af2a-4ea3-ae95-EXAMPLE",
|
| 23 |
+
"BacktrackTo": "2021-02-11T22:53:46Z",
|
| 24 |
+
"BacktrackedFrom": "2021-02-12T00:09:27.006Z",
|
| 25 |
+
"BacktrackRequestCreationTime": "2021-02-12T00:07:53.487Z",
|
| 26 |
+
"Status": "COMPLETED"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
For more information, see `Backtracking an Aurora DB cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Managing.Backtrack.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-endpoints.rst
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To describe DB cluster endpoints**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-cluster-endpoints`` example retrieves details for your DB cluster endpoints. The most common kinds of Aurora clusters have two endpoints. One endpoint has type ``WRITER``. You can use this endpoint for all SQL statements. The other endpoint has type ``READER``. You can use this endpoint only for SELECT and other read-only SQL statements. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-cluster-endpoints
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"DBClusterEndpoints": [
|
| 11 |
+
{
|
| 12 |
+
"DBClusterIdentifier": "my-database-1",
|
| 13 |
+
"Endpoint": "my-database-1.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 14 |
+
"Status": "creating",
|
| 15 |
+
"EndpointType": "WRITER"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"DBClusterIdentifier": "my-database-1",
|
| 19 |
+
"Endpoint": "my-database-1.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 20 |
+
"Status": "creating",
|
| 21 |
+
"EndpointType": "READER"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 25 |
+
"Endpoint": "mydbcluster.cluster-cnpexamle.us-east-1.rds.amazonaws.com",
|
| 26 |
+
"Status": "available",
|
| 27 |
+
"EndpointType": "WRITER"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 31 |
+
"Endpoint": "mydbcluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 32 |
+
"Status": "available",
|
| 33 |
+
"EndpointType": "READER"
|
| 34 |
+
}
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
**Example 2: To describe DB cluster endpoints of a single DB cluster**
|
| 39 |
+
|
| 40 |
+
The following ``describe-db-cluster-endpoints`` example retrieves details for the DB cluster endpoints of a single specified DB cluster. Aurora Serverless clusters have only a single endpoint with a type of ``WRITER``. ::
|
| 41 |
+
|
| 42 |
+
aws rds describe-db-cluster-endpoints \
|
| 43 |
+
--db-cluster-identifier serverless-cluster
|
| 44 |
+
|
| 45 |
+
Output::
|
| 46 |
+
|
| 47 |
+
{
|
| 48 |
+
"DBClusterEndpoints": [
|
| 49 |
+
{
|
| 50 |
+
"Status": "available",
|
| 51 |
+
"Endpoint": "serverless-cluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 52 |
+
"DBClusterIdentifier": "serverless-cluster",
|
| 53 |
+
"EndpointType": "WRITER"
|
| 54 |
+
}
|
| 55 |
+
]
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
For more information, see `Amazon Aurora Connection Management <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.Endpoints.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-parameter-groups.rst
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe DB cluster parameter groups**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-cluster-parameter-groups`` example retrieves details for your DB cluster parameter groups. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-cluster-parameter-groups
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"DBClusterParameterGroups": [
|
| 11 |
+
{
|
| 12 |
+
"DBClusterParameterGroupName": "default.aurora-mysql5.7",
|
| 13 |
+
"DBParameterGroupFamily": "aurora-mysql5.7",
|
| 14 |
+
"Description": "Default cluster parameter group for aurora-mysql5.7",
|
| 15 |
+
"DBClusterParameterGroupArn": "arn:aws:rds:us-east-1:123456789012:cluster-pg:default.aurora-mysql5.7"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"DBClusterParameterGroupName": "default.aurora-postgresql9.6",
|
| 19 |
+
"DBParameterGroupFamily": "aurora-postgresql9.6",
|
| 20 |
+
"Description": "Default cluster parameter group for aurora-postgresql9.6",
|
| 21 |
+
"DBClusterParameterGroupArn": "arn:aws:rds:us-east-1:123456789012:cluster-pg:default.aurora-postgresql9.6"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"DBClusterParameterGroupName": "default.aurora5.6",
|
| 25 |
+
"DBParameterGroupFamily": "aurora5.6",
|
| 26 |
+
"Description": "Default cluster parameter group for aurora5.6",
|
| 27 |
+
"DBClusterParameterGroupArn": "arn:aws:rds:us-east-1:123456789012:cluster-pg:default.aurora5.6"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"DBClusterParameterGroupName": "mydbclusterpg",
|
| 31 |
+
"DBParameterGroupFamily": "aurora-mysql5.7",
|
| 32 |
+
"Description": "My DB cluster parameter group",
|
| 33 |
+
"DBClusterParameterGroupArn": "arn:aws:rds:us-east-1:123456789012:cluster-pg:mydbclusterpg"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"DBClusterParameterGroupName": "mydbclusterpgcopy",
|
| 37 |
+
"DBParameterGroupFamily": "aurora-mysql5.7",
|
| 38 |
+
"Description": "Copy of mydbclusterpg parameter group",
|
| 39 |
+
"DBClusterParameterGroupArn": "arn:aws:rds:us-east-1:123456789012:cluster-pg:mydbclusterpgcopy"
|
| 40 |
+
}
|
| 41 |
+
]
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
For more information, see `Working with DB Parameter Groups and DB Cluster Parameter Groups <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-parameters.rst
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To describe the parameters in a DB cluster parameter group**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-cluster-parameters`` example retrieves details about the parameters in a DB cluster parameter group. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-cluster-parameters \
|
| 6 |
+
--db-cluster-parameter-group-name mydbclusterpg
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"Parameters": [
|
| 12 |
+
{
|
| 13 |
+
"ParameterName": "allow-suspicious-udfs",
|
| 14 |
+
"Description": "Controls whether user-defined functions that have only an xxx symbol for the main function can be loaded",
|
| 15 |
+
"Source": "engine-default",
|
| 16 |
+
"ApplyType": "static",
|
| 17 |
+
"DataType": "boolean",
|
| 18 |
+
"AllowedValues": "0,1",
|
| 19 |
+
"IsModifiable": false,
|
| 20 |
+
"ApplyMethod": "pending-reboot",
|
| 21 |
+
"SupportedEngineModes": [
|
| 22 |
+
"provisioned"
|
| 23 |
+
]
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"ParameterName": "aurora_lab_mode",
|
| 27 |
+
"ParameterValue": "0",
|
| 28 |
+
"Description": "Enables new features in the Aurora engine.",
|
| 29 |
+
"Source": "engine-default",
|
| 30 |
+
"ApplyType": "static",
|
| 31 |
+
"DataType": "boolean",
|
| 32 |
+
"AllowedValues": "0,1",
|
| 33 |
+
"IsModifiable": true,
|
| 34 |
+
"ApplyMethod": "pending-reboot",
|
| 35 |
+
"SupportedEngineModes": [
|
| 36 |
+
"provisioned"
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
...some output truncated...
|
| 40 |
+
]
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
**Example 2: To list only the parameter names in a DB cluster parameter group**
|
| 44 |
+
|
| 45 |
+
The following ``describe-db-cluster-parameters`` example retrieves only the names of the parameters in a DB cluster parameter group. ::
|
| 46 |
+
|
| 47 |
+
aws rds describe-db-cluster-parameters \
|
| 48 |
+
--db-cluster-parameter-group-name default.aurora-mysql5.7 \
|
| 49 |
+
--query 'Parameters[].{ParameterName:ParameterName}'
|
| 50 |
+
|
| 51 |
+
Output::
|
| 52 |
+
|
| 53 |
+
[
|
| 54 |
+
{
|
| 55 |
+
"ParameterName": "allow-suspicious-udfs"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"ParameterName": "aurora_binlog_read_buffer_size"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"ParameterName": "aurora_binlog_replication_max_yield_seconds"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"ParameterName": "aurora_binlog_use_large_read_buffer"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"ParameterName": "aurora_lab_mode"
|
| 68 |
+
},
|
| 69 |
+
|
| 70 |
+
...some output truncated...
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
|
| 74 |
+
**Example 3: To describe only the modifiable parameters in a DB cluster parameter group**
|
| 75 |
+
|
| 76 |
+
The following ``describe-db-cluster-parameters`` example retrieves the names of only the parameters that you can modify in a DB cluster parameter group. ::
|
| 77 |
+
|
| 78 |
+
aws rds describe-db-cluster-parameters \
|
| 79 |
+
--db-cluster-parameter-group-name default.aurora-mysql5.7 \
|
| 80 |
+
--query 'Parameters[].{ParameterName:ParameterName,IsModifiable:IsModifiable} | [?IsModifiable == `true`]'
|
| 81 |
+
|
| 82 |
+
Output::
|
| 83 |
+
|
| 84 |
+
[
|
| 85 |
+
{
|
| 86 |
+
"ParameterName": "aurora_binlog_read_buffer_size",
|
| 87 |
+
"IsModifiable": true
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"ParameterName": "aurora_binlog_replication_max_yield_seconds",
|
| 91 |
+
"IsModifiable": true
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"ParameterName": "aurora_binlog_use_large_read_buffer",
|
| 95 |
+
"IsModifiable": true
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"ParameterName": "aurora_lab_mode",
|
| 99 |
+
"IsModifiable": true
|
| 100 |
+
},
|
| 101 |
+
|
| 102 |
+
...some output truncated...
|
| 103 |
+
}
|
| 104 |
+
]
|
| 105 |
+
|
| 106 |
+
**Example 4: To describe only the modifable Boolean parameters in a DB cluster parameter group**
|
| 107 |
+
|
| 108 |
+
The following ``describe-db-cluster-parameters`` example retrieves the names of only the parameters that you can modify in a DB cluster parameter group and that have a Boolean data type. ::
|
| 109 |
+
|
| 110 |
+
aws rds describe-db-cluster-parameters \
|
| 111 |
+
--db-cluster-parameter-group-name default.aurora-mysql5.7 \
|
| 112 |
+
--query 'Parameters[].{ParameterName:ParameterName,DataType:DataType,IsModifiable:IsModifiable} | [?DataType == `boolean`] | [?IsModifiable == `true`]'
|
| 113 |
+
|
| 114 |
+
Output::
|
| 115 |
+
|
| 116 |
+
[
|
| 117 |
+
{
|
| 118 |
+
"DataType": "boolean",
|
| 119 |
+
"ParameterName": "aurora_binlog_use_large_read_buffer",
|
| 120 |
+
"IsModifiable": true
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"DataType": "boolean",
|
| 124 |
+
"ParameterName": "aurora_lab_mode",
|
| 125 |
+
"IsModifiable": true
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"DataType": "boolean",
|
| 129 |
+
"ParameterName": "autocommit",
|
| 130 |
+
"IsModifiable": true
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"DataType": "boolean",
|
| 134 |
+
"ParameterName": "automatic_sp_privileges",
|
| 135 |
+
"IsModifiable": true
|
| 136 |
+
},
|
| 137 |
+
...some output truncated...
|
| 138 |
+
}
|
| 139 |
+
]
|
| 140 |
+
|
| 141 |
+
For more information, see `Working with DB Parameter Groups and DB Cluster Parameter Groups <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-snapshot-attributes.rst
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe the attribute names and values for a DB cluster snapshot**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-cluster-snapshot-attributes`` example retrieves details of the attribute names and values for the specified DB cluster snapshot. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-cluster-snapshot-attributes \
|
| 6 |
+
--db-cluster-snapshot-identifier myclustersnapshot
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBClusterSnapshotAttributesResult": {
|
| 12 |
+
"DBClusterSnapshotIdentifier": "myclustersnapshot",
|
| 13 |
+
"DBClusterSnapshotAttributes": [
|
| 14 |
+
{
|
| 15 |
+
"AttributeName": "restore",
|
| 16 |
+
"AttributeValues": [
|
| 17 |
+
"123456789012"
|
| 18 |
+
]
|
| 19 |
+
}
|
| 20 |
+
]
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
For more information, see `Sharing a DB Cluster Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_ShareSnapshot.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-cluster-snapshots.rst
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe a DB cluster snapshot for a DB cluster**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-cluster-snapshots`` example retrieves the details for the DB cluster snapshots for the specified DB cluster. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-cluster-snapshots \
|
| 6 |
+
--db-cluster-identifier mydbcluster
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBClusterSnapshots": [
|
| 12 |
+
{
|
| 13 |
+
"AvailabilityZones": [
|
| 14 |
+
"us-east-1a",
|
| 15 |
+
"us-east-1b",
|
| 16 |
+
"us-east-1e"
|
| 17 |
+
],
|
| 18 |
+
"DBClusterSnapshotIdentifier": "myclustersnapshotcopy",
|
| 19 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 20 |
+
"SnapshotCreateTime": "2019-06-04T09:16:42.649Z",
|
| 21 |
+
"Engine": "aurora-mysql",
|
| 22 |
+
"AllocatedStorage": 0,
|
| 23 |
+
"Status": "available",
|
| 24 |
+
"Port": 0,
|
| 25 |
+
"VpcId": "vpc-6594f31c",
|
| 26 |
+
"ClusterCreateTime": "2019-04-15T14:18:42.785Z",
|
| 27 |
+
"MasterUsername": "myadmin",
|
| 28 |
+
"EngineVersion": "5.7.mysql_aurora.2.04.2",
|
| 29 |
+
"LicenseModel": "aurora-mysql",
|
| 30 |
+
"SnapshotType": "manual",
|
| 31 |
+
"PercentProgress": 100,
|
| 32 |
+
"StorageEncrypted": true,
|
| 33 |
+
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE",
|
| 34 |
+
"DBClusterSnapshotArn": "arn:aws:rds:us-east-1:814387698303:cluster-snapshot:myclustersnapshotcopy",
|
| 35 |
+
"IAMDatabaseAuthenticationEnabled": false
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"AvailabilityZones": [
|
| 39 |
+
"us-east-1a",
|
| 40 |
+
"us-east-1b",
|
| 41 |
+
"us-east-1e"
|
| 42 |
+
],
|
| 43 |
+
"DBClusterSnapshotIdentifier": "rds:mydbcluster-2019-06-20-09-16",
|
| 44 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 45 |
+
"SnapshotCreateTime": "2019-06-20T09:16:26.569Z",
|
| 46 |
+
"Engine": "aurora-mysql",
|
| 47 |
+
"AllocatedStorage": 0,
|
| 48 |
+
"Status": "available",
|
| 49 |
+
"Port": 0,
|
| 50 |
+
"VpcId": "vpc-6594f31c",
|
| 51 |
+
"ClusterCreateTime": "2019-04-15T14:18:42.785Z",
|
| 52 |
+
"MasterUsername": "myadmin",
|
| 53 |
+
"EngineVersion": "5.7.mysql_aurora.2.04.2",
|
| 54 |
+
"LicenseModel": "aurora-mysql",
|
| 55 |
+
"SnapshotType": "automated",
|
| 56 |
+
"PercentProgress": 100,
|
| 57 |
+
"StorageEncrypted": true,
|
| 58 |
+
"KmsKeyId": "arn:aws:kms:us-east-1:814387698303:key/AKIAIOSFODNN7EXAMPLE",
|
| 59 |
+
"DBClusterSnapshotArn": "arn:aws:rds:us-east-1:123456789012:cluster-snapshot:rds:mydbcluster-2019-06-20-09-16",
|
| 60 |
+
"IAMDatabaseAuthenticationEnabled": false
|
| 61 |
+
}
|
| 62 |
+
]
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
For more information, see `Creating a DB Cluster Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CreateSnapshotCluster.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-clusters.rst
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To describe a DB cluster**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-clusters`` example retrieves the details of the specified DB cluster. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-clusters \
|
| 6 |
+
--db-cluster-identifier mydbcluster
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBClusters": [
|
| 12 |
+
{
|
| 13 |
+
"AllocatedStorage": 1,
|
| 14 |
+
"AvailabilityZones": [
|
| 15 |
+
"us-east-1a",
|
| 16 |
+
"us-east-1b",
|
| 17 |
+
"us-east-1e"
|
| 18 |
+
],
|
| 19 |
+
"BackupRetentionPeriod": 1,
|
| 20 |
+
"DatabaseName": "mydbcluster",
|
| 21 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 22 |
+
"DBClusterParameterGroup": "default.aurora-mysql5.7",
|
| 23 |
+
"DBSubnetGroup": "default",
|
| 24 |
+
"Status": "available",
|
| 25 |
+
"EarliestRestorableTime": "2019-06-19T09:16:28.210Z",
|
| 26 |
+
"Endpoint": "mydbcluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 27 |
+
"ReaderEndpoint": "mydbcluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 28 |
+
"MultiAZ": true,
|
| 29 |
+
"Engine": "aurora-mysql",
|
| 30 |
+
"EngineVersion": "5.7.mysql_aurora.2.04.2",
|
| 31 |
+
"LatestRestorableTime": "2019-06-20T22:38:14.908Z",
|
| 32 |
+
"Port": 3306,
|
| 33 |
+
"MasterUsername": "myadmin",
|
| 34 |
+
"PreferredBackupWindow": "09:09-09:39",
|
| 35 |
+
"PreferredMaintenanceWindow": "sat:04:09-sat:04:39",
|
| 36 |
+
"ReadReplicaIdentifiers": [],
|
| 37 |
+
"DBClusterMembers": [
|
| 38 |
+
{
|
| 39 |
+
"DBInstanceIdentifier": "dbinstance3",
|
| 40 |
+
"IsClusterWriter": false,
|
| 41 |
+
"DBClusterParameterGroupStatus": "in-sync",
|
| 42 |
+
"PromotionTier": 1
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"DBInstanceIdentifier": "dbinstance1",
|
| 46 |
+
"IsClusterWriter": false,
|
| 47 |
+
"DBClusterParameterGroupStatus": "in-sync",
|
| 48 |
+
"PromotionTier": 1
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"DBInstanceIdentifier": "dbinstance2",
|
| 52 |
+
"IsClusterWriter": false,
|
| 53 |
+
"DBClusterParameterGroupStatus": "in-sync",
|
| 54 |
+
"PromotionTier": 1
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"DBInstanceIdentifier": "mydbcluster",
|
| 58 |
+
"IsClusterWriter": false,
|
| 59 |
+
"DBClusterParameterGroupStatus": "in-sync",
|
| 60 |
+
"PromotionTier": 1
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"DBInstanceIdentifier": "mydbcluster-us-east-1b",
|
| 64 |
+
"IsClusterWriter": false,
|
| 65 |
+
"DBClusterParameterGroupStatus": "in-sync",
|
| 66 |
+
"PromotionTier": 1
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"DBInstanceIdentifier": "mydbcluster",
|
| 70 |
+
"IsClusterWriter": true,
|
| 71 |
+
"DBClusterParameterGroupStatus": "in-sync",
|
| 72 |
+
"PromotionTier": 1
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"VpcSecurityGroups": [
|
| 76 |
+
{
|
| 77 |
+
"VpcSecurityGroupId": "sg-0b9130572daf3dc16",
|
| 78 |
+
"Status": "active"
|
| 79 |
+
}
|
| 80 |
+
],
|
| 81 |
+
"HostedZoneId": "Z2R2ITUGPM61AM",
|
| 82 |
+
"StorageEncrypted": true,
|
| 83 |
+
"KmsKeyId": "arn:aws:kms:us-east-1:814387698303:key/AKIAIOSFODNN7EXAMPLE",
|
| 84 |
+
"DbClusterResourceId": "cluster-AKIAIOSFODNN7EXAMPLE",
|
| 85 |
+
"DBClusterArn": "arn:aws:rds:us-east-1:123456789012:cluster:mydbcluster",
|
| 86 |
+
"AssociatedRoles": [],
|
| 87 |
+
"IAMDatabaseAuthenticationEnabled": false,
|
| 88 |
+
"ClusterCreateTime": "2019-04-15T14:18:42.785Z",
|
| 89 |
+
"EngineMode": "provisioned",
|
| 90 |
+
"DeletionProtection": false,
|
| 91 |
+
"HttpEndpointEnabled": false
|
| 92 |
+
}
|
| 93 |
+
]
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
**Example 2: To list certain attributes of all DB clusters**
|
| 97 |
+
|
| 98 |
+
The following ``describe-db-clusters`` example retrieves only the ``DBClusterIdentifier``, ``Endpoint``, and ``ReaderEndpoint`` attributes of all your DB clusters in the current AWS Region. ::
|
| 99 |
+
|
| 100 |
+
aws rds describe-db-clusters \
|
| 101 |
+
--query 'DBClusters[].{DBClusterIdentifier:DBClusterIdentifier,Endpoint:Endpoint,ReaderEndpoint:ReaderEndpoint}'
|
| 102 |
+
|
| 103 |
+
Output::
|
| 104 |
+
|
| 105 |
+
[
|
| 106 |
+
{
|
| 107 |
+
"Endpoint": "cluster-57-2020-05-01-2270.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 108 |
+
"ReaderEndpoint": "cluster-57-2020-05-01-2270.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 109 |
+
"DBClusterIdentifier": "cluster-57-2020-05-01-2270"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"Endpoint": "cluster-57-2020-05-01-4615.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 113 |
+
"ReaderEndpoint": "cluster-57-2020-05-01-4615.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 114 |
+
"DBClusterIdentifier": "cluster-57-2020-05-01-4615"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"Endpoint": "pg2-cluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
|
| 118 |
+
"ReaderEndpoint": "pg2-cluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
|
| 119 |
+
"DBClusterIdentifier": "pg2-cluster"
|
| 120 |
+
},
|
| 121 |
+
...output omitted...
|
| 122 |
+
}
|
| 123 |
+
]
|
| 124 |
+
|
| 125 |
+
**Example 3: To list DB clusters with a specific attribute**
|
| 126 |
+
|
| 127 |
+
The following ``describe-db-clusters`` example retrieves only the ``DBClusterIdentifier`` and ``Engine`` attributes of your DB clusters that use the ``aurora-postgresql`` DB engine. ::
|
| 128 |
+
|
| 129 |
+
aws rds describe-db-clusters \
|
| 130 |
+
--query 'DBClusters[].{DBClusterIdentifier:DBClusterIdentifier,Engine:Engine} | [?Engine == `aurora-postgresql`]'
|
| 131 |
+
|
| 132 |
+
Output::
|
| 133 |
+
|
| 134 |
+
[
|
| 135 |
+
{
|
| 136 |
+
"Engine": "aurora-postgresql",
|
| 137 |
+
"DBClusterIdentifier": "pg2-cluster"
|
| 138 |
+
}
|
| 139 |
+
]
|
| 140 |
+
|
| 141 |
+
For more information, see `Amazon Aurora DB Clusters <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-instances.rst
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe a DB instance**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-instances`` example retrieves details about the specified DB instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-instances \
|
| 6 |
+
--db-instance-identifier mydbinstancecf
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DBInstances": [
|
| 12 |
+
{
|
| 13 |
+
"DBInstanceIdentifier": "mydbinstancecf",
|
| 14 |
+
"DBInstanceClass": "db.t3.small",
|
| 15 |
+
"Engine": "mysql",
|
| 16 |
+
"DBInstanceStatus": "available",
|
| 17 |
+
"MasterUsername": "masterawsuser",
|
| 18 |
+
"Endpoint": {
|
| 19 |
+
"Address": "mydbinstancecf.abcexample.us-east-1.rds.amazonaws.com",
|
| 20 |
+
"Port": 3306,
|
| 21 |
+
"HostedZoneId": "Z2R2ITUGPM61AM"
|
| 22 |
+
},
|
| 23 |
+
...some output truncated...
|
| 24 |
+
}
|
| 25 |
+
]
|
| 26 |
+
}
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-log-files.rst
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe the log files for a DB instance**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-log-files`` example retrieves details about the log files for the specified DB instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-log-files -\
|
| 6 |
+
-db-instance-identifier test-instance
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"DescribeDBLogFiles": [
|
| 12 |
+
{
|
| 13 |
+
"Size": 0,
|
| 14 |
+
"LastWritten": 1533060000000,
|
| 15 |
+
"LogFileName": "error/mysql-error-running.log"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"Size": 2683,
|
| 19 |
+
"LastWritten": 1532994300000,
|
| 20 |
+
"LogFileName": "error/mysql-error-running.log.0"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"Size": 107,
|
| 24 |
+
"LastWritten": 1533057300000,
|
| 25 |
+
"LogFileName": "error/mysql-error-running.log.18"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"Size": 13105,
|
| 29 |
+
"LastWritten": 1532991000000,
|
| 30 |
+
"LogFileName": "error/mysql-error-running.log.23"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"Size": 0,
|
| 34 |
+
"LastWritten": 1533061200000,
|
| 35 |
+
"LogFileName": "error/mysql-error.log"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"Size": 3519,
|
| 39 |
+
"LastWritten": 1532989252000,
|
| 40 |
+
"LogFileName": "mysqlUpgrade"
|
| 41 |
+
}
|
| 42 |
+
]
|
| 43 |
+
}
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-recommendations.rst
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To list all DB recommendations**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-recommendations`` example lists all DB recommendations in your AWS account. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-recommendations
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"DBRecommendations": [
|
| 11 |
+
{
|
| 12 |
+
"RecommendationId": "12ab3cde-f456-7g8h-9012-i3j45678k9lm",
|
| 13 |
+
"TypeId": "config_recommendation::old_minor_version",
|
| 14 |
+
"Severity": "informational",
|
| 15 |
+
"ResourceArn": "arn:aws:rds:us-west-2:111122223333:db:database-1",
|
| 16 |
+
"Status": "active",
|
| 17 |
+
"CreatedTime": "2024-02-21T23:14:19.292000+00:00",
|
| 18 |
+
"UpdatedTime": "2024-02-21T23:14:19+00:00",
|
| 19 |
+
"Detection": "**[resource-name]** is not running the latest minor DB engine version",
|
| 20 |
+
"Recommendation": "Upgrade to latest engine version",
|
| 21 |
+
"Description": "Your database resources aren't running the latest minor DB engine version. The latest minor version contains the latest security fixes and other improvements.",
|
| 22 |
+
"RecommendedActions": [
|
| 23 |
+
{
|
| 24 |
+
"ActionId": "12ab34c5de6fg7h89i0jk1lm234n5678",
|
| 25 |
+
"Operation": "modifyDbInstance",
|
| 26 |
+
"Parameters": [
|
| 27 |
+
{
|
| 28 |
+
"Key": "EngineVersion",
|
| 29 |
+
"Value": "5.7.44"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"Key": "DBInstanceIdentifier",
|
| 33 |
+
"Value": "database-1"
|
| 34 |
+
}
|
| 35 |
+
],
|
| 36 |
+
"ApplyModes": [
|
| 37 |
+
"immediately",
|
| 38 |
+
"next-maintenance-window"
|
| 39 |
+
],
|
| 40 |
+
"Status": "ready",
|
| 41 |
+
"ContextAttributes": [
|
| 42 |
+
{
|
| 43 |
+
"Key": "Recommended value",
|
| 44 |
+
"Value": "5.7.44"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"Key": "Current engine version",
|
| 48 |
+
"Value": "5.7.42"
|
| 49 |
+
}
|
| 50 |
+
]
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"Category": "security",
|
| 54 |
+
"Source": "RDS",
|
| 55 |
+
"TypeDetection": "**[resource-count] resources** are not running the latest minor DB engine version",
|
| 56 |
+
"TypeRecommendation": "Upgrade to latest engine version",
|
| 57 |
+
"Impact": "Reduced database performance and data security at risk",
|
| 58 |
+
"AdditionalInfo": "We recommend that you maintain your database with the latest DB engine minor version as this version includes the latest security and functionality fixes. The DB engine minor version upgrades contain only the changes which are backward-compatible with earlier minor versions of the same major version of the DB engine.",
|
| 59 |
+
"Links": [
|
| 60 |
+
{
|
| 61 |
+
"Text": "Upgrading an RDS DB instance engine version",
|
| 62 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"Text": "Using Amazon RDS Blue/Green Deployments for database updates for Amazon Aurora",
|
| 66 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"Text": "Using Amazon RDS Blue/Green Deployments for database updates for Amazon RDS",
|
| 70 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html"
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
For more information, see `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/monitoring-recommendations.html>`__ in the *Amazon RDS User Guide* and `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/monitoring-recommendations.html>`__ in the *Amazon Aurora User Guide*.
|
| 78 |
+
|
| 79 |
+
**Example 2: To list high severity DB recommendations**
|
| 80 |
+
|
| 81 |
+
The following ``describe-db-recommendations`` example lists high severity DB recommendations in your AWS account. ::
|
| 82 |
+
|
| 83 |
+
aws rds describe-db-recommendations \
|
| 84 |
+
--filters Name=severity,Values=high
|
| 85 |
+
|
| 86 |
+
Output::
|
| 87 |
+
|
| 88 |
+
{
|
| 89 |
+
"DBRecommendations": [
|
| 90 |
+
{
|
| 91 |
+
"RecommendationId": "12ab3cde-f456-7g8h-9012-i3j45678k9lm",
|
| 92 |
+
"TypeId": "config_recommendation::rds_extended_support",
|
| 93 |
+
"Severity": "high",
|
| 94 |
+
"ResourceArn": "arn:aws:rds:us-west-2:111122223333:db:database-1",
|
| 95 |
+
"Status": "active",
|
| 96 |
+
"CreatedTime": "2024-02-21T23:14:19.392000+00:00",
|
| 97 |
+
"UpdatedTime": "2024-02-21T23:14:19+00:00",
|
| 98 |
+
"Detection": "Your databases will be auto-enrolled to RDS Extended Support on February 29",
|
| 99 |
+
"Recommendation": "Upgrade your major version before February 29, 2024 to avoid additional charges",
|
| 100 |
+
"Description": "Your PostgreSQL 11 and MySQL 5.7 databases will be automatically enrolled into RDS Extended Support on February 29, 2024. To avoid the increase in charges due to RDS Extended Support, we recommend upgrading your databases to a newer major engine version before February 29, 2024.\nTo learn more about the RDS Extended Support pricing, refer to the pricing page.",
|
| 101 |
+
"RecommendedActions": [
|
| 102 |
+
{
|
| 103 |
+
"ActionId": "12ab34c5de6fg7h89i0jk1lm234n5678",
|
| 104 |
+
"Parameters": [],
|
| 105 |
+
"ApplyModes": [
|
| 106 |
+
"manual"
|
| 107 |
+
],
|
| 108 |
+
"Status": "ready",
|
| 109 |
+
"ContextAttributes": []
|
| 110 |
+
}
|
| 111 |
+
],
|
| 112 |
+
"Category": "cost optimization",
|
| 113 |
+
"Source": "RDS",
|
| 114 |
+
"TypeDetection": "Your database will be auto-enrolled to RDS Extended Support on February 29",
|
| 115 |
+
"TypeRecommendation": "Upgrade your major version before February 29, 2024 to avoid additional charges",
|
| 116 |
+
"Impact": "Increase in charges due to RDS Extended Support",
|
| 117 |
+
"AdditionalInfo": "With Amazon RDS Extended Support, you can continue running your database on a major engine version past the RDS end of standard support date for an additional cost. This paid feature gives you more time to upgrade to a supported major engine version.\nDuring Extended Support, Amazon RDS will supply critical CVE patches and bug fixes.",
|
| 118 |
+
"Links": [
|
| 119 |
+
{
|
| 120 |
+
"Text": "Amazon RDS Extended Support pricing for RDS for MySQL",
|
| 121 |
+
"Url": "https://aws.amazon.com/rds/mysql/pricing/"
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"Text": "Amazon RDS Extended Support for RDS for MySQL and PostgreSQL databases",
|
| 125 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"Text": "Amazon RDS Extended Support pricing for Amazon Aurora PostgreSQL",
|
| 129 |
+
"Url": "https://aws.amazon.com/rds/aurora/pricing/"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"Text": "Amazon RDS Extended Support for Aurora PostgreSQL databases",
|
| 133 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"Text": "Amazon RDS Extended Support pricing for RDS for PostgreSQL",
|
| 137 |
+
"Url": "https://aws.amazon.com/rds/postgresql/pricing/"
|
| 138 |
+
}
|
| 139 |
+
]
|
| 140 |
+
}
|
| 141 |
+
]
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
For more information, see `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/monitoring-recommendations.html>`__ in the *Amazon RDS User Guide* and `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/monitoring-recommendations.html>`__ in the *Amazon Aurora User Guide*.
|
| 145 |
+
|
| 146 |
+
**Example 3: To list DB recommendations for a specified DB instance**
|
| 147 |
+
|
| 148 |
+
The following ``describe-db-recommendations`` example lists all DB recommendations for a specified DB instance. ::
|
| 149 |
+
|
| 150 |
+
aws rds describe-db-recommendations \
|
| 151 |
+
--filters Name=dbi-resource-id,Values=database-1
|
| 152 |
+
|
| 153 |
+
Output::
|
| 154 |
+
|
| 155 |
+
{
|
| 156 |
+
"DBRecommendations": [
|
| 157 |
+
{
|
| 158 |
+
"RecommendationId": "12ab3cde-f456-7g8h-9012-i3j45678k9lm",
|
| 159 |
+
"TypeId": "config_recommendation::old_minor_version",
|
| 160 |
+
"Severity": "informational",
|
| 161 |
+
"ResourceArn": "arn:aws:rds:us-west-2:111122223333:db:database-1",
|
| 162 |
+
"Status": "active",
|
| 163 |
+
"CreatedTime": "2024-02-21T23:14:19.292000+00:00",
|
| 164 |
+
"UpdatedTime": "2024-02-21T23:14:19+00:00",
|
| 165 |
+
"Detection": "**[resource-name]** is not running the latest minor DB engine version",
|
| 166 |
+
"Recommendation": "Upgrade to latest engine version",
|
| 167 |
+
"Description": "Your database resources aren't running the latest minor DB engine version. The latest minor version contains the latest security fixes and other improvements.",
|
| 168 |
+
"RecommendedActions": [
|
| 169 |
+
{
|
| 170 |
+
"ActionId": "12ab34c5de6fg7h89i0jk1lm234n5678",
|
| 171 |
+
"Operation": "modifyDbInstance",
|
| 172 |
+
"Parameters": [
|
| 173 |
+
{
|
| 174 |
+
"Key": "EngineVersion",
|
| 175 |
+
"Value": "5.7.44"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"Key": "DBInstanceIdentifier",
|
| 179 |
+
"Value": "database-1"
|
| 180 |
+
}
|
| 181 |
+
],
|
| 182 |
+
"ApplyModes": [
|
| 183 |
+
"immediately",
|
| 184 |
+
"next-maintenance-window"
|
| 185 |
+
],
|
| 186 |
+
"Status": "ready",
|
| 187 |
+
"ContextAttributes": [
|
| 188 |
+
{
|
| 189 |
+
"Key": "Recommended value",
|
| 190 |
+
"Value": "5.7.44"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"Key": "Current engine version",
|
| 194 |
+
"Value": "5.7.42"
|
| 195 |
+
}
|
| 196 |
+
]
|
| 197 |
+
}
|
| 198 |
+
],
|
| 199 |
+
"Category": "security",
|
| 200 |
+
"Source": "RDS",
|
| 201 |
+
"TypeDetection": "**[resource-count] resources** are not running the latest minor DB engine version",
|
| 202 |
+
"TypeRecommendation": "Upgrade to latest engine version",
|
| 203 |
+
"Impact": "Reduced database performance and data security at risk",
|
| 204 |
+
"AdditionalInfo": "We recommend that you maintain your database with the latest DB engine minor version as this version includes the latest security and functionality fixes. The DB engine minor version upgrades contain only the changes which are backward-compatible with earlier minor versions of the same major version of the DB engine.",
|
| 205 |
+
"Links": [
|
| 206 |
+
{
|
| 207 |
+
"Text": "Upgrading an RDS DB instance engine version",
|
| 208 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"Text": "Using Amazon RDS Blue/Green Deployments for database updates for Amazon Aurora",
|
| 212 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"Text": "Using Amazon RDS Blue/Green Deployments for database updates for Amazon RDS",
|
| 216 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html"
|
| 217 |
+
}
|
| 218 |
+
]
|
| 219 |
+
}
|
| 220 |
+
]
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
For more information, see `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/monitoring-recommendations.html>`__ in the *Amazon RDS User Guide* and `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/monitoring-recommendations.html>`__ in the *Amazon Aurora User Guide*.
|
| 224 |
+
|
| 225 |
+
**Example 4: To list all active DB recommendations**
|
| 226 |
+
|
| 227 |
+
The following ``describe-db-recommendations`` example lists all active DB recommendations in your AWS account. ::
|
| 228 |
+
|
| 229 |
+
aws rds describe-db-recommendations \
|
| 230 |
+
--filters Name=status,Values=active
|
| 231 |
+
|
| 232 |
+
Output::
|
| 233 |
+
|
| 234 |
+
{
|
| 235 |
+
"DBRecommendations": [
|
| 236 |
+
{
|
| 237 |
+
"RecommendationId": "12ab3cde-f456-7g8h-9012-i3j45678k9lm",
|
| 238 |
+
"TypeId": "config_recommendation::old_minor_version",
|
| 239 |
+
"Severity": "informational",
|
| 240 |
+
"ResourceArn": "arn:aws:rds:us-west-2:111122223333:db:database-1",
|
| 241 |
+
"Status": "active",
|
| 242 |
+
"CreatedTime": "2024-02-21T23:14:19.292000+00:00",
|
| 243 |
+
"UpdatedTime": "2024-02-21T23:14:19+00:00",
|
| 244 |
+
"Detection": "**[resource-name]** is not running the latest minor DB engine version",
|
| 245 |
+
"Recommendation": "Upgrade to latest engine version",
|
| 246 |
+
"Description": "Your database resources aren't running the latest minor DB engine version. The latest minor version contains the latest security fixes and other improvements.",
|
| 247 |
+
"RecommendedActions": [
|
| 248 |
+
{
|
| 249 |
+
"ActionId": "12ab34c5de6fg7h89i0jk1lm234n5678",
|
| 250 |
+
"Operation": "modifyDbInstance",
|
| 251 |
+
"Parameters": [
|
| 252 |
+
{
|
| 253 |
+
"Key": "EngineVersion",
|
| 254 |
+
"Value": "5.7.44"
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"Key": "DBInstanceIdentifier",
|
| 258 |
+
"Value": "database-1"
|
| 259 |
+
}
|
| 260 |
+
],
|
| 261 |
+
"ApplyModes": [
|
| 262 |
+
"immediately",
|
| 263 |
+
"next-maintenance-window"
|
| 264 |
+
],
|
| 265 |
+
"Status": "ready",
|
| 266 |
+
"ContextAttributes": [
|
| 267 |
+
{
|
| 268 |
+
"Key": "Recommended value",
|
| 269 |
+
"Value": "5.7.44"
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"Key": "Current engine version",
|
| 273 |
+
"Value": "5.7.42"
|
| 274 |
+
}
|
| 275 |
+
]
|
| 276 |
+
}
|
| 277 |
+
],
|
| 278 |
+
"Category": "security",
|
| 279 |
+
"Source": "RDS",
|
| 280 |
+
"TypeDetection": "**[resource-count] resources** are not running the latest minor DB engine version",
|
| 281 |
+
"TypeRecommendation": "Upgrade to latest engine version",
|
| 282 |
+
"Impact": "Reduced database performance and data security at risk",
|
| 283 |
+
"AdditionalInfo": "We recommend that you maintain your database with the latest DB engine minor version as this version includes the latest security and functionality fixes. The DB engine minor version upgrades contain only the changes which are backward-compatible with earlier minor versions of the same major version of the DB engine.",
|
| 284 |
+
"Links": [
|
| 285 |
+
{
|
| 286 |
+
"Text": "Upgrading an RDS DB instance engine version",
|
| 287 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html"
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"Text": "Using Amazon RDS Blue/Green Deployments for database updates for Amazon Aurora",
|
| 291 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html"
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"Text": "Using Amazon RDS Blue/Green Deployments for database updates for Amazon RDS",
|
| 295 |
+
"Url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html"
|
| 296 |
+
}
|
| 297 |
+
]
|
| 298 |
+
}
|
| 299 |
+
]
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
For more information, see `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/monitoring-recommendations.html>`__ in the *Amazon RDS User Guide* and `Viewing and responding to Amazon RDS recommendations <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/monitoring-recommendations.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-security-groups.rst
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To list DB security groups**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-security-groups`` example lists DB security groups. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-security-groups
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"DBSecurityGroups": [
|
| 11 |
+
{
|
| 12 |
+
"OwnerId": "123456789012",
|
| 13 |
+
"DBSecurityGroupName": "default",
|
| 14 |
+
"DBSecurityGroupDescription": "default",
|
| 15 |
+
"EC2SecurityGroups": [],
|
| 16 |
+
"IPRanges": [],
|
| 17 |
+
"DBSecurityGroupArn": "arn:aws:rds:us-west-1:111122223333:secgrp:default"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"OwnerId": "123456789012",
|
| 21 |
+
"DBSecurityGroupName": "mysecgroup",
|
| 22 |
+
"DBSecurityGroupDescription": "My Test Security Group",
|
| 23 |
+
"VpcId": "vpc-1234567f",
|
| 24 |
+
"EC2SecurityGroups": [],
|
| 25 |
+
"IPRanges": [],
|
| 26 |
+
"DBSecurityGroupArn": "arn:aws:rds:us-west-1:111122223333:secgrp:mysecgroup"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
For more information, see `Listing Available DB Security Groups <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithSecurityGroups.html#USER_WorkingWithSecurityGroups.Listing>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-db-shard-groups.rst
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To describe DB shard groups**
|
| 2 |
+
|
| 3 |
+
The following ``describe-db-shard-groups`` example retrieves the details of your DB shard groups. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-db-shard-groups
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"DBShardGroups": [
|
| 11 |
+
{
|
| 12 |
+
"DBShardGroupResourceId": "shardgroup-7bb446329da94788b3f957746example",
|
| 13 |
+
"DBShardGroupIdentifier": "limitless-test-shard-grp",
|
| 14 |
+
"DBClusterIdentifier": "limitless-test-cluster",
|
| 15 |
+
"MaxACU": 768.0,
|
| 16 |
+
"ComputeRedundancy": 0,
|
| 17 |
+
"Status": "available",
|
| 18 |
+
"PubliclyAccessible": true,
|
| 19 |
+
"Endpoint": "limitless-test-cluster.limitless-cekycexample.us-east-2.rds.amazonaws.com"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"DBShardGroupResourceId": "shardgroup-a6e3a0226aa243e2ac6c7a1234567890",
|
| 23 |
+
"DBShardGroupIdentifier": "my-db-shard-group",
|
| 24 |
+
"DBClusterIdentifier": "my-sv2-cluster",
|
| 25 |
+
"MaxACU": 768.0,
|
| 26 |
+
"ComputeRedundancy": 0,
|
| 27 |
+
"Status": "available",
|
| 28 |
+
"PubliclyAccessible": false,
|
| 29 |
+
"Endpoint": "my-sv2-cluster.limitless-cekycexample.us-east-2.rds.amazonaws.com"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
For more information, see `Amazon Aurora DB Clusters <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-event-categories.rst
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe event categories**
|
| 2 |
+
|
| 3 |
+
The following ``describe-event-categories`` example retrieves details about the event categories for all available event sources. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-event-categories
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"EventCategoriesMapList": [
|
| 11 |
+
{
|
| 12 |
+
"SourceType": "db-instance",
|
| 13 |
+
"EventCategories": [
|
| 14 |
+
"deletion",
|
| 15 |
+
"read replica",
|
| 16 |
+
"failover",
|
| 17 |
+
"restoration",
|
| 18 |
+
"maintenance",
|
| 19 |
+
"low storage",
|
| 20 |
+
"configuration change",
|
| 21 |
+
"backup",
|
| 22 |
+
"creation",
|
| 23 |
+
"availability",
|
| 24 |
+
"recovery",
|
| 25 |
+
"failure",
|
| 26 |
+
"backtrack",
|
| 27 |
+
"notification"
|
| 28 |
+
]
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"SourceType": "db-security-group",
|
| 32 |
+
"EventCategories": [
|
| 33 |
+
"configuration change",
|
| 34 |
+
"failure"
|
| 35 |
+
]
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"SourceType": "db-parameter-group",
|
| 39 |
+
"EventCategories": [
|
| 40 |
+
"configuration change"
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"SourceType": "db-snapshot",
|
| 45 |
+
"EventCategories": [
|
| 46 |
+
"deletion",
|
| 47 |
+
"creation",
|
| 48 |
+
"restoration",
|
| 49 |
+
"notification"
|
| 50 |
+
]
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"SourceType": "db-cluster",
|
| 54 |
+
"EventCategories": [
|
| 55 |
+
"failover",
|
| 56 |
+
"failure",
|
| 57 |
+
"notification"
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"SourceType": "db-cluster-snapshot",
|
| 62 |
+
"EventCategories": [
|
| 63 |
+
"backup"
|
| 64 |
+
]
|
| 65 |
+
}
|
| 66 |
+
]
|
| 67 |
+
}
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-events.rst
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe events**
|
| 2 |
+
|
| 3 |
+
The following ``describe-events`` example retrieves details for the events that have occurred for the specified DB instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-events \
|
| 6 |
+
--source-identifier test-instance \
|
| 7 |
+
--source-type db-instance
|
| 8 |
+
|
| 9 |
+
Output::
|
| 10 |
+
|
| 11 |
+
{
|
| 12 |
+
"Events": [
|
| 13 |
+
{
|
| 14 |
+
"SourceType": "db-instance",
|
| 15 |
+
"SourceIdentifier": "test-instance",
|
| 16 |
+
"EventCategories": [
|
| 17 |
+
"backup"
|
| 18 |
+
],
|
| 19 |
+
"Message": "Backing up DB instance",
|
| 20 |
+
"Date": "2018-07-31T23:09:23.983Z",
|
| 21 |
+
"SourceArn": "arn:aws:rds:us-east-1:123456789012:db:test-instance"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"SourceType": "db-instance",
|
| 25 |
+
"SourceIdentifier": "test-instance",
|
| 26 |
+
"EventCategories": [
|
| 27 |
+
"backup"
|
| 28 |
+
],
|
| 29 |
+
"Message": "Finished DB Instance backup",
|
| 30 |
+
"Date": "2018-07-31T23:15:13.049Z",
|
| 31 |
+
"SourceArn": "arn:aws:rds:us-east-1:123456789012:db:test-instance"
|
| 32 |
+
}
|
| 33 |
+
]
|
| 34 |
+
}
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-export-tasks.rst
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe snapshot export tasks**
|
| 2 |
+
|
| 3 |
+
The following ``describe-export-tasks`` example returns information about snapshot exports to Amazon S3. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-export-tasks
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"ExportTasks": [
|
| 11 |
+
{
|
| 12 |
+
"ExportTaskIdentifier": "test-snapshot-export",
|
| 13 |
+
"SourceArn": "arn:aws:rds:us-west-2:123456789012:snapshot:test-snapshot",
|
| 14 |
+
"SnapshotTime": "2020-03-02T18:26:28.163Z",
|
| 15 |
+
"TaskStartTime": "2020-03-02T18:57:56.896Z",
|
| 16 |
+
"TaskEndTime": "2020-03-02T19:10:31.985Z",
|
| 17 |
+
"S3Bucket": "amzn-s3-demo-bucket",
|
| 18 |
+
"S3Prefix": "",
|
| 19 |
+
"IamRoleArn": "arn:aws:iam::123456789012:role/service-role/ExportRole",
|
| 20 |
+
"KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/abcd0000-7fca-4128-82f2-aabbccddeeff",
|
| 21 |
+
"Status": "COMPLETE",
|
| 22 |
+
"PercentProgress": 100,
|
| 23 |
+
"TotalExtractedDataInGB": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"ExportTaskIdentifier": "my-s3-export",
|
| 27 |
+
"SourceArn": "arn:aws:rds:us-west-2:123456789012:snapshot:db5-snapshot-test",
|
| 28 |
+
"SnapshotTime": "2020-03-27T20:48:42.023Z",
|
| 29 |
+
"S3Bucket": "amzn-s3-demo-bucket",
|
| 30 |
+
"S3Prefix": "",
|
| 31 |
+
"IamRoleArn": "arn:aws:iam::123456789012:role/service-role/ExportRole",
|
| 32 |
+
"KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/abcd0000-7fca-4128-82f2-aabbccddeeff",
|
| 33 |
+
"Status": "STARTING",
|
| 34 |
+
"PercentProgress": 0,
|
| 35 |
+
"TotalExtractedDataInGB": 0
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
For more information, see `Monitoring Snapshot Exports <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ExportSnapshot.html#USER_ExportSnapshot.Monitoring>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-global-clusters.rst
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe global DB clusters**
|
| 2 |
+
|
| 3 |
+
The following ``describe-global-clusters`` example lists Aurora global DB clusters in the current AWS Region. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-global-clusters
|
| 6 |
+
|
| 7 |
+
Output::
|
| 8 |
+
|
| 9 |
+
{
|
| 10 |
+
"GlobalClusters": [
|
| 11 |
+
{
|
| 12 |
+
"GlobalClusterIdentifier": "myglobalcluster",
|
| 13 |
+
"GlobalClusterResourceId": "cluster-f5982077e3b5aabb",
|
| 14 |
+
"GlobalClusterArn": "arn:aws:rds::123456789012:global-cluster:myglobalcluster",
|
| 15 |
+
"Status": "available",
|
| 16 |
+
"Engine": "aurora-mysql",
|
| 17 |
+
"EngineVersion": "5.7.mysql_aurora.2.07.2",
|
| 18 |
+
"StorageEncrypted": false,
|
| 19 |
+
"DeletionProtection": false,
|
| 20 |
+
"GlobalClusterMembers": []
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
For more information, see `Managing an Aurora global database <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database-managing.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-option-group-options.rst
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe all available options**
|
| 2 |
+
|
| 3 |
+
The following ``describe-option-group-options`` example lists two options for an Oracle Database 19c instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-option-group-options \
|
| 6 |
+
--engine-name oracle-ee \
|
| 7 |
+
--major-engine-version 19 \
|
| 8 |
+
--max-items 2
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"OptionGroupOptions": [
|
| 14 |
+
{
|
| 15 |
+
"Name": "APEX",
|
| 16 |
+
"Description": "Oracle Application Express Runtime Environment",
|
| 17 |
+
"EngineName": "oracle-ee",
|
| 18 |
+
"MajorEngineVersion": "19",
|
| 19 |
+
"MinimumRequiredMinorEngineVersion": "0.0.0.ru-2019-07.rur-2019-07.r1",
|
| 20 |
+
"PortRequired": false,
|
| 21 |
+
"OptionsDependedOn": [],
|
| 22 |
+
"OptionsConflictsWith": [],
|
| 23 |
+
"Persistent": false,
|
| 24 |
+
"Permanent": false,
|
| 25 |
+
"RequiresAutoMinorEngineVersionUpgrade": false,
|
| 26 |
+
"VpcOnly": false,
|
| 27 |
+
"SupportsOptionVersionDowngrade": false,
|
| 28 |
+
"OptionGroupOptionSettings": [],
|
| 29 |
+
"OptionGroupOptionVersions": [
|
| 30 |
+
{
|
| 31 |
+
"Version": "19.1.v1",
|
| 32 |
+
"IsDefault": true
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"Version": "19.2.v1",
|
| 36 |
+
"IsDefault": false
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"Name": "APEX-DEV",
|
| 42 |
+
"Description": "Oracle Application Express Development Environment",
|
| 43 |
+
"EngineName": "oracle-ee",
|
| 44 |
+
"MajorEngineVersion": "19",
|
| 45 |
+
"MinimumRequiredMinorEngineVersion": "0.0.0.ru-2019-07.rur-2019-07.r1",
|
| 46 |
+
"PortRequired": false,
|
| 47 |
+
"OptionsDependedOn": [
|
| 48 |
+
"APEX"
|
| 49 |
+
],
|
| 50 |
+
"OptionsConflictsWith": [],
|
| 51 |
+
"Persistent": false,
|
| 52 |
+
"Permanent": false,
|
| 53 |
+
"RequiresAutoMinorEngineVersionUpgrade": false,
|
| 54 |
+
"VpcOnly": false,
|
| 55 |
+
"OptionGroupOptionSettings": []
|
| 56 |
+
}
|
| 57 |
+
],
|
| 58 |
+
"NextToken": "eyJNYXJrZXIiOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ=="
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
For more information, see `Listing the Options and Option Settings for an Option Group <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithOptionGroups.html#USER_WorkingWithOptionGroups.ListOption>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-orderable-db-instance-options.rst
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe orderable DB instance options**
|
| 2 |
+
|
| 3 |
+
The following ``describe-orderable-db-instance-options`` example retrieves details about the orderable options for a DB instances running the MySQL DB engine. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-orderable-db-instance-options \
|
| 6 |
+
--engine mysql
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"OrderableDBInstanceOptions": [
|
| 12 |
+
{
|
| 13 |
+
"MinStorageSize": 5,
|
| 14 |
+
"ReadReplicaCapable": true,
|
| 15 |
+
"MaxStorageSize": 6144,
|
| 16 |
+
"AvailabilityZones": [
|
| 17 |
+
{
|
| 18 |
+
"Name": "us-east-1a"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"Name": "us-east-1b"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"Name": "us-east-1c"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"Name": "us-east-1d"
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"SupportsIops": false,
|
| 31 |
+
"AvailableProcessorFeatures": [],
|
| 32 |
+
"MultiAZCapable": true,
|
| 33 |
+
"DBInstanceClass": "db.m1.large",
|
| 34 |
+
"Vpc": true,
|
| 35 |
+
"StorageType": "gp2",
|
| 36 |
+
"LicenseModel": "general-public-license",
|
| 37 |
+
"EngineVersion": "5.5.46",
|
| 38 |
+
"SupportsStorageEncryption": false,
|
| 39 |
+
"SupportsEnhancedMonitoring": true,
|
| 40 |
+
"Engine": "mysql",
|
| 41 |
+
"SupportsIAMDatabaseAuthentication": false,
|
| 42 |
+
"SupportsPerformanceInsights": false
|
| 43 |
+
}
|
| 44 |
+
]
|
| 45 |
+
...some output truncated...
|
| 46 |
+
}
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-source-regions.rst
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe source Regions**
|
| 2 |
+
|
| 3 |
+
The following ``describe-source-regions`` example retrieves details about all source AWS Regions. It also shows that automated backups can be replicated only from US West (Oregon) to the destination AWS Region, US East (N. Virginia). ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-source-regions \
|
| 6 |
+
--region us-east-1
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"SourceRegions": [
|
| 12 |
+
{
|
| 13 |
+
"RegionName": "af-south-1",
|
| 14 |
+
"Endpoint": "https://rds.af-south-1.amazonaws.com",
|
| 15 |
+
"Status": "available",
|
| 16 |
+
"SupportsDBInstanceAutomatedBackupsReplication": false
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"RegionName": "ap-east-1",
|
| 20 |
+
"Endpoint": "https://rds.ap-east-1.amazonaws.com",
|
| 21 |
+
"Status": "available",
|
| 22 |
+
"SupportsDBInstanceAutomatedBackupsReplication": false
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"RegionName": "ap-northeast-1",
|
| 26 |
+
"Endpoint": "https://rds.ap-northeast-1.amazonaws.com",
|
| 27 |
+
"Status": "available",
|
| 28 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"RegionName": "ap-northeast-2",
|
| 32 |
+
"Endpoint": "https://rds.ap-northeast-2.amazonaws.com",
|
| 33 |
+
"Status": "available",
|
| 34 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"RegionName": "ap-northeast-3",
|
| 38 |
+
"Endpoint": "https://rds.ap-northeast-3.amazonaws.com",
|
| 39 |
+
"Status": "available",
|
| 40 |
+
"SupportsDBInstanceAutomatedBackupsReplication": false
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"RegionName": "ap-south-1",
|
| 44 |
+
"Endpoint": "https://rds.ap-south-1.amazonaws.com",
|
| 45 |
+
"Status": "available",
|
| 46 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"RegionName": "ap-southeast-1",
|
| 50 |
+
"Endpoint": "https://rds.ap-southeast-1.amazonaws.com",
|
| 51 |
+
"Status": "available",
|
| 52 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"RegionName": "ap-southeast-2",
|
| 56 |
+
"Endpoint": "https://rds.ap-southeast-2.amazonaws.com",
|
| 57 |
+
"Status": "available",
|
| 58 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"RegionName": "ap-southeast-3",
|
| 62 |
+
"Endpoint": "https://rds.ap-southeast-3.amazonaws.com",
|
| 63 |
+
"Status": "available",
|
| 64 |
+
"SupportsDBInstanceAutomatedBackupsReplication": false
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"RegionName": "ca-central-1",
|
| 68 |
+
"Endpoint": "https://rds.ca-central-1.amazonaws.com",
|
| 69 |
+
"Status": "available",
|
| 70 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"RegionName": "eu-north-1",
|
| 74 |
+
"Endpoint": "https://rds.eu-north-1.amazonaws.com",
|
| 75 |
+
"Status": "available",
|
| 76 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"RegionName": "eu-south-1",
|
| 80 |
+
"Endpoint": "https://rds.eu-south-1.amazonaws.com",
|
| 81 |
+
"Status": "available",
|
| 82 |
+
"SupportsDBInstanceAutomatedBackupsReplication": false
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"RegionName": "eu-west-1",
|
| 86 |
+
"Endpoint": "https://rds.eu-west-1.amazonaws.com",
|
| 87 |
+
"Status": "available",
|
| 88 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"RegionName": "eu-west-2",
|
| 92 |
+
"Endpoint": "https://rds.eu-west-2.amazonaws.com",
|
| 93 |
+
"Status": "available",
|
| 94 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"RegionName": "eu-west-3",
|
| 98 |
+
"Endpoint": "https://rds.eu-west-3.amazonaws.com",
|
| 99 |
+
"Status": "available",
|
| 100 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"RegionName": "me-central-1",
|
| 104 |
+
"Endpoint": "https://rds.me-central-1.amazonaws.com",
|
| 105 |
+
"Status": "available",
|
| 106 |
+
"SupportsDBInstanceAutomatedBackupsReplication": false
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"RegionName": "me-south-1",
|
| 110 |
+
"Endpoint": "https://rds.me-south-1.amazonaws.com",
|
| 111 |
+
"Status": "available",
|
| 112 |
+
"SupportsDBInstanceAutomatedBackupsReplication": false
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"RegionName": "sa-east-1",
|
| 116 |
+
"Endpoint": "https://rds.sa-east-1.amazonaws.com",
|
| 117 |
+
"Status": "available",
|
| 118 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"RegionName": "us-east-2",
|
| 122 |
+
"Endpoint": "https://rds.us-east-2.amazonaws.com",
|
| 123 |
+
"Status": "available",
|
| 124 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"RegionName": "us-west-1",
|
| 128 |
+
"Endpoint": "https://rds.us-west-1.amazonaws.com",
|
| 129 |
+
"Status": "available",
|
| 130 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"RegionName": "us-west-2",
|
| 134 |
+
"Endpoint": "https://rds.us-west-2.amazonaws.com",
|
| 135 |
+
"Status": "available",
|
| 136 |
+
"SupportsDBInstanceAutomatedBackupsReplication": true
|
| 137 |
+
}
|
| 138 |
+
]
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
For more information, see `Finding information about replicated backups <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html#AutomatedBackups.Replicating.Describe>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/describe-valid-db-instance-modifications.rst
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To describe valid modifications for a DB instance**
|
| 2 |
+
|
| 3 |
+
The following ``describe-valid-db-instance-modifications`` example retrieves details about the valid modifications for the specified DB instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds describe-valid-db-instance-modifications \
|
| 6 |
+
--db-instance-identifier test-instance
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"ValidDBInstanceModificationsMessage": {
|
| 12 |
+
"ValidProcessorFeatures": [],
|
| 13 |
+
"Storage": [
|
| 14 |
+
{
|
| 15 |
+
"StorageSize": [
|
| 16 |
+
{
|
| 17 |
+
"Step": 1,
|
| 18 |
+
"To": 20,
|
| 19 |
+
"From": 20
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"Step": 1,
|
| 23 |
+
"To": 6144,
|
| 24 |
+
"From": 22
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"ProvisionedIops": [
|
| 28 |
+
{
|
| 29 |
+
"Step": 1,
|
| 30 |
+
"To": 0,
|
| 31 |
+
"From": 0
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"IopsToStorageRatio": [
|
| 35 |
+
{
|
| 36 |
+
"To": 0.0,
|
| 37 |
+
"From": 0.0
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"StorageType": "gp2"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"StorageSize": [
|
| 44 |
+
{
|
| 45 |
+
"Step": 1,
|
| 46 |
+
"To": 6144,
|
| 47 |
+
"From": 100
|
| 48 |
+
}
|
| 49 |
+
],
|
| 50 |
+
"ProvisionedIops": [
|
| 51 |
+
{
|
| 52 |
+
"Step": 1,
|
| 53 |
+
"To": 40000,
|
| 54 |
+
"From": 1000
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"IopsToStorageRatio": [
|
| 58 |
+
{
|
| 59 |
+
"To": 50.0,
|
| 60 |
+
"From": 1.0
|
| 61 |
+
}
|
| 62 |
+
],
|
| 63 |
+
"StorageType": "io1"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"StorageSize": [
|
| 67 |
+
{
|
| 68 |
+
"Step": 1,
|
| 69 |
+
"To": 20,
|
| 70 |
+
"From": 20
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"Step": 1,
|
| 74 |
+
"To": 3072,
|
| 75 |
+
"From": 22
|
| 76 |
+
}
|
| 77 |
+
],
|
| 78 |
+
"ProvisionedIops": [
|
| 79 |
+
{
|
| 80 |
+
"Step": 1,
|
| 81 |
+
"To": 0,
|
| 82 |
+
"From": 0
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"IopsToStorageRatio": [
|
| 86 |
+
{
|
| 87 |
+
"To": 0.0,
|
| 88 |
+
"From": 0.0
|
| 89 |
+
}
|
| 90 |
+
],
|
| 91 |
+
"StorageType": "magnetic"
|
| 92 |
+
}
|
| 93 |
+
]
|
| 94 |
+
}
|
| 95 |
+
}
|
data/lib/python3.10/site-packages/awscli/examples/rds/generate-db-auth-token.rst
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To generate an IAM authentication token**
|
| 2 |
+
|
| 3 |
+
The following ``generate-db-auth-token`` example generates IAM authentication token to connect to a database. ::
|
| 4 |
+
|
| 5 |
+
aws rds generate-db-auth-token \
|
| 6 |
+
--hostname mydb.123456789012.us-east-1.rds.amazonaws.com \
|
| 7 |
+
--port 3306 \
|
| 8 |
+
--region us-east-1 \
|
| 9 |
+
--username db_user
|
| 10 |
+
|
| 11 |
+
Output::
|
| 12 |
+
|
| 13 |
+
mydb.123456789012.us-east-1.rds.amazonaws.com:3306/?Action=connect&DBUser=db_user&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIEXAMPLE%2Fus-east-1%2Frds-db%2Faws4_request&X-Amz-Date=20210123T011543Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=88987EXAMPLE1EXAMPLE2EXAMPLE3EXAMPLE4EXAMPLE5EXAMPLE6
|
| 14 |
+
|
| 15 |
+
For more information, see `Connecting to your DB instance using IAM authentication <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.Connecting.html>`__ in the *Amazon RDS User Guide* and `Connecting to your DB cluster using IAM authentication <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.Connecting.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/list-tags-for-resource.rst
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To list tags on an Amazon RDS resource**
|
| 2 |
+
|
| 3 |
+
The following ``list-tags-for-resource`` example lists all tags on a DB instance. ::
|
| 4 |
+
|
| 5 |
+
aws rds list-tags-for-resource \
|
| 6 |
+
--resource-name arn:aws:rds:us-east-1:123456789012:db:orcl1
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"TagList": [
|
| 12 |
+
{
|
| 13 |
+
"Key": "Environment",
|
| 14 |
+
"Value": "test"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"Key": "Name",
|
| 18 |
+
"Value": "MyDatabase"
|
| 19 |
+
}
|
| 20 |
+
]
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
For more information, see `Tagging Amazon RDS Resources <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/modify-certificates.rst
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To temporarily override the system-default SSL/TLS certificate for new DB instances**
|
| 2 |
+
|
| 3 |
+
The following ``modify-certificates`` example temporarily overrides the system-default SSL/TLS certificate for new DB instances. ::
|
| 4 |
+
|
| 5 |
+
aws rds modify-certificates \
|
| 6 |
+
--certificate-identifier rds-ca-2019
|
| 7 |
+
|
| 8 |
+
Output::
|
| 9 |
+
|
| 10 |
+
{
|
| 11 |
+
"Certificate": {
|
| 12 |
+
"CertificateIdentifier": "rds-ca-2019",
|
| 13 |
+
"CertificateType": "CA",
|
| 14 |
+
"Thumbprint": "EXAMPLE123456789012",
|
| 15 |
+
"ValidFrom": "2019-09-19T18:16:53Z",
|
| 16 |
+
"ValidTill": "2024-08-22T17:08:50Z",
|
| 17 |
+
"CertificateArn": "arn:aws:rds:us-east-1::cert:rds-ca-2019",
|
| 18 |
+
"CustomerOverride": true,
|
| 19 |
+
"CustomerOverrideValidTill": "2024-08-22T17:08:50Z"
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
For more information, see `Rotating your SSL/TLS certificate <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html>`__ in the *Amazon RDS User Guide* and `Rotating your SSL/TLS certificate <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-cluster-endpoint.rst
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To modify a custom DB cluster endpoint**
|
| 2 |
+
|
| 3 |
+
The following ``modify-db-cluster-endpoint`` example modifies the specified custom DB cluster endpoint. ::
|
| 4 |
+
|
| 5 |
+
aws rds modify-db-cluster-endpoint \
|
| 6 |
+
--db-cluster-endpoint-identifier mycustomendpoint \
|
| 7 |
+
--static-members dbinstance1 dbinstance2 dbinstance3
|
| 8 |
+
|
| 9 |
+
Output::
|
| 10 |
+
|
| 11 |
+
{
|
| 12 |
+
"DBClusterEndpointIdentifier": "mycustomendpoint",
|
| 13 |
+
"DBClusterIdentifier": "mydbcluster",
|
| 14 |
+
"DBClusterEndpointResourceIdentifier": "cluster-endpoint-ANPAJ4AE5446DAEXAMPLE",
|
| 15 |
+
"Endpoint": "mycustomendpoint.cluster-custom-cnpexample.us-east-1.rds.amazonaws.com",
|
| 16 |
+
"Status": "modifying",
|
| 17 |
+
"EndpointType": "CUSTOM",
|
| 18 |
+
"CustomEndpointType": "READER",
|
| 19 |
+
"StaticMembers": [
|
| 20 |
+
"dbinstance1",
|
| 21 |
+
"dbinstance2",
|
| 22 |
+
"dbinstance3"
|
| 23 |
+
],
|
| 24 |
+
"ExcludedMembers": [],
|
| 25 |
+
"DBClusterEndpointArn": "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:mycustomendpoint"
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
For more information, see `Amazon Aurora Connection Management <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.Endpoints.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-cluster-parameter-group.rst
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To modify parameters in a DB cluster parameter group**
|
| 2 |
+
|
| 3 |
+
The following ``modify-db-cluster-parameter-group`` example modifies the values of parameters in a DB cluster parameter group. ::
|
| 4 |
+
|
| 5 |
+
aws rds modify-db-cluster-parameter-group \
|
| 6 |
+
--db-cluster-parameter-group-name mydbclusterpg \
|
| 7 |
+
--parameters "ParameterName=server_audit_logging,ParameterValue=1,ApplyMethod=immediate" \
|
| 8 |
+
"ParameterName=server_audit_logs_upload,ParameterValue=1,ApplyMethod=immediate"
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"DBClusterParameterGroupName": "mydbclusterpg"
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
For more information, see `Working with DB parameter groups and DB cluster parameter groups <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html>`__ in the *Amazon Aurora User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-instance.rst
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**Example 1: To modify a DB instance**
|
| 2 |
+
|
| 3 |
+
The following ``modify-db-instance`` example associates an option group and a parameter group with a compatible Microsoft SQL Server DB instance. The ``--apply-immediately`` parameter causes the option and parameter groups to be associated immediately, instead of waiting until the next maintenance window. ::
|
| 4 |
+
|
| 5 |
+
aws rds modify-db-instance \
|
| 6 |
+
--db-instance-identifier database-2 \
|
| 7 |
+
--option-group-name test-se-2017 \
|
| 8 |
+
--db-parameter-group-name test-sqlserver-se-2017 \
|
| 9 |
+
--apply-immediately
|
| 10 |
+
|
| 11 |
+
Output::
|
| 12 |
+
|
| 13 |
+
{
|
| 14 |
+
"DBInstance": {
|
| 15 |
+
"DBInstanceIdentifier": "database-2",
|
| 16 |
+
"DBInstanceClass": "db.r4.large",
|
| 17 |
+
"Engine": "sqlserver-se",
|
| 18 |
+
"DBInstanceStatus": "available",
|
| 19 |
+
|
| 20 |
+
...output omitted...
|
| 21 |
+
|
| 22 |
+
"DBParameterGroups": [
|
| 23 |
+
{
|
| 24 |
+
"DBParameterGroupName": "test-sqlserver-se-2017",
|
| 25 |
+
"ParameterApplyStatus": "applying"
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"AvailabilityZone": "us-west-2d",
|
| 29 |
+
|
| 30 |
+
...output omitted...
|
| 31 |
+
|
| 32 |
+
"MultiAZ": true,
|
| 33 |
+
"EngineVersion": "14.00.3281.6.v1",
|
| 34 |
+
"AutoMinorVersionUpgrade": false,
|
| 35 |
+
"ReadReplicaDBInstanceIdentifiers": [],
|
| 36 |
+
"LicenseModel": "license-included",
|
| 37 |
+
"OptionGroupMemberships": [
|
| 38 |
+
{
|
| 39 |
+
"OptionGroupName": "test-se-2017",
|
| 40 |
+
"Status": "pending-apply"
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"CharacterSetName": "SQL_Latin1_General_CP1_CI_AS",
|
| 44 |
+
"SecondaryAvailabilityZone": "us-west-2c",
|
| 45 |
+
"PubliclyAccessible": true,
|
| 46 |
+
"StorageType": "gp2",
|
| 47 |
+
|
| 48 |
+
...output omitted...
|
| 49 |
+
|
| 50 |
+
"DeletionProtection": false,
|
| 51 |
+
"AssociatedRoles": [],
|
| 52 |
+
"MaxAllocatedStorage": 1000
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
For more information, see `Modifying an Amazon RDS DB Instance <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html>`__ in the *Amazon RDS User Guide*.
|
| 57 |
+
|
| 58 |
+
**Example 2: To associate VPC security group with a DB instance**
|
| 59 |
+
|
| 60 |
+
The following ``modify-db-instance`` example associates a specific VPC security group and removes DB security groups from a DB instance::
|
| 61 |
+
|
| 62 |
+
aws rds modify-db-instance \
|
| 63 |
+
--db-instance-identifier dbName \
|
| 64 |
+
--vpc-security-group-ids sg-ID
|
| 65 |
+
|
| 66 |
+
Output::
|
| 67 |
+
|
| 68 |
+
{
|
| 69 |
+
"DBInstance": {
|
| 70 |
+
"DBInstanceIdentifier": "dbName",
|
| 71 |
+
"DBInstanceClass": "db.t3.micro",
|
| 72 |
+
"Engine": "mysql",
|
| 73 |
+
"DBInstanceStatus": "available",
|
| 74 |
+
"MasterUsername": "admin",
|
| 75 |
+
"Endpoint": {
|
| 76 |
+
"Address": "dbName.abcdefghijk.us-west-2.rds.amazonaws.com",
|
| 77 |
+
"Port": 3306,
|
| 78 |
+
"HostedZoneId": "ABCDEFGHIJK1234"
|
| 79 |
+
},
|
| 80 |
+
"AllocatedStorage": 20,
|
| 81 |
+
"InstanceCreateTime": "2024-02-15T00:37:58.793000+00:00",
|
| 82 |
+
"PreferredBackupWindow": "11:57-12:27",
|
| 83 |
+
"BackupRetentionPeriod": 7,
|
| 84 |
+
"DBSecurityGroups": [],
|
| 85 |
+
"VpcSecurityGroups": [
|
| 86 |
+
{
|
| 87 |
+
"VpcSecurityGroupId": "sg-ID",
|
| 88 |
+
"Status": "active"
|
| 89 |
+
}
|
| 90 |
+
],
|
| 91 |
+
... output omitted ...
|
| 92 |
+
"MultiAZ": false,
|
| 93 |
+
"EngineVersion": "8.0.35",
|
| 94 |
+
"AutoMinorVersionUpgrade": true,
|
| 95 |
+
"ReadReplicaDBInstanceIdentifiers": [],
|
| 96 |
+
"LicenseModel": "general-public-license",
|
| 97 |
+
|
| 98 |
+
... output ommited ...
|
| 99 |
+
}
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
For more information, see `Controlling access with security groups <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html>`__ in the *Amazon RDS User Guide*.
|
data/lib/python3.10/site-packages/awscli/examples/rds/modify-db-parameter-group.rst
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**To modify a DB parameter group**
|
| 2 |
+
|
| 3 |
+
The following ``modify-db-parameter-group`` example changes the value of the ``clr enabled`` parameter in a DB parameter group. The ``--apply-immediately`` parameter causes the DB parameter group to be modified immediately, instead of waiting until the next maintenance window. ::
|
| 4 |
+
|
| 5 |
+
aws rds modify-db-parameter-group \
|
| 6 |
+
--db-parameter-group-name test-sqlserver-se-2017 \
|
| 7 |
+
--parameters "ParameterName='clr enabled',ParameterValue=1,ApplyMethod=immediate"
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
Output::
|
| 11 |
+
|
| 12 |
+
{
|
| 13 |
+
"DBParameterGroupName": "test-sqlserver-se-2017"
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
For more information, see `Modifying Parameters in a DB Parameter Group <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html#USER_WorkingWithParamGroups.Modifying>`__ in the *Amazon RDS User Guide*.
|