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 réponses
1
Réponse acceptée

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
répondu il y a 2 ans
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
répondu il y a 2 ans

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