fix aws spec after refactoring