private String decrypt(String password) throws MojoExecutionException {
        try {
            SettingsDecrypter settingsDecrypter = container.lookup(SettingsDecrypter.class);
            Server stub = new Server();
            stub.setUsername("whatever");
            stub.setPassword(password);

            SettingsDecryptionResult result = settingsDecrypter.decrypt(new DefaultSettingsDecryptionRequest(stub));
            return result.getServers().get(0).getPassword();
        } catch (ComponentLookupException e) {
            throw new MojoExecutionException("Error looking security dispatcher",e);
        }
    }
Try using the AWS credentials provided via ENV variables.
See https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
src/main/java/io/fabric8/maven/docker/util/AuthConfigFactory.java