Although, it's nice to execute:
AWS_DEFAULT_PROFILE="sandbox" sbt ecr:createRepository
it'd be nice to have an alternative to execute:
sbt -Daws.profile=sandbox ecr:createRepository
This also has a nice property that the build can be configured via the initialize sbt task which prevents for users to specify the profile by default if not found.
initialize ~= { _ =>
System.setProperty("aws.profile", sys.props.getOrElse("aws.profile", "sandbox"))
}