ruk·si

☁️ AWS
EB Instance Info Commands

Updated at 2016-06-19 11:42
# List worker environment queue urls
aws elasticbeanstalk \
    --region us-west-1 \
    describe-environments \
    --output text \
    --query "Environments[?Tier.Name=='Worker'].EnvironmentName" \
    | xargs -J %% printf '%s\n' %% \
    | xargs -t -I %% \
        aws elasticbeanstalk \
        --region us-west-1 \
        describe-configuration-settings \
        --application-name simulate \
        --environment-name %% \
        --output text \
        --query "ConfigurationSettings[0].OptionSettings[?OptionName=='WorkerQueueURL'].Value"