aws rds cli -- 需要在db参数组中查找特定参数

0

【以下的问题经过翻译处理】 大家好。我已经成功地查询了“aws --no-verity-ssl rds describe-db-parameter-groups”。但是,我想要筛选出一个参数(audit_trail)来进行查看。其次,我需要将参数值修改为一个新的字符串。但是,我在文档中找到的内容都类似于“-> (file)”。也就是说,在参数组中搜索字符串“oracle”,然后在参数中搜索字符串“audit_trail”,最后在参数值中搜索字符串“os”。感谢您的指导。

profile picture
EXPERT
demandé il y a 8 mois66 vues
1 réponse
0

【以下的回答经过翻译处理】 感谢您在AWS re:Post上发布。 可以通过describe-db-parameters查看这些参数: https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-parameters.html

例如: aws rds describe-db-parameters --db-parameter-group-name xxxx --query 'Parameters[].{ParameterName: ParameterName, ParameterValue: ParameterValue}' --output json https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html

您还可以在末尾输出到文件:“> filename.txt”

通过以下命令进行修改: aws rds modify-db-parameter-group --db-parameter-group-name xxxx --parameters "ParameterName ='xxxx',ParameterValue = xxxx,ApplyMethod = immediate" https://docs.aws.amazon.com/cli/latest/reference/rds/modify-db-parameter-group.html

profile picture
EXPERT
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions