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.

Otamay
已提問 2 年前檢視次數 991 次
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
專家
已審閱 17 天前
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南