如何 运行 AWS CLI:Azure DevOps 中的 Elastic Beanstalk Wait 命令

How to run an AWS CLI: Elastic Beanstalk Wait command in Azure DevOps

等待命令的结构是:

$ aws <command> wait <subcommand> [options and parameters]

然而在 DevOps 中它似乎只支持:

$ aws <command> <subcommand> [options and parameters]

请参阅下面的示例,其中有命令和子命令。等待去哪里?我正在尝试 运行 这个命令 https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/wait/environment-updated.html

您似乎希望能够使用扩展程序来执行此操作。但是,您在代理上安装了 aws CLI,因此您需要设置一些 variables,然后从 powershell 步骤调用您的命令。

Supply standard AWS environment variables in the build agent process You can specify credentials with standard named AWS environment variables. These variables can be used to get credentials from a custom credentials store.

The following are all the supported standard named AWS environment variables:

AWS_ACCESS_KEY_ID – IAM access key ID.

AWS_SECRET_ACCESS_KEY – IAM secret access key.

AWS_SESSION_TOKEN – IAM session token.

AWS_ROLE_ARN – Amazon Resource Name (ARN) of the role you want to assume.

AWS_REGION – AWS Region code, for example, us-east-2.

您还可以在 github 上创建功能请求以通过扩展支持 wait 命令。

我必须将子命令设置为等待并将 environment-updated 向下移动到选项和参数中