Can't create step function through AWS CLI: Argument list too long

0

Hello, Inside a DevOps process, I was creating step functions through the AWS CLI using this command:

aws stepfunctions update-state-machine --definition "$(cat definition.asl.json)" --state-machine-arn ***

But it seems that I have a very big step function now which I'm unable to upload, I'm just seeing this error: /usr/local/bin/aws: Argument list too long As the AWS CLI doesn't admit to upload the step function using file, the workflow is now not working. How can I correct this?

1 Resposta
2
Resposta aceita

Try aws stepfunctions update-state-machine --definition file://definition.asl.json --state-machine-arn ...

profile pictureAWS
ESPECIALISTA
James_S
respondido há 8 meses
profile pictureAWS
ESPECIALISTA
avaliado há 8 meses

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