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 Antwort
2
Akzeptierte Antwort

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

profile pictureAWS
EXPERTE
James_S
beantwortet vor 8 Monaten
profile pictureAWS
EXPERTE
überprüft vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen