如何通过编程方式将Global Accelerator终端节点从终端节点组中删除?

0

【以下的问题经过翻译处理】 我可以使用 aws globalaccelerator update-endpoint-group 将一个终端节点添加到终端节点组中,但是如何从一个终端节点组中移除一个终端节点呢?我能找到的比较接近的方式是使用 remove-custom-routing-endpoints,但我正在使用是标准 GA方式,而不是自定义 GA。

1 Answer
0

【以下的回答经过翻译处理】 可使用update-endpoint-group或UpdateEndpointGroup API来添加或删除终端节点。Global Accelerator的配置属性 --endpoint-configurations的内容项必须包含其所需终端节点的列表,即如果您想要添加一个终端节点,则配置项需要包括当前终端节点和新终端节点,如果您想要删除一个终端节点,则需要提供一个不包含要删除的终端节点的--endpoint-configurations列表,这样才能从组中删除该终端节点。

您可能要考虑使用一下 cloudformation 或其他基础设施即代码(IaC)工具,因为这样更容易管理诸如添加/删除等操作。

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions