aws services creating instance and authenticating it through java