无法更改 Oracle RDS 的 IAM 角色

Unable to change IAM role for Oracle RDS

我有一个 oracle rds 实例,我有一个 S3_integration iam 角色,我使用 terraform 删除了它,但它似乎从未在实例本身上删除。

现在我无法更改、删除或向实例添加任何 s3_integration 角色。

尝试用terraform或者UI改名,或者删除都不成功,请问有人遇到过这种情况吗?这怎么能解决?我找不到关于为什么角色无效的任何信息,并且尝试使用 rdsadmin_s3_tasks.upload_to_s3 命令上传转储时显示此错误“[ERROR] The DB instance doesn't have credentials to access the specified Amazon S3 bucket. To grant access, add the S3_INTEGRATION role to the DB instance.

我已经重新启动了数据库,但没有任何效果。

通过使用 aws cli 删除 iam 角色解决,UI 没有该角色,但可以通过描述 aws 实例找到它。

然后使用以下方法将其删除:

 aws rds remove-role-from-db-instance \
--db-instance-identifier db_name \
--role-arn arn:aws:iam::xxxxxx:role/rds-s3-datadump-role \
--feature-name S3_INTEGRATION