refactoring aws initialization to separate script