How do I disassociate a a Database Proxy from a Lambda function?

0

Hi. I've a associated a database proxy to a lambda function. Now I need the proxy to be removed from that function. I do not see any remove button (only the Add database proxy button), so how can I remove it without deleting the proxy itself?

remove db proxy from lambda

Thank you in advance.

2回答
1
承認された回答

You can disassociate the Database Proxy by removing the IAM policy for that proxy (rds-db:connect permissions) in the Lambda function's execution role.

profile picture
joahna
回答済み 2年前
profile picture
エキスパート
レビュー済み 16日前
0

To remove related associations, also use the deregister-db-proxy-targets command.

aws rds deregister-db-proxy-targets
    --db-proxy-name proxy_name
    [--target-group-name target_group_name]
    [--target-ids comma_separated_list]       # or
    [--db-instance-identifiers instance_id]       # or
    [--db-cluster-identifiers cluster_id]
AWS
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ