Properties overrides = new Properties();
overrides.put(AWSEC2Constants.PROPERTY_EC2_AMI_QUERY, "owner-id=" + arguments.getAmiOwner() + ";state=available;image-type=machine");
ImmutableSet<Module> modules = ImmutableSet.<Module>of(
new SLF4JLoggingModule(), // OverThere uses SLF4J so we will as well
new BouncyCastleCryptoModule() // needed to decrypt the password from EC2
);
context = ContextBuilder.newBuilder("aws-ec2")
.credentials(arguments.getIdentity(), arguments.getCredential())
.overrides(overrides)
.modules(modules)