How to remove Global Accelerator Endpoint from Group programmatically?

0

I can add an endpoint to a group using aws globalaccelerator update-endpoint-group, but how do I remove an endpoint from an endpoint group?? Closest thing I can find is remove-custom-routing-endpoints but I'm using a Standard GA, not an custom one.

preguntada hace 2 años325 visualizaciones
1 Respuesta
1
Respuesta aceptada

The update-endpoint-group or UpdateEndpointGroup API can be used to both add or remove Endpoints. The contents of the property --endpoint-configurations is a list which must contain the end state desired endpoints ie if you wanted to add one endpoint you need to include the current endpoints and the new endpoint, if you want to remove an endpoint you supply an --endpoint-configurations list without the endpoint you want to remove and this will then remove the endpoint from the group

You might want to consider using cloudformation or other IaC tool as you might find easier to manage adding/removing operations

AWS
EXPERTO
Peter_G
respondido hace 2 años
  • Thank you for this most complete and excellent answer! To delete all endpoints in a group, calling update-endpoint-group with an empty --endpoint-configurations clears all entries -- exactly what I was looking for!

    It would be nice if this removal process was documented in the cli/api docs, even if just as an example.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas