Ganesh
Ganesh

Reputation: 1

Need to delete only IP address form AWS WAF IP-set using cmd

Im using a CLI cmd to delete a IP address from AWS WAF IP-set, but the cmd deleting a whole IP-sets, I just need to delete a IP address not Ip-sets, give me a solution for this, I need this very emergency, I have hope I will get the solution from stack overflow frnds.

 aws wafv2 delete-ip-set --name sam_pro --scope REGIONAL --id c3a24360-4f25-4399-aac5-c4967b451492 --lock-token f38b26a3-e3a0-4575-a3e7-4b2b74752dad 

Upvotes: 0

Views: 585

Answers (1)

KumoNoMae
KumoNoMae

Reputation: 301

If you want to delete individual IP within a IP set, you have to update the entire set with the IP you want to remove. It's structured in JSON. The command delete-ip-set deletes entire set, not individual IP.

Upvotes: 1

Related Questions