Aws-cli: Does --no-include-email have an ENV equivalent?

Created on 17 May 2018  路  5Comments  路  Source: aws/aws-cli

This might be a feature request, but as the title ask, I'm looking for an environment equivalent that we can include as an option in our automated builds that used aws ecr get-login. When we move to newer versions of docker we'd like to have the environments with newer versions pickup the --no-include-email option by simply having an environment variable that lets the aws command know it should have that option turned on. Our current workaround is to write a wrapper script for the aws cli that adds the option when the version of docker requires this new option.

Any suggestions for automatically setting this option would be great. Thanks!

feature-request

Most helpful comment

The -e flag was removed from docker login almost a year and a half ago, and had been deprecated for some time before that. Perhaps it's time to just make --no-include-email the default behavior?

All 5 comments

There is not an environment variable equivalent. Marking as a feature request.

@joguSD just curious, any updates on this?

The -e flag was removed from docker login almost a year and a half ago, and had been deprecated for some time before that. Perhaps it's time to just make --no-include-email the default behavior?

ecr get-login is now deprecated, please see aws/containers-roadmap#735 for guidance on using the new command ecr get-login-password which will remove the need to conditionally include the --no-include-email parameter

Closing since its resolved.

Was this page helpful?
0 / 5 - 0 ratings