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

Viewed 542
2 Answers

I had to set the Subcommand to wait and move the environment-updated down into the Options and parameters

enter image description here

It looks that you want be able to do this using extension. However, you have aws CLI installed on the agent so what you need is to setup few variables and then call your commands from powershell step.

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.

You can also create a feature request on github to support wait command by extension.

Related