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回答
2
承認された回答

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

profile pictureAWS
エキスパート
James_S
回答済み 8ヶ月前
profile pictureAWS
エキスパート
レビュー済み 8ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ