delete all data pipeline using aws cli

0

Im trying to delete all the data pipeline that shows up in

aws datapipeline list-pipelines

in one go. How do I do that using aws-cli?

Kaviya
feita há 8 meses284 visualizações
1 Resposta
3

Hi Kaviya,

You may want to do this something like this:

   for i in $(aws datapipeline list-pipelines --profile <CLI_PROFILE_NAME> --output text); do aws datapipeline delete-pipeline --pipeline-id $i --profile <CLI_PROFILE_NAME>; sleep 5; done;

Caution: Make sure that you really want to delete all the data pipelines before running this command.

Hope it helps.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
ESPECIALISTA
respondido há 8 meses
profile picture
ESPECIALISTA
avaliado há um mês
  • Do you have any additional questions?

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas