refactoring to encrypt access credentaials only when IAM role is not used
refactoring to encrypt access credentaials only when IAM role is not used

Durgesh1988/core,RLOpenCatalyst/core,RLOpenCatalyst/core,Durgesh1988/core,RLOpenCatalyst/core,Durgesh1988/core