Here, you have two options:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>aws.amazon.com</id> <username>[your aws access key]</username> <password>[your aws secret key, possibly encrypted]</password> </server> </servers> </settings>
You can declare domains other than aws.amazon.com - All you need to do is to set beanstalk.serverId as well. For more information, check the Maven docs on Password Encryption
It **DOES** support password encryption. In fact, it throws up an alert whenever it finds an unencrypted password.
$ export AWS_ACCESS_KEY_ID="<your aws access key>" $ export AWS_SECRET_KEY="<your aws secret key>" $ mvn beanstalk:upload-source-bundle